* xcoffread.c (xcoff_start_psymtab): Update.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-03-10 Tom Tromey <tromey@redhat.com>
2
3 * xcoffread.c (xcoff_start_psymtab): Update.
4 (xcoff_end_psymtab): Update.
5 * psymtab.c (allocate_psymtab): Remove dead code.
6 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7 void*.
8 * mdebugread.c (parse_partial_symbols): Update.
9 (new_psymtab): Likewise.
10 * dwarf2read.c (process_psymtab_comp_unit): Update.
11 (psymtab_to_symtab_1): Update.
12 * dbxread.c (start_psymtab): Update.
13 (end_psymtab): Likewise.
14
15 2010-30-10 Tom Tromey <tromey@redhat.com>
16
17 * xcoffread.c: Include psymtab.h.
18 (xcoff_sym_fns): Update.
19 * symtab.h (struct partial_symbol): Remove.
20 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
21 (struct partial_symtab): Remove.
22 (PSYMTAB_TO_SYMTAB): Remove.
23 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
24 (find_pc_sect_psymtab): Remove.
25 (find_pc_sect_symtab_via_partial): Declare.
26 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
27 (find_main_psymtab): Remove.
28 (find_main_filename): Declare.
29 (fixup_psymbol_section): Remove.
30 (fixup_section): Declare.
31 * symtab.c: Include psymtab.h.
32 (lookup_symtab): Use lookup_symtab method.
33 (lookup_partial_symtab): Remove.
34 (find_pc_sect_psymtab_closer): Remove.
35 (find_pc_sect_psymtab): Remove.
36 (find_pc_sect_symtab_via_partial): New function.
37 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
38 (fixup_section): No longer static.
39 (fixup_psymbol_section): Remove.
40 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
41 (lookup_global_symbol_from_objfile): Likewise.
42 (lookup_symbol_aux_psymtabs): Remove.
43 (lookup_symbol_aux_quick): New function.
44 (lookup_symbol_global): Use lookup_symbol_aux_quick.
45 (lookup_partial_symbol): Remove.
46 (basic_lookup_transparent_type_quick): New function.
47 (basic_lookup_transparent_type): Use it.
48 (find_main_psymtab): Remove.
49 (find_main_filename): New function.
50 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
51 (find_line_symtab): Use expand_symtabs_with_filename method.
52 (output_partial_symbol_filename): New function.
53 (sources_info): Use map_partial_symbol_filenames.
54 (struct search_symbols_data): New type.
55 (search_symbols_file_matches): New function.
56 (search_symbols_name_matches): Likewise.
57 (search_symbols): Use expand_symtabs_matching method.
58 (struct add_name_data): Rename from add_macro_name_data.
59 (add_macro_name): Update.
60 (add_partial_symbol_name): New function.
61 (default_make_symbol_completion_list): Use
62 map_partial_symbol_names.
63 (struct add_partial_symbol_name): New type.
64 (maybe_add_partial_symtab_filename): New function.
65 (make_source_files_completion_list): Use
66 map_partial_symbol_filenames.
67 (expand_line_sal): Use expand_symtabs_with_filename method.
68 * symmisc.c: Include psymtab.h.
69 (print_objfile_statistics): Use print_stats method.
70 (dump_objfile): Use dump method.
71 (dump_psymtab, maintenance_print_psymbols)
72 (maintenance_info_psymtabs, maintenance_check_symtabs)
73 (extend_psymbol_list): Remove.
74 * symfile.h (struct quick_symbol_functions): New struct.
75 (struct sym_fns) <qf>: New field.
76 (sort_pst_symbols): Remove.
77 (increment_reading_symtab): Declare.
78 * symfile.c: Include psymtab.h.
79 (compare_psymbols, sort_pst_symbols): Remove.
80 (psymtab_to_symtab): Remove.
81 (increment_reading_symtab): New function.
82 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
83 method.
84 (set_initial_language): Use find_main_filename.
85 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
86 (free_named_symtabs): Remove unused code.
87 (start_psymtab_common, add_psymbol_to_bcache)
88 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
89 Remove.
90 * stack.c: Include psymtab.h, symfile.h.
91 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
92 * source.h (psymtab_to_fullname): Don't declare.
93 * source.c: Include psymtab.h.
94 (select_source_symtab): Use find_last_source_symtab method.
95 (forget_cached_source_info): Use forget_cached_source_info
96 method.
97 (find_and_open_source): No longer static.
98 (psymtab_to_fullname): Remove.
99 * somread.c: Include psymtab.h.
100 (som_sym_fns): Update.
101 * psympriv.h: New file.
102 * psymtab.h: New file.
103 * psymtab.c: New file.
104 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
105 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
106 * objfiles.c: Include psymtab.h.
107 (objfile_relocate1): Use relocate method.
108 (objfile_has_partial_symbols): Use has_symbols method.
109 * mipsread.c: Include psymtab.h.
110 (ecoff_sym_fns): Update.
111 * mi/mi-cmd-file.c: Include psymtab.h.
112 (print_partial_file_name): New function.
113 (mi_cmd_file_list_exec_source_files): Use
114 map_partial_symbol_filenames.
115 * mdebugread.c: Include psympriv.h.
116 * machoread.c: Include psympriv.h.
117 (macho_sym_fns): Update.
118 * m2-exp.y (yylex): Use lookup_symtab.
119 * elfread.c: Include psympriv.h.
120 (elf_sym_fns): Update.
121 * dwarf2read.c: Include psympriv.h.
122 * dbxread.c: Include psympriv.h.
123 (aout_sym_fns): Update.
124 * cp-support.c: Include psymtab.h.
125 (read_in_psymtabs): Remove.
126 (make_symbol_overload_list_qualified): Use
127 expand_symtabs_for_function method.
128 * coffread.c: Include psympriv.h.
129 (coff_sym_fns): Update.
130 * blockframe.c: Include psymtab.h.
131 (find_pc_partial_function): Use find_pc_sect_symtab method.
132 * ada-lang.h (ada_update_initial_language): Update.
133 * ada-lang.c: Include psymtab.h.
134 (ada_update_initial_language): Remove 'main_pst' argument.
135 (ada_lookup_partial_symbol): Remove.
136 (struct ada_psym_data): New type.
137 (ada_add_psyms): New function.
138 (ada_add_non_local_symbols): Use map_ada_symtabs method.
139 (struct add_partial_datum): New type.
140 (ada_add_partial_symbol_completions): New function.
141 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
142 (ada_exception_support_info_sniffer): Update.
143 * Makefile.in (SFILES): Add psymtab.c.
144 (COMMON_OBS): Add psymtab.o.
145 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
146
147 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
148
149 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
150
151 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
152
153 PR C++/11236:
154 * cp-namespace.c (cp_add_using): Deleted.
155 (cp_add_using_directive): Use obstack allocations.
156 Merged the function cp_add_using into this one.
157 Added 'struct obstack *' argument.
158 (cp_scan_for_anonymous_namespaces): Updated.
159 * cp-support.h: Updated.
160 * dwarf2read.c (read_import_statement): Updated.
161 (read_namespace): Updated.
162
163 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
164
165 * windows-nat.c (cygwin_conv_path): Remove old macro.
166
167 2010-03-10 Pedro Alves <pedro@codesourcery.com>
168
169 * breakpoint.c (condition_command): Handle watchpoint conditions.
170 (is_hardware_watchpoint): Add comment.
171 (is_watchpoint): New.
172 (update_watchpoint): Don't reparse the watchpoint's condition
173 unless necessary.
174 (WP_IGNORE): New.
175 (watchpoint_check): Use it.
176 (bpstat_check_watchpoint): Handle it.
177 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
178 conditions in a frame where it makes sense.
179 (watch_command_1): Store the innermost block of the condition
180 expression.
181 (delete_breakpoint): Delete the watchpoint condition expression.
182 * breakpoint.h (struct bp_location) <cond>: Update comment.
183 (struct breakpoint): New field `cond_exp_valid_block'.
184
185 2010-03-09 Joel Brobecker <brobecker@adacore.com>
186
187 Adjust handling of Ada DIEs after dwarf2_physname patch.
188 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
189
190 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
191 Pierre Muller <muller@ics.u-strasbg.fr>
192
193 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
194 from/to posix/win32.
195 (windows_make_so): Use non-Cygwin 1.7 specific function.
196 (windows_create_inferior): Make sure that cygallargs points to
197 original args in non Cygwin 1.7. case.
198
199 2010-03-09 Michael Snyder <msnyder@vmware.com>
200
201 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
202 after target_read_memory to get host byte order.
203 (i386_process_record): Ditto.
204
205 2010-03-09 Keith Seitz <keiths@redhat.com>
206
207 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
208 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
209 print out const or volatile qualifiers, too.
210 (c_type_print_args): Add parameters show_artificial and language.
211 Skip artificial parameters when requested.
212 Use the appropriate language printer.
213 (c_type_print_varspec): Tell c_type_print_args to skip artificial
214 parameters and pass language_c.
215 * dwarf2read.c (die_list): New file global.
216 (struct partial_die_info): Update comments for name field.
217 (pdi_needs_namespace): Renamed to ...
218 (die_needs_namespace): ... this. Rewrite.
219 (dwarf2_linkage_name): Remove.
220 (add_partial_symbol): Do not predicate the call to
221 partial_die_full_name based on pdi_needs_namespace.
222 Remove call to cp_check_possible_namespace_symbols and associated
223 outdated comments.
224 (guess_structure_name): Do not inspect child subprogram DIEs.
225 (dwarf2_fullname): Update comments.
226 Use die_needs_namespace to assist in computing the name.
227 (read_func_scope): Use dwarf2_name to get the DIE's name.
228 Use dwarf2_physname to get the "linkage name" of the DIE.
229 (dwarf2_add_member_field): Use dwarf2_physname instead of
230 dwarf2_linkage_name.
231 (read_structure_type): For structs and classes, set TYPE_NAME, too.
232 (determine_class): Remove.
233 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
234 except Ada.
235 (new_symbol): Unconditionally call dwarf2_name.
236 Compute the "linkage name" using dwarf2_physname.
237 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
238 When determining to scan for anonymous C++ namespaces, ignore
239 the linkage name.
240 (dwarf2_physname): New function.
241 (dwarf2_full_name): Move content to new function and call
242 that.
243 (dwarf2_compute_name): "New" function.
244 (_initialize_dwarf2_read): Initialize die_list.
245 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
246 physname.
247 (gnu_v3_print_method_ptr): Use the physname for virtual methods
248 without a demangled name.
249 Print out type information for non-virtual methods.
250 * linespec.c (decode_line_1): Force ANY string using "::" (or
251 "." for java) to use decode_compound, and clean up any stray quoting.
252 If we found a file symtab, re-evaluate whether the remainder is_quoted.
253 (decode_compound): Stop consuming at an open parenthesis.
254 Keep template parameters.
255 Keep any overload information.
256 Keep keywords like "const".
257 Remove paren_pointer.
258 Move is_quoted check from set_flags to here.
259 Remove #if 0 code from 2000. Ten years is long enough.
260 (find_method): Before comparing symbol names, canonicalize the string
261 from the user.
262 If a specific overload is requested, find it. Otherwise throw an error.
263 (find_method_overload_end): New function.
264 (set_flags): Remove.
265 (decode_compound): Assume that parentheses are matched.
266 It's a lot easier.
267 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
268 to cplus_demangle.
269 * linespec.c (decode_line_1): Keep important keywords like
270 "const" and "volatile".
271 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
272 * typeprint.h (c_type_print_args): Add declaration.
273 * ui-file.c (do_ui_file_obsavestring): New function.
274 (ui_file_obsavestring): New function.
275 * ui-file.h (ui_file_obsavestring): Add declaration.
276 * valops.c (find_overload_match): Resolve the object to
277 a non-pointer type.
278 If the object is a data member, search the object for the member
279 and return with staticp set.
280 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
281 Do not attempt to extract a function name from non-function types.
282 If the extracted function name and the original name are the same,
283 we don't have a C++ method.
284
285 From Jan Kratochvil <jan.kratochvil@redhat.com>:
286 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
287
288 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
289 and arguments from symbol lookups.
290 * ax-gdb.c (gen_expr): Likewise.
291 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
292 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
293 lookup_possible_namespace_symbol): Likewise.
294 * cp-support.c (read_in_psymtabs): Likewise.
295 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
296 * language.h (la_lookup_symbol_nonlocal): Likewise.
297 * scm-valprint.c (scm_inferior_print): Likewise.
298 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
299 * solib-svr.c (elf_lookup_lib): Likewise.
300 * solib.c (show_auto_solib_add): Likewise.
301 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
302 * symmisc.c (maintenance_check_symtabs): Likewise.
303 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
304 lookup_symbol_aux_local, lookup_symbol_aux_block,
305 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
306 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
307 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
308 basic_lookup_transparent_type, find_main_psymtab,
309 lookup_block_symbol): Likewise.
310 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
311 lookup_symbol_global, lookup_symbol_aux_block,
312 lookup_symbol_partial_symbol, lookup_block_symbol,
313 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
314
315 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
316
317 * python/python-internal.h: Include symtab.h.
318
319 2010-03-09 Joel Brobecker <brobecker@adacore.com>
320 Pierre Muller <muller@ics.u-strasbg.fr>
321
322 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
323 * p-valprint.c (pascal_val_print): Remove undeed block and fix
324 indentation.
325
326 2010-03-08 Tom Tromey <tromey@redhat.com>
327
328 * breakpoint.c (breakpoint_1): Add "QUIT".
329
330 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
331 Pedro Alves <pedro@codesourcery.com>
332
333 * solib.c (solib_find): Replace extension if
334 solib_symbols_extension is set in the target gdbarch.
335 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
336 solib_symbols_extension to "sym".
337 * gdbarch.sh (solib_symbols_extension): New variable.
338 (pstring): New function.
339 * gdbarch.h, gdbarch.c: Regenerate.
340
341 2010-03-08 Tom Tromey <tromey@redhat.com>
342
343 PR cli/9591:
344 * NEWS: Update.
345 * utils.c: Include main.h.
346 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
347 (defaulted_query): Use default answer if `batch_flag'.
348 * main.h (batch_flag): Declare.
349 * main.c (batch_flag): New global.
350 (captured_main): Remove 'batch'. Update.
351
352 2010-03-08 Kevin Buettner <kevinb@redhat.com>
353
354 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
355 and Kevin Buettner:
356
357 * remote-mips.c (rockhopper_ops): New target_ops struct.
358 (MON_ROCKHOPPER): New mips_monitor_type.
359 (read_hex_value): New function.
360 (mips_request): Send 8-byte values with a 'T' packet. Read the
361 packet argument as a string and use read_hex_value to parse it.
362 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
363 (rockhopper_open): New function.
364 (mips_wait): Read the PC, FP and SP fields as strings. Use
365 read_hex_value to parse them and mips_set_register to commit them.
366 (mips_set_register): New function.
367 (mips_fetch_registers): Do not cast register value to "unsigned"
368 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
369 (mips_store_registers): Use a 'T' packet to set registers when
370 using MON_ROCKHOPPER.
371 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
372 and expect the total to be printed before the entry address.
373 (_initialize_remote_mips): Initialize and add rockhopper_ops.
374
375 2010-03-08 Kevin Buettner <kevinb@redhat.com>
376
377 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
378 Change return value to int. Store value fetched in location
379 addressed by `val'. Use function's return value as success
380 or failure indicator. Adjust all callers.
381
382 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
383
384 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
385
386 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
387 Hui Zhu <teawater@gmail.com>
388
389 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
390 tmp_to_stopped_data_address.
391 (record_open): Reset tmp_to_stopped_by_watchpoint and
392 tmp_to_stopped_data_address.
393 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
394 to_stopped_data_address.
395
396 2010-03-08 Hui Zhu <teawater@gmail.com>
397
398 * i386-tdep.c (i386_process_record): Initialize regnum.
399
400 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
401
402 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
403 Do not warn on ".gnu.liblist" and ".gnu.conflict".
404
405 2010-03-08 Joel Brobecker <brobecker@adacore.com>
406
407 Memory error when reading wrong core file.
408 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
409 errors while reading the inferior memory, and return zero if
410 an exception was raised.
411
412 2010-03-07 Michael Snyder <msnyder@vmware.com>
413
414 * record.c (record_restore): Rename tmpu8 to rectype.
415
416 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
417 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
418
419 (i386_record_push): Rename local tmpulongest to addr.
420
421 (i386_process_record): Rename local tmpulongest to addr.
422
423 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
424 addr64.
425
426 Rename local variable tmpu8 to opcode8 and regnum.
427
428 2010-03-07 Joel Brobecker <brobecker@adacore.com>
429
430 * remote.c (remote_get_ada_task_ptid): New function.
431 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
432
433 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
434
435 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
436 block. Define helper macros to reduce ifdefs in code.
437 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
438 size. Call unadorned GetModuleFileNameEx rather than
439 GetModuleFileNameEx*.
440 (windows_make_so): Use __PMAX to denote maximum buffer size and
441 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
442 appropriate.
443 (get_image_name): Use __PMAX to denote maximum buffer size.
444 (handle_load_dll): Likewise.
445 (windows_pid_to_exec_file): Likewise.
446 (windows_create_inferior): Add many accommodations for older Cygwin and
447 non-Cygwin.
448 (bad_GetModuleFileNameExW): Control inclusion of this function based on
449 __USEWIDE conditional.
450 (bad_GetModuleFileNameExA): Likewise.
451 (_initialize_loadable): Just use real function names without the dyn_
452 part since they are defined earlier.
453
454 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
455 Tom Tromey <tromey@redhat.com>
456
457 * utils.c (host_char_to_target): Add 'gdbarch' argument.
458 (parse_escape): Likewise.
459 * python/py-utils.c (unicode_to_target_string): Update.
460 (unicode_to_target_python_string): Update.
461 (target_string_to_unicode): Update.
462 * printcmd.c (printf_command): Update.
463 * p-exp.y (yylex): Update.
464 * objc-exp.y (yylex): Update.
465 * mi/mi-parse.c: Include charset.h.
466 (mi_parse_escape): New function.
467 (mi_parse_argv): Use it.
468 * jv-exp.y (yylex): Update.
469 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
470 function.
471 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
472 * gdbarch.sh (auto_charset, auto_wide_charset): New.
473 * gdbarch.c: Rebuild.
474 * gdbarch.h: Rebuild.
475 * defs.h (parse_escape): Update.
476 * cli/cli-setshow.c: Include arch-utils.h.
477 (do_setshow_command): Update.
478 * cli/cli-cmds.c (echo_command): Update.
479 * charset.h (target_charset, target_wide_charset): Update.
480 * charset.c: Include arch-utils.h.
481 (target_charset_name): Default to "auto".
482 (target_wide_charset_name): Likewise.
483 (show_target_charset_name): Handle "auto".
484 (show_target_wide_charset_name): Likewise.
485 (be_le_arch): New global.
486 (set_be_le_names): Add 'gdbarch' argument.
487 (validate): Likewise. Don't call set_be_le_names.
488 (set_charset_sfunc, set_host_charset_sfunc)
489 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
490 Update.
491 (target_charset): Add 'gdbarch' argument.
492 (target_wide_charset): Likewise. Remove 'byte_order' argument.
493 (auto_target_charset_name): New global.
494 (default_auto_charset, default_auto_wide_charset): New functions.
495 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
496 for target charsets. Copy result of nl_langinfo. Use GetACP if
497 USE_WIN32API.
498 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
499 remove 'byte_order' argument. Update.
500 (classify_type): Likewise.
501 (c_emit_char): Update.
502 (c_printchar): Update.
503 (c_printstr): Update.
504 (c_get_string): Update.
505 (evaluate_subexp_c): Update.
506 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
507 Declare.
508 * python/python.c (gdbpy_target_charset): New function.
509 (gdbpy_target_wide_charset): Likewise.
510 (GdbMethods): Update.
511 * NEWS: Update.
512
513 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
514
515 * symfile.c (build_section_addr_info_from_objfile): Do not mask
516 off high address bits.
517
518 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
519
520 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
521 address as UnsignedLongLong, not LongLong.
522
523 2010-03-05 Kevin Buettner <kevinb@redhat.com>
524 Pedro Alves <pedro@codesourcery.com>
525
526 * remote-mips.c (gdbthread.h): Include.
527 (remote_mips_ptid): Declare.
528 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
529 (common_open): Set inferior_ptid, add it as an inferior, and
530 as a thread too. Delete FIXME comment regarding start_remote().
531 (mips_close): Invoke generic_mourn_inferior().
532 (mips_kill): Make sure that target_mourn_inferior is invoked.
533 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
534 it's now invoked from mips_close().
535 (mips_load): Don't null out inferior_ptid. Don't call
536 clear_symtab_users().
537 (mips_thread_alive, mips_pid_to_str): New functions.
538 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
539 to_thread_alive and to_pid_to_str operations.
540
541 2010-03-04 Tom Tromey <tromey@redhat.com>
542
543 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
544 in DWARF 3 and later.
545 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
546
547 2010-03-04 Keith Seitz <keiths@redhat.com>
548
549 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
550 If the filename portion of the linespec was quoted, recheck the
551 remainder for additional quoting.
552 (locate_first_half): Skip over completer chars, too.
553
554 2010-03-04 Tom Tromey <tromey@redhat.com>
555
556 * printcmd.c (printf_command): Pass dummy argument to
557 printf_filtered.
558
559 2010-03-04 Doug Evans <dje@google.com>
560
561 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
562 unwound_fp.
563
564 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
565
566 2010-03-04 Pedro Alves <pedro@codesourcery.com>
567
568 * breakpoint.c (update_watchpoint): Create a sentinel location if
569 the software watchpoint isn't watching any memory.
570 (breakpoint_address_bits): Skip dummy software watchpoint locations.
571
572 2010-03-04 Pedro Alves <pedro@codesourcery.com>
573
574 * utils.c (fputs_maybe_filtered): Check if there's already a top
575 level interpreter before dereferencing it. If there isn't one,
576 don't paginate either.
577
578 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
579
580 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
581 the state right when single stepping.
582 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
583 Get the next PC along with the instruction state.
584 (thumb_get_next_pc): Remove.
585 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
586
587 2010-03-04 Hui Zhu <teawater@gmail.com>
588
589 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
590
591 2010-03-03 Pedro Alves <pedro@codesourcery.com>
592
593 * utils.c (fputs_maybe_filtered): Always disable pagination if the
594 top level interpreter is MI.
595
596 2010-03-03 Stan Shebs <stan@codesourcery.com>
597
598 * remote.c (remote_download_tracepoint): Iterate over locations.
599 * tracepoint.c (validate_actionline): Ditto.
600 (encode_actions): Add location argument.
601 (trace_dump_command): Check all locations to see if stepping
602 frame.
603
604 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
605 Eli Zaretskii <eliz@gnu.org>
606
607 * NEWS: Add X86 general purpose registers section.
608
609 2010-03-03 Tom Tromey <tromey@redhat.com>
610
611 PR mi/11098:
612 * varobj.c (install_new_value): Handle case where new print_value
613 is NULL.
614
615 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
616
617 PR gdb/11345:
618 * printcmd.c (printf_command): Print end of format string using
619 printf_filtered.
620
621 2010-03-02 Tom Tromey <tromey@redhat.com>
622
623 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
624 * defs.h (read_command_lines_1): Add missing 'void'.
625 * cli/cli-script.c (recurse_read_control_structure): Add missing
626 'void'.
627 (read_next_line): Likewise.
628 (read_command_lines_1): Likewise.
629
630 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
631
632 * spu-tdep.c (spu_analyze_prologue): Track instruction to
633 store backchain as part of prologue.
634
635 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
636
637 * progspace.c (update_address_spaces): Update inferior address spaces
638 also.
639
640 2010-03-02 Doug Evans <dje@google.com>
641
642 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
643 lowpc,highpc args to addrmap_set_empty.
644
645 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
646
647 * amd64-tdep.c (amd64_byte_names): New.
648 (amd64_word_names): Likewise.
649 (amd64_dword_names): Likewise.
650 (amd64_pseudo_register_name): Likewise.
651 (amd64_pseudo_register_read): Likewise.
652 (amd64_pseudo_register_write): Likewise.
653 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
654 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
655 set_gdbarch_pseudo_register_write and
656 set_tdesc_pseudo_register_name. Don't call
657 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
658
659 * i386-tdep.c (i386_num_mmx_regs): Removed.
660 (i386_num_pseudo_regs): Likewise.
661 (i386_byte_names): New.
662 (i386_word_names): Likewise.
663 (i386_byte_regnum_p): Likewise.
664 (i386_word_regnum_p): Likewise.
665 (i386_mmx_regnum_p): Updated.
666 (i386_pseudo_register_name): Make it global. Handle byte and
667 word pseudo-registers.
668 (i386_pseudo_register_read): Likewise.
669 (i386_pseudo_register_write): Likewise.
670 (i386_pseudo_register_type): Handle byte, word and dword
671 pseudo-registers
672 (i386_register_reggroup_p): Don't include pseudo
673 registers, except for MXX, in any register groups. Don't
674 include pseudo byte, word, dword registers in general_reggroup.
675 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
676 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
677 pseudo-registers after word pseudo-registers. Call
678 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
679
680 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
681 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
682 eax_regnum.
683 (i386_byte_regnum_p): New.
684 (i386_word_regnum_p): Likewise.
685 (i386_dword_regnum_p): Likewise.
686 (i386_pseudo_register_name): Likewise.
687 (i386_pseudo_register_read): Likewise.
688 (i386_pseudo_register_write): Likewise.
689
690 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
691
692 * target-descriptions.c (tdesc_type): Remove
693 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
694 (tdesc_predefined_types): Likewise.
695 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
696 if flag name is empty.
697 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
698
699 * features/i386/32bit-core.xml: Define i386_eflags.
700 * features/i386/64bit-core.xml: Likewise.
701
702 * features/i386/32bit-sse.xml: Define i386_mxcsr.
703 * features/i386/64bit-sse.xml: Likewise.
704
705 * features/i386/amd64-linux.c: Regenerated.
706 * features/i386/amd64.c: Likewise.
707 * features/i386/i386-linux.c: Likewise.
708 * features/i386/i386.c: Likewise.
709
710 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
711
712 * gdbtypes.c (append_composite_type_field_raw): New.
713 (append_composite_type_field_aligned): Use the new function.
714 * gdbtypes.h (append_composite_type_field_raw): Declare.
715 * target-descriptions.c (struct tdesc_type_field): Add start and end.
716 (struct tdesc_type_flag): New type.
717 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
718 kind. Add size to u.u. Add u.f for flags.
719 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
720 (tdesc_free_type): Likewise.
721 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
722 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
723 (tdesc_add_bitfield, tdesc_add_flag): New.
724 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
725 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
726 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
727 current_type. Add current_type_size and current_type_is_flags.
728 (tdesc_start_union): Clear the new fields.
729 (tdesc_start_struct, tdesc_start_flags): New.
730 (tdesc_start_field): Handle struct fields, including bitfields.
731 (field_attributes): Make type optional. Add start and end.
732 (union_children): Rename to struct_union_children.
733 (union_attributes): Rename to struct_union_attributes. Add optional
734 size.
735 (flags_attributes): New.
736 (feature_children): Add struct and flags.
737 * features/gdb-target.dtd: Add flags and struct to features.
738 Make field type optional. Add field start and end.
739
740 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
741
742 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
743 (amd64_linux_read_description): Likewise.
744 (_initialize_amd64_linux_nat): Set to_read_description to
745 amd64_linux_read_description.
746
747 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
748 (amd64_linux_register_name): Removed.
749 (amd64_linux_register_type): Likewise.
750 (amd64_linux_core_read_description): New.
751 (amd64_linux_init_abi): Set target description to
752 tdesc_amd64_linux if needed. Support orig_rax in target
753 description. Don't call set_gdbarch_register_name nor
754 set_gdbarch_register_type. Call
755 set_gdbarch_core_read_description.
756 (_initialize_amd64_linux_tdep): Call
757 initialize_tdesc_amd64_linux.
758
759 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
760
761 * amd64-tdep.c: Include "features/i386/amd64.c".
762 (amd64_register_names): Removed.
763 (amd64_register_name): Likewise.
764 (amd64_register_type): Likewise.
765 (amd64_init_abi): Set num_core_regs and register_names. Set
766 target description to tdesc_amd64 if needed. Don't call
767 set_gdbarch_register_name nor set_gdbarch_register_type.
768 (_initialize_amd64_tdep): New.
769
770 * i386-linux-nat.c (i386_linux_read_description): New.
771 (_initialize_i386_linux_nat): Set to_read_description to
772 i386_linux_read_description.
773
774 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
775 (i386_linux_register_name): Removed.
776 (i386_linux_core_read_description): New.
777 (i386_linux_read_description): Likewise.
778 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
779 Set target description to tdesc_i386_linux if needed. Support
780 orig_eax. Set register_reggroup_p. Call
781 set_gdbarch_core_read_description.
782 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
783
784 * i386-linux-tdep.h (tdesc_i386_linux): New.
785
786 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
787 with I387_NUM_REGS.
788
789 * i386-tdep.c: Include "features/i386/i386.c".
790 (i386_register_names): Make it const.
791 (i386_mmx_names): Likewise.
792 (i386_num_register_names): Removed.
793 (i386_register_name): Likewise.
794 (i386_eflags_type): Likewise.
795 (i386_mxcsr_type): Likewise.
796 (i386_sse_type): Likewise.
797 (i386_register_type): Likewise.
798 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
799 (i386_pseudo_register_name): New.
800 (i386_pseudo_register_type): Likewise.
801 (i386_mmx_type): Make it static.
802 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
803 I387_NUM_REGS. Set num_core_regs and register_names. Don't
804 call set_gdbarch_register_name nor set_gdbarch_register_type.
805 Set register_reggroup_p. Set target description to tdesc_i386
806 if needed. Call set_tdesc_pseudo_register_type,
807 set_tdesc_pseudo_register_name and tdesc_use_registers.
808 (_initialize_i386_tdep): Call initialize_tdesc_i386.
809 initialize_tdesc_x86_64.
810
811 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
812 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
813 register_names, tdesc and register_reggroup_p.
814 (I386_NUM_FREGS): Removed.
815 (i386_eflags_type): Likewise.
816 (i386_mxcsr_type): Likewise.
817 (i386_mmx_type): Likewise.
818 (i386_sse_type): Likewise.
819 (i386_register_name): Likewise.
820 (i386_regnum): Add I386_MXCSR_REGNUM.
821 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
822
823 * i387-tdep.h (I387_NUM_REGS): New.
824
825 * regformats/i386/i386-linux.dat: Generated.
826 * regformats/i386/i386.dat: Likewise.
827 * regformats/i386/amd64-linux.dat: Likewise.
828 * regformats/i386/amd64.dat: Likewise.
829
830 * regformats/reg-i386-linux.dat: Removed.
831 * regformats/reg-i386.dat: Likewise.
832 * regformats/reg-x86-64-linux.dat: Likewise.
833 * regformats/reg-x86-64.dat: Likewise.
834
835 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
836
837 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
838 cygwin_conv_path API rather than the deprecated
839 cygwin_conv_to_full_posix_path.
840 * windows-nat.c:
841 (GetModuleFileNameExA): Undefine for Cygwin.
842 (GetModuleFileNameExW): Define for Cygwin.
843 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
844 Call GetModuleFileNameExW and convert path to POSIX using
845 cygwin_conv_path.
846 (windows_make_so): Always define p. Drop unused variable m.
847 Don't use Win32 functions to check file existance, rather use
848 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
849 Use canonicalize_file_name to get full path.
850 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
851 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
852 use correct target buffer size in call to WideCharToMultiByte.
853 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
854 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
855 (windows_create_inferior): Convert all paths and arguments to wchar_t
856 and use CreateProcessW on Cygwin.
857 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
858 (bad_GetModuleFileNameExA): Undefine for Cygwin.
859 (bad_GetModuleFileNameExW): Define for Cygwin.
860 (_initialize_loadable): Load GetModuleFileNameExW into
861 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
862
863 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
864
865 PR python/11036
866 * python/py-frame.c (frapy_read_var): Add block argument and logic
867 to cope with user provided blocks.
868
869 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
870
871 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
872 New comment.
873
874 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
875
876 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
877 (COMMON_OBS): ... to here since it's used unconditionally.
878 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
879 (SFILES): To here.
880
881 2010-02-26 David Daney <ddaney@caviumnetworks.com>
882
883 * mips-linux-tdep.c: Update struct sigframe comments.
884 (SIGFRAME_CODE_OFFSET): Delete macro.
885 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
886 this_frame's sp.
887 (mips_linux_n32n64_sigframe_init): Same.
888
889 2010-02-26 Kevin Buettner <kevinb@redhat.com>
890
891 * remote-mips.c (mips_load): Don't use pseudo-register when
892 invalidating regcache.
893
894 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
895
896 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
897
898 2010-02-26 Pedro Alves <pedro@codesourcery.com>
899
900 * NEWS: Add "New targets" section, and mention ARM Symbian
901 support.
902
903 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
904
905 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
906 add ADDR_SIZE member.
907 (allocate_piece_closure): Update.
908 (copy_pieced_value_closure): Likewise.
909 (dwarf2_evaluate_loc_desc): Likewise.
910 (read_pieced_value): Use DWARF address size instead of
911 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
912
913 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
914 Tom Tromey <tromey@redhat.com>
915
916 * python/py-type.c (typy_lookup_typename): Add in block argument.
917 If provided restrict lookup to specified blocks.
918 (gdbpy_lookup_type): Likewise.
919 (typy_lookup_type): Likewise.
920
921 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
922
923 Symbian config
924
925 gdb/
926 * arm-symbian-tdep.c: New.
927 * configure.tgt (arm*-*-symbianelf*): New target.
928 (*-*-symbianelf*): New OS.
929 * osabi.c (gdb_osabi_names): Add Symbian.
930 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
931 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
932 (ALLDEPFILES): Add arm-symbian-tdep.c.
933
934 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
935
936 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
937
938 2010-02-24 Pedro Alves <pedro@codesourcery.com>
939
940 * mi/mi-main.c (mi_cmd_execute): Fix typo.
941
942 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
943 Tom Tromey <tromey@redhat.com>
944 Thiago Jung Bauermann <bauerman@br.ibm.com>
945
946 * python/python.c (_initialize_python): Call
947 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
948 gdbpy_initialize_blocks.
949 * python/python-internal.h: Declare struct symbol, block and
950 symtab_and_line. Declare block_object_type and
951 symbol_object_type
952 (gdbpy_lookup_symbol gdbpy_block_for_pc)
953 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
954 (symbol_to_symbol_object, block_to_block_object)
955 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
956 (gdbpy_initialize_blocks ): Declare.
957 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
958 (frapy_select): Add methods.
959 (frapy_read_var): Add symbol branch.
960 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
961 py-block.
962 (SUBDIR_PYTHON_SRCS): Likewise.
963 (py-symbol.o): New rule.
964 (py-symtab.o): Likewise.
965 (py-block.o): Likewise.
966 * python/py-symbol.c: New file.
967 * python/py-symtab.c: Likewise.
968 * python/py-block.c: Likewise.
969
970 2010-02-24 Pedro Alves <pedro@codesourcery.com>
971
972 PR gdb/11321
973
974 * inferior.h (prepare_for_detach): Declare.
975 (struct inferior) <detaching>: New field.
976 * infrun.c (prepare_for_detach): New.
977 (handle_inferior_event) <random signal>: Don't stop if detaching.
978 * target.c (target_detach): Call prepare_for_detach.
979
980 2010-02-24 Pedro Alves <pedro@codesourcery.com>
981
982 Per-process displaced stepping queue.
983
984 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
985 (displaced_step_gdbarch, displaced_step_closure,
986 (displaced_step_original, displaced_step_copy): Move globals to
987 this...
988 (struct displaced_step_inferior_state): ... new structure.
989 (displaced_step_inferior_states): New global.
990 (get_displaced_stepping_state, add_displaced_stepping_state)
991 (remove_displaced_stepping_state, infrun_inferior_exit): New
992 functions.
993 (displaced_step_clear): Add displaced_step_inferior_state
994 parameter, and adjust to handle it.
995 (displaced_step_clear_cleanup): Parameter is now a
996 displaced_step_inferior_state. Adjust.
997 (displaced_step_prepare): Adjust.
998 (displaced_step_fixup, displaced_step_fixup)
999 (infrun_thread_ptid_changed, resume): Adjust.
1000 (init_wait_for_inferior): Don't call displaced_step_clear.
1001 (infrun_thread_stop_requested): Rewrite.
1002 (_initialize_infrun): Install infrun_inferior_exit as
1003 inferior_exit observer.
1004
1005 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1006
1007 * inferior.h (ptid_match): Declare.
1008 * infrun.c (ptid_match): New.
1009 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
1010 (handle_notification): Add debug output.
1011 * linux-nat.c (ptid_match): Delete.
1012
1013 2010-02-24 David S. Miller <davem@davemloft.net>
1014
1015 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
1016 * syscalls/sparc-linux.xml: New.
1017 * syscalls/sparc64-linux.xml: New.
1018 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
1019 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
1020 (sparc32_linux_get_syscall_number): New function.
1021 (sparc32_linux_init_abi): Set syscall XML file name and hook up
1022 syscall number fetcher.
1023 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
1024 (sparc64_linux_get_syscall_number): New function.
1025 (sparc64_linux_init_abi): Set syscall XML file name and hook up
1026 syscall number fetcher.
1027
1028 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1029
1030 Multiexec MI
1031
1032 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
1033 * inferior.c (add_inferior_silent): Notify inferior_added
1034 observer.
1035 (delete_inferior_1): Notify inferior_removed observer.
1036 (exit_inferior_1): Pass inferior, not pid, to observer.
1037 (inferior_appeared): Likewise.
1038 (add_inferior_with_spaces): New.
1039 (add_inferior_command): Use the above.
1040 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
1041 Declare.
1042
1043 * inflow.c (inflow_inferior_exit): Likewise.
1044 * jit.c (jit_inferior_exit_hook): Likewise.
1045
1046 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
1047 remove-inferior.
1048 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1049 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
1050 (report_initial_inferior): New.
1051 (mi_inferior_removed): Register the above. Make sure
1052 inferior_added observer is called on the first inferior.
1053 (mi_new_thread, mi_thread_exit): Thread group is now identified by
1054 inferior number, not pid.
1055 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
1056 affected.
1057 * mi/mi-main.c (current_context): New.
1058 (proceed_thread_callback): Use typed closure.
1059 Proceed everything if pid is 0. Most implementation split into
1060 (proceed_thread): ... this.
1061 (run_one_inferior): New.
1062 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
1063 Adjust for multiexec behaviour.
1064 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1065 (mi_cmd_execute): Handle the 'thread-group' option here.
1066 Do some extra checks.
1067 * mi-parse.c (mi_parse): Handle the --all and --thread-group
1068 options.
1069 * mi-parse.h (struct mi_parse): New fields all and thread_group.
1070
1071 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1072
1073 Make -exec-run a proper MI commands.
1074
1075 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
1076 * mi/mi-cmds.c (mi_cmds): Adjust.
1077 * mi/mi-main.c (mi_cmd_exec_run): New.
1078
1079 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1080 Stan Shebs <stan@codesourcery.com>
1081
1082 * tracepoint.h (set_traceframe_number)
1083 (cleanup_restore_current_traceframe): Declare.
1084 * tracepoint.c (set_traceframe_number): New.
1085 (struct current_traceframe_cleanup): New.
1086 (do_restore_current_traceframe_cleanup)
1087 (restore_current_traceframe_cleanup_dtor)
1088 (make_cleanup_restore_current_traceframe): New.
1089 * infrun.c: Include tracepoint.h.
1090 (fetch_inferior_event): Switch out and in of tfind mode.
1091
1092 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1093
1094 * breakpoint.c (breakpoint_init_inferior): Also delete
1095 bp_shlib_event breakpoints.
1096 * solib-frv.c (enable_break): Remove call to
1097 remove_solib_event_breakpoints.
1098 * solib-svr4.c (enable_break): Ditto.
1099 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
1100 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
1101 * solib-som.c (som_solib_create_inferior_hook): Ditto.
1102 * solib-spu.c (spu_enable_break): Ditto.
1103
1104 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1105
1106 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
1107
1108 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1109
1110 * varobj.c (varobj_update): Avoid non-constants in initializers.
1111
1112 2010-02-23 Tom Tromey <tromey@redhat.com>
1113
1114 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
1115 handle big-endian values.
1116 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
1117
1118 2010-02-22 Pedro Alves <pedro@codesourcery.com>
1119
1120 PR9605
1121
1122 gdb/
1123 * breakpoint.c (insert_bp_location): If inserting the read
1124 watchpoint failed, fallback to an access watchpoint.
1125 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
1126 if the value changed, if not watching the same memory for writes.
1127 (watchpoint_locations_match): Add comment.
1128 (update_global_location_list): Copy the location's watchpoint type.
1129 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
1130 handle read watchpoints here.
1131 (i386_insert_watchpoint): Read watchpoints aren't supported.
1132 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
1133 packets.
1134 * target.h (target_insert_watchpoint): Update description.
1135
1136 2010-02-19 Tom Tromey <tromey@redhat.com>
1137
1138 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
1139 * m2-typeprint.c (m2_print_type): Update.
1140 * gdbtypes.c (recursive_dump_type): Update.
1141 (copy_type_recursive): Update.
1142 * c-typeprint.c (c_type_print_varspec_prefix): Update.
1143 (c_type_print_base): Update.
1144 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
1145 Remove.
1146 (struct cplus_struct_type) <ntemplate_args>: Remove.
1147 <struct template_arg>: Remove.
1148 <is_dynamic>: Move earlier.
1149 (TYPE_TEMPLATE_ARGS): Remove.
1150 (TYPE_NTEMPLATE_ARGS): Remove.
1151 (TYPE_TEMPLATE_ARG): Remove.
1152
1153 2010-02-19 Tom Tromey <tromey@redhat.com>
1154
1155 PR c++/8693, PR c++/9496:
1156 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
1157 * c-exp.y (lex_one_token): Rename from yylex. Don't call
1158 write_dollar_variable. Don't try to classify NAME tokens.
1159 (token_and_value): New type.
1160 (token_fifo, popping, name_obstack): New globals.
1161 (classify_name): New function.
1162 (classify_inner_name): Likewise.
1163 (yylex): Likewise.
1164 (VARIABLE): Now has type sval.
1165 (exp : VARIABLE): Call write_dollar_variable.
1166 (qualified_name): Use TYPENAME, not typebase. Add production for
1167 multiple "::" instances.
1168 (variable): Use name_not_typename.
1169 (qualified_type): Remove.
1170 (typebase): Update.
1171
1172 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1173
1174 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
1175 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
1176 found by bfd_get_section_by_name.
1177 * symfile.h (struct section_addr_info) <sectindex>: New comment.
1178
1179 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1180
1181 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
1182 7.0 section" into "Changes in 7.1".
1183
1184 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1185
1186 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
1187 * version.in: Bump version to 7.1.50.20100219-cvs.
1188
1189 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
1190
1191 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
1192 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
1193
1194 2010-02-17 Tom Tromey <tromey@redhat.com>
1195
1196 * NEWS: Add Python API Improvements section.
1197
1198 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
1199
1200 * NEWS: Correct typo.
1201
1202 2010-02-17 Tom Tromey <tromey@redhat.com>
1203
1204 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
1205
1206 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 * symfile.c (build_section_addr_info_from_objfile): Include sections
1209 only if they are SEC_ALLOC or SEC_LOAD.
1210
1211 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
1212
1213 PR shlibs/11293
1214 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
1215 of ULONGEST for address size.
1216
1217 2010-02-17 Tom Tromey <tromey@redhat.com>
1218
1219 * NEWS: Add C++ improvements section.
1220
1221 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1222
1223 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
1224 PyThreadState_Swap): Avoid "statement with no effect" warning.
1225
1226 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1227
1228 * solib-svr4.c (enable_break <target_auxv_search>): New variable
1229 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
1230
1231 2010-02-17 Tristan Gingold <gingold@adacore.com>
1232 Petr Hluzín <petr.hluzin@gmail.com>
1233
1234 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
1235 gdb_assert. Fix info->size for SIG prologue.
1236
1237 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1238
1239 * infcmd.c (show_inferior_tty_command): Check for NULL.
1240 Correct output message.
1241
1242 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1243
1244 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
1245 FUNCTION contains parentheses. Improve removal of a trailing
1246 single quote.
1247
1248 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1249
1250 * gcore.c (do_bfd_delete_cleanup): New function.
1251 (gcore_command): Use it. Discard the cleanup after success.
1252 (gcore_copy_callback): Delete dead code.
1253
1254 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1255
1256 * symfile.c (addr_info_make_relative): Always use
1257 find_lowest_section.
1258
1259 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
1260
1261 * NEWS: Added entry for namespace fixes.
1262
1263 2010-02-15 Tom Tromey <tromey@redhat.com>
1264
1265 * dwarf2read.c (guess_structure_name): Allocate name on the
1266 objfile obstack.
1267
1268 2010-02-15 Tom Tromey <tromey@redhat.com>
1269
1270 * c-typeprint.c (c_type_print_base): Reverse order of test.
1271
1272 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1273
1274 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
1275 initialize it from ELF BFD. Extend the prelink condition by it.
1276
1277 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 * defs.h (parse_pid_to_attach): New.
1280 * utils.c (parse_pid_to_attach): New.
1281 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
1282 * gnu-nat.c (gnu_attach): Likewise.
1283 * nto-procfs.c (procfs_attach): Likewise.
1284 * procfs.c (procfs_attach): Likewise.
1285 * windows-nat.c (windows_attach): Likewise.
1286 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
1287 * inf-ttrace.c (inf_ttrace_attach): Likewise.
1288 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
1289 check.
1290
1291 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
1292
1293 * MAINTAINERS: Add myself for write after approval privileges.
1294
1295 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1296
1297 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
1298 block.
1299
1300 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1301
1302 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
1303 only if INFO_VERBOSE.
1304
1305 2010-02-12 Tomas Holmberg <th@virtutech.com>
1306
1307 * mi/mi-main.c: Added the --reverse flag to the following MI
1308 commands: exec-continue, exec-finish, exec-next, exec-step,
1309 exec-next-instruction, exec-step-instruction. This is to
1310 support reverse execution over the MI interface to gdb.
1311
1312 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1313
1314 * tracepoint.c (_initialize_tracepoint): Specify that the address
1315 range of `tfind outsize' is exclusive, and that the address range
1316 of `tfind range' is inclusive, in the commands' help strings.
1317
1318 2010-02-12 Joel Brobecker <brobecker@adacore.com>
1319
1320 Spurious "dll not found" error messages on x64-windows.
1321 * windows-nat.c: Add include of complaints.h.
1322 (handle_unload_dll): Change dll-not-found error into a complaint.
1323
1324 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1325
1326 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
1327 bp_tracepoint and bp_fast_tracepoint, not
1328 bp_loc_software_breakpoint.
1329 (update_global_location_list): Tracepoints are never duplicates of
1330 anything.
1331
1332 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1333
1334 * breakpoint.c (break_command_really): Change return type to int.
1335 Return false if no breakpoint was created, true otherwise.
1336 (trace_command): Don't set the tracepoint count if no tracepoint
1337 was created.
1338 (ftrace_command): Ditto.
1339 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
1340 created in the breakpoints table.
1341
1342 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1343 Ulrich Weigand <uweigand@de.ibm.com>
1344
1345 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
1346
1347 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1348
1349 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
1350 the offset value isn't of integral type.
1351
1352 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1353
1354 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
1355 New.
1356
1357 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1358
1359 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
1360 non-subscriptable types.
1361 * valarith.c (binop_types_user_defined_p): New, abstracted out
1362 from ...
1363 (binop_user_defined_p): ... this.
1364 * value.h (binop_types_user_defined_p): Declare.
1365
1366 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1367
1368 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
1369 Merge uploaded TSVs before merging uploaded tracepoints.
1370
1371 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1372
1373 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
1374
1375 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
1376
1377 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
1378 whitespace character after a dot in comment.
1379 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
1380 Likewise.
1381 (list_args_or_locals): For the 'all' (that is
1382 -stack-list-variables) case, always output list of tuples.
1383 Output 'arg' field if variable is argument.
1384
1385 2010-02-10 Tom Tromey <tromey@redhat.com>
1386
1387 * parser-defs.h (parser_debug): Declare.
1388 * parse.c (_initialize_parse): Install "debug parser" set/show
1389 command.
1390 (parser_debug): New global.
1391 (show_parserdebug): New function.
1392 * c-exp.y (c_parse): Set yydebug.
1393
1394 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
1395
1396 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
1397 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1398 (tdesc_predefined_types): Add i387_ext, i386_eflags and
1399 i386_mxcsr.
1400 (tdesc_find_type): New.
1401 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
1402 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1403
1404 * target-descriptions.h (tdesc_find_type): New.
1405
1406 2010-02-10 Michael Snyder <msnyder@vmware.com>
1407
1408 * gdb-gdb.py: Comment fix.
1409
1410 2010-02-09 Tristan Gingold <gingold@adacore.com>
1411
1412 * machoread.c (macho_symfile_relocate): New function.
1413 (macho_sym_fns): Use macho_symfile_relocate instead of
1414 default_symfile_relocate.
1415 (macho_oso_data): New type.
1416 (current_oso): New variable.
1417 (macho_add_oso_symfile): Do not compute section_addr_info, but
1418 instead set vma of sections.
1419 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
1420 Set and clear current_oso.
1421
1422 2010-02-09 Joel Brobecker <brobecker@adacore.com>
1423
1424 Wrong type description for tagged type parameter.
1425 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
1426 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
1427 reference to a tagged type.
1428
1429 2010-02-09 Tristan Gingold <gingold@adacore.com>
1430
1431 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
1432 brothers of the parent.
1433
1434 2010-02-08 Tom Tromey <tromey@redhat.com>
1435
1436 PR c++/8017:
1437 * value.h: Update.
1438 * valops.c (search_struct_field): Make 'name' const.
1439 (search_struct_method): Likewise.
1440 (find_method_list): Make 'method' const.
1441 (value_struct_elt): Make 'name' and 'err' const.
1442 (value_find_oload_method_list): Make 'method' const.
1443 (find_overload_match): Make 'name' const.
1444 * eval.c (evaluate_subexp_standard): New locals function,
1445 function_name.
1446 <OP_FUNCALL>: Handle OP_SCOPE specially.
1447
1448 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1449
1450 * infrun.c (handle_inferior_event): Do not look up regcache
1451 for exited processes.
1452
1453 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
1454
1455 PR gdb/10728
1456 * valarith.c (value_ptrdiff): Added a test for a zero type length,
1457 warn if found, and assume length = 1.
1458
1459 2010-02-08 Chris Moller <cmoller@redhat.com>
1460
1461 PR gdb/9067
1462 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
1463 cp_print_static_field) Fix use of obstacks.
1464
1465 2010-02-08 Pedro Alves <pedro@codesourcery.com>
1466
1467 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
1468 resumed LWPs as resumed.
1469 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
1470 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
1471 of throwing an internal error. If an LWP of a process we're not
1472 waiting for reports a signal, don't force collecting a SIGSTOP,
1473 and if it was breakpoint hit in non-stop mode, cancel it. Don't
1474 go through all LWPs cancelling breakpoints in non-stop mode.
1475 (resume_stopped_resumed_lwps): New.
1476 (linux_nat_wait): Use it.
1477
1478 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
1479
1480 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
1481 i386/amd64 and i386/amd64-linux.
1482 (i386/i386-expedite): New.
1483 (i386/i386-linux-expedite): Likewise.
1484 (i386/amd64-expedite):Likewise.
1485 (i386/amd64-linux-expedite): Likewise.
1486 ($(outdir)/i386/i386-linux.dat): Likewise.
1487 ($(outdir)/i386/amd64.dat): Likewise.
1488 ($(outdir)/i386/amd64-linux.dat): Likewise.
1489
1490 * features/i386/32bit-core.xml: New.
1491 * features/i386/32bit-linux.xml: Likewise.
1492 * features/i386/32bit-sse.xml: Likewise.
1493 * features/i386/64bit-core.xml: Likewise.
1494 * features/i386/64bit-linux.xml: Likewise.
1495 * features/i386/64bit-sse.xml: Likewise.
1496 * features/i386/i386-linux.xml: Likewise.
1497 * features/i386/i386.xml: Likewise.
1498 * features/i386/amd64-linux.xml: Likewise.
1499 * features/i386/amd64.xml: Likewise.
1500 * features/i386/i386-linux.c: Likewise.
1501 * features/i386/i386.c: Likewise.
1502 * features/i386/amd64-linux.c: Likewise.
1503 * features/i386/amd64.c: Likewise.
1504
1505 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
1506
1507 PR c++/7935:
1508 * cp-support.h: Added char* alias element to using_direct data
1509 struct.
1510 (cp_add_using): Added char* alias argument.
1511 (cp_add_using_directive): Ditto.
1512 * cp-namespace.c: Updated with the above changes.
1513 (cp_lookup_symbol_imports): Check for aliases.
1514 * dwarf2read.c (read_import_statement): Figure out local alias
1515 for the import and pass it on to cp_add_using.
1516 (read_namespace): Pass alias argument to cp_add_using.
1517
1518 2010-02-05 Hui Zhu <teawater@gmail.com>
1519
1520 * defs.h (gdb_bfd_errmsg): New extern.
1521 * exec.c (exec_file_attach): Change bfd_errmsg to
1522 gdb_bfd_errmsg.
1523 * utils.c (AMBIGUOUS_MESS1): New macro.
1524 (AMBIGUOUS_MESS2): New macro.
1525 (gdb_bfd_errmsg): New function.
1526
1527 2010-02-04 Doug Evans <dje@google.com>
1528
1529 * solib-svr4.c (enable_break): Add comment.
1530
1531 2010-02-04 Anthony Green <green@moxielogic.com>
1532
1533 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
1534 gracefully.
1535
1536 2010-02-04 Tom Tromey <tromey@redhat.com>
1537
1538 * valops.c (search_struct_field): Account for
1539 value_embedded_offset. Fix check for virtual base past the end of
1540 the object. Use value_copy when making a slice of the value.
1541
1542 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1543
1544 PR tui/9622
1545 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
1546 only if gdb_stdout is a tty.
1547
1548 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1549
1550 * target-descriptions.c: Include "osabi.h".
1551 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
1552 OSABI.
1553
1554 2010-02-04 Tristan Gingold <gingold@adacore.com>
1555
1556 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
1557 (macho_symtab_read): Adjust calls to macho_add_oso.
1558 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
1559 (macho_symfile_read): Adjust call to macho_oso_symfile.
1560 (macho_new_init): Move this function after declarations.
1561 (macho_symfile_init): Ditto.
1562 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
1563 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
1564
1565 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
1566
1567 Include MI command in remotelog.
1568
1569 * mi/mi-main.c (mi_execute_command): Call target_log_command.
1570
1571 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1572
1573 * remote.c (remote_state): Remove gdbarch.
1574 (init_remote_state): Don't set gdbarch.
1575 (remote_query_supported): Pass target_gdbarch instead of
1576 rs->gdbarch to gdbarch_qsupported.
1577
1578 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1579
1580 * gdbarch.sh: Add qsupported.
1581
1582 * gdbarch.c: Regenerated.
1583 * gdbarch.h: Likewise.
1584
1585 * remote.c (remote_state): Add gdbarch.
1586 (init_remote_state): Set gdbarch.
1587 (remote_query_supported): Support gdbarch_qsupported.
1588
1589 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1590
1591 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
1592 __FreeBSD_kernel_version.
1593
1594 2010-02-03 Tristan Gingold <gingold@adacore.com>
1595
1596 * symfile.h (struct sym_fns): Add sym_relocate field.
1597 (default_symfile_relocate): New prototype.
1598 (symfile_relocate_debug_section): First argument is now an objfile.
1599 * symfile.c (default_symfile_relocate): Rename from
1600 symfile_relocate_debug_section, first argument is now an objfile.
1601 (symfile_relocate_debug_section): New function.
1602 * coffread.c (coff_sym_fns): Set sym_relocate field.
1603 * somread.c (som_sym_fns): Ditto.
1604 * mipsread.c (ecoff_sym_fns): Ditto.
1605 * machoread.c (macho_sym_fns): Ditto.
1606 * elfread.c (elf_sym_fns): Ditto.
1607 * dwarf2read.c (dwarf2_read_section): Ditto.
1608 * xcoffread.c (xcoff_sym_fns): Ditto.
1609 * dbxread.c (aout_sym_fns): Ditto.
1610 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
1611 (elfstab_build_psymtabs): Ditto.
1612
1613 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1614
1615 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
1616
1617 2010-02-02 Tom Tromey <tromey@redhat.com>
1618
1619 * valops.c (value_cast_structs): Try downcasting using the RTTI
1620 type.
1621
1622 2010-02-02 Tom Tromey <tromey@redhat.com>
1623
1624 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
1625 (gnuv2_baseclass_offset): Now static.
1626 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
1627 * gnu-v2-abi.h: Remove.
1628
1629 2010-02-02 Tom Tromey <tromey@redhat.com>
1630
1631 * m2-typeprint.c (m2_record_fields): Don't use
1632 TYPE_DECLARED_TYPE.
1633 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
1634 (struct main_type) <flag_declared_class>: New field.
1635 (struct cplus_struct_type) <declared_type>: Remove.
1636 <ntemplate_args>: Move earlier.
1637 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
1638 (DECLARED_TYPE_TEMPLATE): Remove.
1639 (TYPE_DECLARED_TYPE): Remove.
1640 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
1641 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
1642 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
1643 TYPE_DECLARED_TYPE.
1644
1645 2010-02-02 Tom Tromey <tromey@redhat.com>
1646
1647 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1648 * valops.c (search_struct_field): Compute nbases after calling
1649 CHECK_TYPEDEF.
1650 (check_field): Call CHECK_TYPEDEF.
1651 * cp-valprint.c (cp_print_value): Pass correct address to
1652 baseclass_offset. Fix check for virtual base past the end of the
1653 object. Don't offset address passed to cp_print_value_fields or
1654 apply_val_pretty_printer.
1655 (cp_print_value_fields): Fix call to val_print.
1656 (cp_print_value_fields_rtti): New function.
1657 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
1658 * p-valprint.c (pascal_object_print_value_fields): Fix call to
1659 val_print.
1660 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
1661 offset to address.
1662 * language.h (struct language_defn) <la_val_print>: Document.
1663 * c-lang.h (cp_print_value_fields_rtti): Declare.
1664
1665 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1666
1667 PR libc/11214:
1668 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1669 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
1670 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1671
1672 2010-02-01 Michael Matz <matz@suse.de>
1673 Daniel Jacobowitz <dan@codesourcery.com>
1674
1675 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
1676 functions use a frame pointer.
1677
1678 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1679
1680 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
1681 by a conditional setting DYN_ADDR. Use DYN_ADDR.
1682 * config/djgpp/fnchange.lst: Add translations for
1683 symbol-without-target_section.exp and symbol-without-target_section.c.
1684
1685 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1686
1687 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
1688 (remote_breakpoint_for_pc): Correct invalid_p check.
1689 * gdbarch.c: Regenerated.
1690
1691 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1692
1693 * arm-tdep.c (arm_find_mapping_symbol): New function, from
1694 arm_pc_is_thumb.
1695 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
1696 (extend_buffer_earlier): New function.
1697 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
1698 (arm_adjust_breakpoint_address): New function.
1699 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
1700
1701 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1702
1703 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
1704 (arm_linux_thumb2_le_breakpoint): New constants.
1705 (arm_linux_init_abi): Set thumb2_breakpoint and
1706 thumb2_breakpoint_size.
1707 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
1708 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
1709 Implement support for single stepping through IT blocks if
1710 a 32-bit Thumb breakpoint instruction is available.
1711 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
1712 is available, use it when needed.
1713 (arm_remote_breakpoint_from_pc): New function.
1714 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
1715 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
1716 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
1717
1718 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1719
1720 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
1721 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
1722 * gdbarch.c, gdbarch.h: Regenerated.
1723 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
1724 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
1725 gdbarch_remote_breakpoint_from_pc.
1726
1727 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1728
1729 * infrun.c (prepare_to_proceed): Handle other signals which might
1730 match a breakpoint.
1731 (handle_inferior_event): Move the check for unusual breakpoint
1732 signals earlier.
1733
1734 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
1735
1736 amd64 - function returning record with field straddling 2 registers.
1737 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
1738 a record of length <= 16 in which a field straddles the two
1739 eightbytes.
1740
1741 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1742
1743 Implement return values on amd64-windows.
1744 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
1745 (amd64_windows_return_value): New function.
1746 (amd64_windows_init_abi): Call set_gdbarch_return_value with
1747 amd64_windows_return_value.
1748
1749 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1750
1751 amd64-windows: 32 bytes allocated on stack by caller for integer
1752 parameter registers.
1753 * i386-tdep.h (struct gdbarch_tdep): Add new field
1754 integer_param_regs_saved_in_caller_frame.
1755 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1756 tdep->integer_param_regs_saved_in_caller_frame to 1.
1757 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1758 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1759
1760 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1761
1762 amd64-windows: memory args passed by pointer during function calls.
1763 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1764 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1765 where tdep->memory_args_by_pointer is non-zero.
1766 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1767 tdep->memory_args_by_pointer to 1.
1768
1769 2010-01-29 Joel Brobecker <brobecker@adacore.com>
1770
1771 amd64-windows: Integer parameters in function calls.
1772 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1773 amd64-tdep.c.
1774 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1775 call_dummy_integer_regs, and classify.
1776 * amd64-tdep.h (amd64_classify): Add declaration.
1777 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1778 (amd64_reg_class): Delete, moved to i386-tdep.h.
1779 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1780 Replace call to amd64_classify by call to tdep->classify.
1781 (amd64_push_arguments): Get the list of registers to use for
1782 passing integer parameters from the gdbarch tdep structure,
1783 rather than using a hardcoded one. Replace calls to amd64_classify
1784 by calls to tdep->classify.
1785 (amd64_push_dummy_call): Get the register number used for
1786 the "hidden" argument from tdep->call_dummy_integer_regs.
1787 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1788 and tdep->call_dummy_integer_regs. Set tdep->classify.
1789 * amd64-windows-tdep.c: Add include of gdbtypes.h.
1790 (amd64_windows_dummy_call_integer_regs): New static global.
1791 (amd64_windows_classify): New function.
1792 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
1793 tdep->call_dummy_integer_regs and tdep->classify.
1794
1795 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
1796
1797 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
1798 for the new regcache. All callers updated.
1799 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
1800 (get_thread_arch_regcache): Do not set aspace here.
1801 * regcache.h (regcache_xmalloc): Update declaration.
1802
1803 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
1804 regcache_xmalloc updated.
1805
1806 2010-01-28 Joel Brobecker <brobecker@adacore.com>
1807
1808 Another -Wunused-function error in procfs.c (sparc-solaris)
1809 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
1810 Only define if SYS_syssgi is defined.
1811 (remove_dbx_link_breakpoint): Delete declaration. Move up.
1812 (dbx_link_addr, insert_dbx_link_bpt_in_file)
1813 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
1814 is itself defined.
1815
1816 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
1817
1818 * windows-nat.c (windows_initialization_done): New variable.
1819 (get_windows_debug_event): Issue error when process dies before
1820 completely initializing.
1821 (do_initial_windows_stuff): Set flag to indicate when we are done with
1822 the initial steps of attaching to the child.
1823
1824 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1825
1826 * symtab.h (struct symbol <symtab>): New comment on NULL values.
1827
1828 2010-01-27 Doug Evans <dje@google.com>
1829
1830 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
1831
1832 * breakpoint.c (bpstat_stop_status): Delete useless code.
1833
1834 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1835
1836 * printcmd.c (display_uses_solib_p): Remove variable section. Access
1837 objfile via SYMBOL_SYMTAB.
1838
1839 2010-01-26 Tom Tromey <tromey@redhat.com>
1840
1841 PR exp/7643:
1842 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
1843 coerce_array on result.
1844
1845 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1846
1847 * cp-namespace.c (cp_lookup_symbol_namespace): Added
1848 search_parent argument.
1849 (cp_add_using): Initialize 'searched' field.
1850 (reset_directive_searched): New function.
1851 * cp-support.h: Add 'searched' field to using_direct struct.
1852 (cp_lookup_symbol_imports): Ditto.
1853 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
1854 Perform recursive search.
1855 Implement non parent search.
1856 * valops.c (value_maybe_namespace_elt): Updated.
1857
1858 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1859
1860 PR gdb/10929:
1861 * dwarf2read.c (read_lexical_block_scope): Create blocks for
1862 scopes which contain using directives even if they contain no
1863 declarations.
1864 * symtab.c (lookup_symbol_aux): Pass lowest level block to
1865 la_lookup_symbol_nonlocal.
1866 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
1867 cp_lookup_symbol_namespace.
1868 (cp_lookup_symbol_namespace): Perform an import lookup at every
1869 block level.
1870 (cp_lookup_symbol_imports): New function.
1871 (cp_lookup_symbol_in_namespace): New function.
1872
1873 2010-01-25 Tom Tromey <tromey@redhat.com>
1874
1875 PR gdb/11049:
1876 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
1877 result.
1878
1879 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1880
1881 * configure.ac: Only use host_os part when disabling TUI on osf.
1882 Use test to check variables, prefix strings with x.
1883 * configure: Regenerate.
1884
1885 * solib-osf.c (osf_current_sos): Initialize tail.
1886
1887 2010-01-25 gingold <gingold@adacore.com>
1888
1889 * windows-nat.c (windows_continue): Use %x to print thread id.
1890 (get_windows_debug_event): Ditto.
1891
1892 2010-01-22 Tom Tromey <tromey@redhat.com>
1893
1894 PR symtab/11199:
1895 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
1896 type and arguments. Use smash_to_methodptr_type.
1897 (read_structure_type): Call quirk_gcc_member_function_pointer
1898 later.
1899 * gdbtypes.h (smash_to_methodptr_type): Declare.
1900 * gdbtypes.c (smash_to_methodptr_type): New function.
1901 (lookup_methodptr_type): Use it.
1902
1903 2010-01-21 Tom Tromey <tromey@redhat.com>
1904
1905 PR symtab/11198:
1906 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
1907 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
1908 * glibc-tdep.c (find_minsym_and_objfile): Remove.
1909 (glibc_skip_solib_resolver): Use
1910 lookup_minimal_symbol_and_objfile.
1911
1912 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
1913
1914 * inflow.c (check_syscall): Guard by #if clause for GO32 and
1915 WIN32 targets.
1916
1917 2010-01-20 Tom Tromey <tromey@redhat.com>
1918
1919 PR backtrace/10770:
1920 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
1921 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
1922 * dwarf2expr.c (new_dwarf_expr_context): Allocate
1923 dwarf_stack_values, not CORE_ADDRs.
1924 (execute_stack_op): Change DW_OP_div and comparison operators to
1925 use signed operands.
1926
1927 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
1928
1929 Per-inferior args and tty and environment.
1930
1931 * infcmd.c (inferior_args): Rename to ...
1932 (inferior_args_scratch): ... this.
1933 (inferior_io_terminal): Rename to ...
1934 (inferior_io_terminal_scratch): ... this.
1935 (inferior_argc, inferior_argv): Remove.
1936 (set_inferior_io_terminal, get_inferior_io_terminal): Store
1937 inside current_inferior().
1938 (set_inferior_tty_command, show_inferior_tty_command): New.
1939 (get_inferior_args, set_inferior_args): Store inside
1940 current_inferior().
1941 (notice_args_set): Likewise and rename to...
1942 (set_args_command): ... this.
1943 (set_inferior_args_vector): Likewise.
1944 (notice_args_read): Rename to...
1945 (show_args_command): ...new.
1946 (tty_command): Remove.
1947 (run_command_1): Don't free old args, as they are freed by
1948 set_inferior_arg now.
1949 (run_no_args_command): Likewise.
1950 (inferior_environ): Remove.
1951 (run_command_1): Use environment of the current inferior.
1952 (environment_info, set_environment_command)
1953 (unset_environment_command, path_info, path_command): Likewise.
1954 (_initialize_infcmd): Adjust for function and variable renames.
1955 Do not init inferior_environ.
1956 * inferior.h (set_inferior_arg): Adjust prototype.
1957 (struct inferior): New fields args, argc, argv, terminal, environment.
1958 (inferior_environ): Remove declaration.
1959 * inferior.c (free_inferior): Free new fields.
1960 (add_inferior_silent): Initialize 'environment' field.
1961 * main.c (captured_main): Set arguments only after the initial
1962 inferior has been created. Set set_inferior_io_terminal,
1963 not tty_command.
1964 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
1965 inferior.
1966 (_initialize_mi_cmd_env): Adjust for disappearance of global
1967 inferior_environ.
1968 * solib.c (solib_find): Use environment of the current inferior.
1969
1970 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
1973 HAVE_PYTHON.
1974 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
1975
1976 2010-01-20 Joel Brobecker <brobecker@adacore.com>
1977
1978 Get rid of ada-lang.c:function_name_from_pc.
1979 * ada-lang.c: Add "stack.h" #include.
1980 (function_name_from_pc): Delete.
1981 (is_known_support_routine): Replace call to function_name_from_pc
1982 by call to find_frame_funname.
1983 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1984
1985 2010-01-19 Tom Tromey <tromey@redhat.com>
1986
1987 PR c++/11026:
1988 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
1989 objfile obstack.
1990
1991 2010-01-19 Tom Tromey <tromey@redhat.com>
1992
1993 * top.c (stop_sig, float_handler, do_nothing): Remove.
1994
1995 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1996
1997 * breakpoint.c (watchpoint_check): Check the call
1998 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
1999 Extend the comment.
2000 * config/djgpp/fnchange.lst: Add translations for
2001 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
2002 watchpoint-cond-gone-stripped.c.
2003
2004 2010-01-19 Tom Tromey <tromey@redhat.com>
2005
2006 PR c++/8000:
2007 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
2008 into parent scope, and enumerator into grandparent scope.
2009
2010 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2011
2012 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
2013
2014 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2015
2016 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
2017 i[34567]86-*-solaris2.1[0-9]*.
2018 * configure.tgt: Likewise.
2019
2020 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2021
2022 * NEWS: Document the source command enhancement allowing it
2023 to load Python scripts. Document the "set/show script-extension"
2024 commands.
2025
2026 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2027
2028 Add -Wunused-function to compile flags.
2029 * configure.ac: Add -Wunused-function to build_warnings.
2030 * configure: Regenerate.
2031
2032 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2033
2034 "delete" ada-lex.c:input function, not used.
2035 * ada-lex.l: #define YY_NO_INPUT.
2036
2037 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2038
2039 Delete free_named_symtabs and associated cleanup.
2040 * symfile.h (free_named_symtabs): Delete declaration.
2041 * symfile.c: Remove some commented out code (clear_symtab_users_once).
2042 (cashier_psymtab): Comment function out.
2043 Delete declaration.
2044 (free_named_symtabs): Delete.
2045 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
2046 * dbxread.c (end_psymtab): Likewise.
2047 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
2048 * exec.c (exec_close_1): Ditto.
2049 * xcoffread.c (xcoff_end_psymtab): Likewise.
2050
2051 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2052
2053 * stack.c (print_block_frame_labels): Comment function out.
2054
2055 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2056
2057 Delete unused or undefined functions.
2058 * breakpoint.c (ep_parse_optional_filename): Delete.
2059 * dcache.c (dcache_write_line): Remove declaration.
2060 * infrun.c (build_infrun): Remove declaration.
2061 * tracepoint.c (tracepoint_save_command): Remove declaration.
2062 * linux-nat.c (init_lwp_list): Delete. No longer used.
2063 * event-loop.c (check_async_signal_handlers): Delete declaration.
2064 * infrun.c (init_execution_control_state): Delete.
2065 (proceed): Update comment to avoid mentioning
2066 init_execution_control_state.
2067 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
2068 * ada-lang.c (ada_to_static_fixed_value): Delete.
2069 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
2070 * cp-namespace.c (cp_copy_usings): Delete.
2071 * xml-syscall.c (xml_number_of_syscalls): Delete.
2072 * progspace.c (find_program_space_by_num): Delete.
2073 * inflow.c (handle_sigio): Delete declaration.
2074 * hppa-tdep.c (hppa_alignof): Delete.
2075 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
2076 (mipsnbsd_core_osabi_sniffer): Delete.
2077
2078 2010-01-18 Tom Tromey <tromey@redhat.com>
2079
2080 PR c++/9680:
2081 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
2082 (CONST_CAST): New tokens.
2083 (exp): Add new productions.
2084 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
2085 reinterpret_cast.
2086 (is_cast_operator): New function.
2087 (yylex): Handle cast operators specially.
2088 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
2089 UNOP_REINTERPRET_CAST>: New cases.
2090 * expprint.c (print_subexp_standard): Likewise.
2091 (op_name_standard): Likewise.
2092 (dump_subexp_body_standard): Likewise.
2093 * parse.c (operator_length_standard): Likewise.
2094 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
2095 UNOP_REINTERPRET_CAST.
2096 * gdbtypes.c (class_types_same_p): New function.
2097 (is_ancestor): Use it.
2098 (is_public_ancestor): New function.
2099 (is_unique_ancestor_worker): Likewise.
2100 (is_unique_ancestor): Likewise.
2101 * gdbtypes.h (class_types_same_p, is_public_ancestor)
2102 (is_unique_ancestor): Declare.
2103 * valops.c (value_reinterpret_cast): New function.
2104 (dynamic_cast_check_1): Likewise.
2105 (dynamic_cast_check_2): Likewise.
2106 (value_dynamic_cast): Likewise.
2107 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
2108
2109 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2110
2111 Fix build failure when building without Python support.
2112 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
2113 is not defined.
2114
2115 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2116
2117 Use XVS field type instead of doing a parallel lookup.
2118 * ada-lang.c (ada_get_base_type): Follow the XVS field type
2119 if it is a reference type instead of doing a type lookup using
2120 the XVS field name.
2121
2122 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2123
2124 Trust PAD types instead of using PAD___XVS.
2125 * ada-lang.c (trust_pad_over_xvs): New static variable.
2126 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
2127 parallel XVS type, follow the XVS type instead of the PAD type.
2128 (unwrap_value): Make sure that there is no parallel XVE type
2129 before returning the value as is.
2130 (set_ada_list, show_ada_list): New static variables.
2131 (set_ada_command, show_ada_command): New functions.
2132 (_initialize_ada_language): Add new "set/show ada" prefix commands.
2133 Add new "set/show ada trust-PAD-over-XVS" setting.
2134
2135 2010-01-18 Tom Tromey <tromey@redhat.com>
2136 Thiago Jung Bauermann <bauerman@br.ibm.com>
2137
2138 Allow "source" to load python scripts.
2139 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
2140 * python/python.c (source_python_script): New function.
2141 * python/python.h (source_python_script): Add declaration.
2142 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
2143 (script_ext_off, script_ext_soft, script_ext_strict)
2144 (script_ext_enums, script_ext_mode): New static constants.
2145 (show_script_ext_mode, find_and_open_script): New functions.
2146 (source_script): Enhance to handle Python scripts.
2147 (init_cli_cmds): Add set/show script-extension commands.
2148
2149 2010-01-16 Stan Shebs <stan@codesourcery.com>
2150
2151 * tracepoint.h (struct trace_status): Use unsigned long long
2152 instead of size_t.
2153 * tracepoint.c (trace_status_command): Fix printf directive.
2154 (trace_save_command): Check fwrite returns, fix printf directive.
2155 (trace_filename): New global.
2156 (tfile_open): Set it, check read returns.
2157 (tfile_close): Free trace_filename.
2158 (tfile_get_traceframe_address): Check read returns.
2159 (tfile_trace_find): Ditto.
2160 (tfile_fetch_registers): Ditto.
2161 (tfile_xfer_partial): Ditto.
2162 (tfile_get_trace_state_variable_value): Ditto.
2163
2164 2010-01-15 Stan Shebs <stan@codesourcery.com>
2165
2166 Add trace file support.
2167 * tracepoint.h (enum trace_stop_reason): New enum.
2168 (struct trace_status): New struct.
2169 (parse_trace_status): Declare.
2170 (struct uploaded_tp): Move here from remote.c,
2171 add fields for actions.
2172 (struct uploaded_tsv): New struct.
2173 * tracepoint.c (tfile_ops): New target vector.
2174 (trace_fd): New global.
2175 (tfile_open): New function.
2176 (tfile_close): New function.
2177 (tfile_files_info): New function.
2178 (tfile_get_trace_status): New function.
2179 (tfile_get_traceframe_address): New function.
2180 (tfile_trace_find): New function.
2181 (tfile_fetch_registers): New function.
2182 (tfile_xfer_partial): New function.
2183 (tfile_get_trace_state_variable_value): New function.
2184 (init_tfile_ops): New function.
2185 (_initialize_tracepoint): Call it, add tfile target.
2186 (trace_status): New global.
2187 (current_trace_status): New function.
2188 (trace_running_p): Remove, change all users to get from
2189 current_trace_status()->running.
2190 (get_trace_status): Remove.
2191 (trace_status_command): Call target_get_trace_status directly,
2192 report more detail including tracing stop reasons.
2193 (trace_find_command): Always allow tfind on a file.
2194 (trace_find_pc_command): Ditto.
2195 (trace_find_tracepoint_command): Ditto.
2196 (trace_find_line_command): Ditto.
2197 (trace_find_range_command): Ditto.
2198 (trace_find_outside_command): Ditto.
2199 (trace_frames_offset, cur_offset): Declare as off_t.
2200 (trace_regblock_size): Rename from reg_size, update users.
2201 (parse_trace_status): New function.
2202 (tfile_interp_line): New function.
2203 (disconnect_or_stop_tracing): Ensure current trace
2204 status before asking what to do.
2205 (stop_reason_names): New global.
2206 (trace_save_command): New command.
2207 (get_uploaded_tp): Move here from remote.c.
2208 (find_matching_tracepoint): Ditto.
2209 (merge_uploaded_tracepoints): New function.
2210 (parse_trace_status): Use stop_reason_names.
2211 (_initialize_tracepoint): Define tsave command.
2212 * target.h (target_ops): New fields to_save_trace_data,
2213 to_upload_tracepoints, to_upload_trace_state_variables,
2214 to_get_raw_trace_data, change to_get_trace_status
2215 to take a pointer to a status struct.
2216 (target_save_trace_data): New macro.
2217 (target_upload_tracepoints): New macro.
2218 (target_upload_trace_state_variables): New macro.
2219 (target_get_raw_trace_data): New macro.
2220 * target.c (update_current_target): Add new methods, change
2221 signature of to_get_trace_status.
2222 * remote.c (hex2bin): Make globally visible.
2223 (bin2hex): Ditto.
2224 (remote_download_trace_state_variable): Download name also.
2225 (remote_get_trace_status): Update parameter, use
2226 parse_trace_status.
2227 (remote_save_trace_data): New function.
2228 (remote_upload_tracepoints): New function.
2229 (remote_upload_trace_state_variables): New function.
2230 (remote_get_raw_trace_data): New function.
2231 (remote_start_remote): Use them.
2232 (_initialize_remote_ops): Add operations.
2233 * ax-gdb.c: Include breakpoint.h.
2234 * breakpoint.c (create_tracepoint_from_upload): Use
2235 break_command_really, return tracepoint, warn about unimplemented
2236 parts.
2237 * NEWS: Mention trace file addition.
2238
2239 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2240
2241 Fix compilation warning on gcc-3.4.
2242 * exec.c (print_section_info): Move the `displacement' variable
2243 initialization to its declaration.
2244
2245 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2246
2247 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
2248 comparison.
2249
2250 2010-01-15 Eric Botcazou <botcazou@adacore.com>
2251
2252 "info tasks" broken by typedefs in ATCB type definitions.
2253 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
2254 ada_check_typedef before retrieving the length of the type for
2255 regular fields.
2256
2257 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2258
2259 Do not use name-based lookup for unconstrained packed arrays.
2260 * ada-lang.c (find_parallel_type_by_descriptive_type):
2261 Limit the fallback to name-based lookups to the case where
2262 the type is a constrained packed array.
2263
2264 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2265
2266 Enhance gdb-gdb.py to handle main_type.type_specific.
2267 * gdb-gdb.py: Print the type-specific part of struct main_type.
2268
2269 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2270
2271 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
2272 * configure: Regenerate.
2273 * config.in: Regenerate.
2274 * utils.c: Include sys/resource.h.
2275 (dump_core, can_dump_core): New.
2276 (internal_vproblem): Update the comment. Check can_dump_core while
2277 setting dump_core_p. Replace two abort calls by dump_core calls.
2278
2279 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2280 Eli Zaretskii <eliz@gnu.org>
2281
2282 * NEWS: Document the PIE support.
2283
2284 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
2287 (check_is_pie_binary, _initialize_linux_tdep): Remove.
2288
2289 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2290
2291 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
2292 Replace exec_entry_point call by bfd_get_start_address.
2293
2294 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2295
2296 Support Valgrind attachments broken by the PIE support.
2297 * auxv.c: Include gdbcore.h.
2298 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
2299 parameters ops, object and annex. Remove their assertions.
2300 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
2301 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
2302 (memory_xfer_auxv): ... here.
2303 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
2304 memory_xfer_auxv.
2305 * procfs.c (procfs_xfer_partial): Likewise.
2306 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
2307 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
2308 (svr4_solib_create_inferior_hook): Conditionalize the
2309 svr4_relocate_main_executable call.
2310
2311 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
2314 target_section. Find SECT in current_target_sections, gdb_assert it.
2315 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
2316 New variable abfd.
2317 * symtab.c (lookup_objfile_from_block): Return the binary file instead
2318 of separate debug info file.
2319
2320 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2321
2322 Support PIEs with no symfile_objfile.
2323 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
2324 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
2325
2326 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
2329 code part to ...
2330 (svr4_static_exec_displacement): ... a new function.
2331 (svr4_exec_displacement): New function.
2332 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
2333 new_offsets using alloca now. Remove variable old_chain and changed.
2334 Call objfile_relocate unconditionally now.
2335
2336 2010-01-14 Doug Evans <dje@google.com>
2337
2338 * gdbtypes.c (arch_flags_type): Fix comment.
2339 * gdbtypes.h (arch_composite_type): Fix comment.
2340
2341 2009-01-14 Tristan Gingold <gingold@adacore.com>
2342
2343 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
2344 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
2345 to symbol_file_add_from_bfd. Add OSO as separate objfile.
2346 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
2347 macho_add_oso_symfile.
2348 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
2349
2350 2010-01-14 Joel Brobecker <brobecker@adacore.com>
2351
2352 Tru64: Dead threads are never deleted.
2353 * dec-thread.c (dec_thread_ptid_is_alive): New function.
2354 (dec_thread_count_gdb_threads): Fix counter increment.
2355 (dec_thread_add_gdb_thread): Fix *listp increment.
2356 (resync_thread_list): Fix bug in deletion of dead threads that
2357 caused all threads to be deleted, instead of just the dead ones.
2358
2359 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
2360
2361 PR python/10705
2362
2363 * python/python-internal.h: Add lazy_string_object_type
2364 definition.
2365 (create_lazy_string_object, gdbpy_initialize_lazy_string)
2366 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
2367 * python/py-value.c (valpy_lazy_string): New function.
2368 (convert_value_from_python): Add lazy string conversion.
2369 * python/py-prettyprint.c (pretty_print_one_value): Check if
2370 return is also a lazy string.
2371 (print_string_repr): Add lazy string printing branch.
2372 (print_children): Likewise.
2373 * python/py-lazy-string.c: New file. Implement lazy strings.
2374 * python/python.c (_initialize_python): Call
2375 gdbpy_initialize_lazy_string.
2376 * varobj.c (value_get_print_value): Add lazy string printing
2377 branch. Account for encoding.
2378 * c-lang.c (c_printstr): Account for new encoding argument. If
2379 encoding is NULL, find encoding suited for type, otherwise use
2380 user encoding.
2381 * language.h (language_defn): Add encoding argument.
2382 (LA_PRINT_STRING): Likewise.
2383 * language.c (unk_lang_printstr): Update to reflect new encoding
2384 argument to language_defn.
2385 * ada-lang.h (ada_printstr): Likewise.
2386 * c-lang.h (c_printstr): Likewise.
2387 * p-lang.h (pascal_printstr);
2388 * f-lang.c (f_printstr): Likewise.
2389 * m2-lang.c (m2_printstr): Likewise.
2390 * objc-lang.c (objc_printstr): Likewise.
2391 * p-lang.c (pascal_printstr): Likewise.
2392 * scm-lang.c (scm_printstr): Likewise.
2393 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
2394 encoding argument.
2395 * ada-valprint.c (ada_printstr): Likewise.
2396 * f-valprint.c (f_val_print): Likewise
2397 * m2-valprint.c (m2_val_print): Likewise.
2398 * p-valprint.c (pascal_val_print): Likewise.
2399 * expprint.c (print_subexp_standard): Likewise.
2400 * valprint.c (val_print_string): Likewise.
2401 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
2402 (SUBDIR_PYTHON_SRCS): Likewise.
2403 (py-lazy-string.o): New rule.
2404
2405 2010-01-13 Doug Evans <dje@google.com>
2406
2407 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
2408 uninitialized" warning from gcc on local `tree'.
2409
2410 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
2411
2412 Implement core awareness.
2413
2414 * bcache.c (compare_ints): Remove
2415 (print_percentage): Use compare_positive_ints.
2416 * defs.h (compare_positive_ints): Declare.
2417 * linux-nat.h (struct lin_lwp): New field core.
2418 (linux_nat_core_of_thread_1): Declare.
2419 * linux-nat.c (add_lwp): Init the 'core' field.
2420 (linux_nat_wait_1): Record the core.
2421 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
2422 (linux_nat_add_target): Register the above.
2423 * linux-thread-db.c (update_thread_core): New.
2424 (thread_db_find_new_threads): Update core information for
2425 every thread.
2426 * remote.c (struct private_thread_info): New.
2427 (free_private_thread_info, demand_private_info): New.
2428 (PACKET_qXfer_threads, use_osdata_threads): New.
2429 (struct thread_item, threads_parsing_context
2430 (start_thread, end_thread, thread_attributes)
2431 (thread_children, threads_children, threads_elements): New.
2432 (remote_threads_info): Try qXfer:threads before anything
2433 else.
2434 (remote_protocol_packets): Register qXfer:threads.
2435 (remote_open_1): Init use_osdata_threads.
2436 (struct stop_reply): New field 'core'.
2437 (remote_parse_stop_reply): Parse core number.
2438 (process_stop_reply): Record core number.
2439 (remote_xfer_partial): Handle qXfer:threads.
2440 (remote_core_of_thread): New.
2441 (init_remote_ops): Register remote_core_of_thread.
2442 (_initialize_remote): Register qXfer:read.
2443 * target.c (target_core_of_thread): New
2444 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
2445 (struct target_ops): New field to_core_of_threads.
2446 (target_core_of_thread): Declare.
2447 * gdbthread.h (struct thread_info): New field private_dtor.
2448 * thread.c (print_thread_info): Report the core.
2449 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
2450 * utils.c (compare_positive_ints): New.
2451 * features/threads.dtd: New.
2452 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
2453 * mi/mi-main.c (struct collect_cores_data, collect_cores)
2454 (do_nothing, free_vector_of_osdata_items)
2455 (splay_tree_int_comparator, free_splay_tree): New.
2456 (print_one_inferior_data): Implemented printing of selected
2457 inferiors. Collect and print cores.
2458 (output_cores): New.
2459 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
2460 thread groups together with --available.
2461
2462 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2463
2464 * configure: Regenerate (for _STRUCTURED_PROC).
2465
2466 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2467
2468 Delete dead function.
2469 * ada-lang.c (extract_string): Delete. No longer used.
2470
2471 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2472
2473 Fix -Wunused warning in dec-thread.c.
2474 * dec-thread.c (dec_thread_count_gdb_threads)
2475 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
2476
2477 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2478
2479 * ada-valprint.c (ada_print_floating): Remove trailing space.
2480
2481 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2482
2483 Add support for DW_AT_GNAT_descriptive_type.
2484 * gdbtypes.h (enum type_specific_kind): New enum.
2485 (struct main_type) [type_specific_field]: New component.
2486 [type_specific]: Add new component "gnat_stuff".
2487 (struct gnat_aux_type): New type.
2488 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
2489 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
2490 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
2491 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
2492 (TYPE_SPECIFIC_FIELD): New macros.
2493 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
2494 type does not hold any cplus-specific data.
2495 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
2496 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
2497 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
2498 cplus-specific data.
2499 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
2500 Set new component TYPE_SPECIFIC_FIELD (type).
2501 (gnat_aux_default): New constant.
2502 (allocate_gnat_aux_type): New function.
2503 (init_type): Add initialization the type-specific stuff for
2504 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
2505 (print_gnat_stuff): New function.
2506 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
2507 specific data. Adjust code that prints the contents of the
2508 type-specific union using the TYPE_SPECIFIC_FIELD value.
2509 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
2510 the type cplus stuff for Ada types.
2511 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
2512 Error out if these routines are called with an Ada type.
2513 (read_structure_type, read_array_type, read_subrange_type):
2514 Add call to set_descriptive_type.
2515 (set_die_type): Initialize the gnat-specific data if necessary.
2516 (need_gnat_info, die_descriptive_type, set_descriptive_type):
2517 New functions.
2518 * ada-lang.c (decode_constrained_packed_array_type): Use
2519 decode_constrained_packed_array_type instead of doing a standard
2520 lookup to locate a parallel type.
2521 (find_parallel_type_by_descriptive_type): New function.
2522 (ada_find_parallel_type_with_name): New function.
2523 (ada_find_parallel_type): Reimplement using
2524 ada_find_parallel_type_with_name.
2525 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
2526 to check if type has a cplus stuff.
2527 * linespec.c (total_number_of_methods): Likewise.
2528 * mdebugread.c (new_type): Likewise.
2529
2530 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2531
2532 * NEWS: Document the 0b binary number prefix parsing.
2533
2534 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2535
2536 * objfiles.c (objfile_relocate1): Change the return type to int.
2537 Describe the new return value. Return non-zero if data changed.
2538 (objfile_relocate): New variable changed. Set it. Call
2539 breakpoint_re_set depending on CHANGED.
2540
2541 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2542
2543 Implement binary numbers parsing.
2544 * c-exp.y (parse_number): New case 'b' and 'B'.
2545
2546 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2547 Tristan Gingold <gingold@adacore.com>
2548
2549 * solib.c (info_sharedlibrary_command): Replace
2550 objfile_has_partial_symbols and objfile_has_full_symbols calls by
2551 objfile_has_symbols.
2552
2553 2010-01-10 Joel Brobecker <brobecker@adacore.com>
2554
2555 * NEWS: Document the improvements made to the mips-irix port.
2556
2557 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2558
2559 Fix the documentation of valprint.c:value_print.
2560 * valprint.c (value_print): Update the function description to
2561 mention that the syntax of the output follows the current_language,
2562 not necessarily C.
2563
2564 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2565
2566 Fix displacement of separate debug info files.
2567 * objfiles.c (objfile_relocate): Rename to ...
2568 (objfile_relocate1): ... here and make it static. Extend the comment.
2569 (objfile_relocate): New function.
2570 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
2571 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
2572 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
2573 allocated using alloca.
2574 * symfile.c (copy_section_addr_info): Remove.
2575 (build_section_addr_info_from_objfile): Make it global. New variables
2576 addr_bit and mask, use them.
2577 * symfile.h (build_section_addr_info_from_objfile): New prototype.
2578 (copy_section_addr_info): Remove.
2579
2580 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2581
2582 Signal unwinder for mips-irix N32.
2583 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
2584 tramp-frame.h.
2585 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
2586 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
2587 (SIGCONTEXT_LO_OFF): New macros.
2588 (mips_irix_n32_tramp_frame_init): New function.
2589 (mips_irix_n32_tramp_frame): New static constant.
2590 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
2591
2592 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2593
2594 Breakpoint in shared library does not work on mips-irix.
2595 * procfs.c: #include "observer.h".
2596 (procfs_inferior_created): New function, moving here the code
2597 which unsets the syssgi syscall-exit notifications.
2598 (procfs_create_inferior): Remove the code which unsets the syssgi
2599 syscall-exit notifications. It is too early to do this here.
2600 (_initialize_procfs): Attach the procfs_inferior_created observer.
2601
2602 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2603
2604 Wrong return convention for arrays (mips-irix).
2605 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
2606 128 bits or smaller are returned the same way as structs
2607 and unions of the the same size.
2608
2609 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2610
2611 Cannot set the PC on mips-irix.
2612 * irix5-nat.c (fill_gregset): Check regno against the raw PC
2613 register number, no the cooked one.
2614
2615 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2616
2617 Error while loading core file on mips-irix.
2618 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
2619 if debugging from a core file.
2620
2621 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2622
2623 GDB hangs when attaching to process on mips-irix.
2624 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
2625 attaching to a process.
2626
2627 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2628
2629 Use the correct breakpoint instruction on mips-irix.
2630 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
2631 containing the correct breakpoint instruction to use on mips-irix.
2632 Use it when the osabi is GDB_OSABI_IRIX.
2633
2634 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2635
2636 -Wunused warning in procfs.c (mips-irix only).
2637 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
2638 throughout instead of using praddset and prdelset respectively.
2639
2640 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2641
2642 GDB crash while stepping into function.
2643 * infrun.c (handle_inferior_event): Refetch the current frame
2644 after handling what.main_action, in case that pointer became
2645 dangling.
2646
2647 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2648
2649 Fix build failure of solaris-hosted cross debuggers.
2650 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
2651
2652 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
2653
2654 Fix build failure on sparc-solaris.
2655 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
2656
2657 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2658
2659 Move some symfile code into subroutines.
2660 * symfile.h (relative_addr_info_to_section_offsets)
2661 (addr_info_make_relative): New prototypes.
2662 * symfile.c (default_symfile_offsets): Move a part to ...
2663 (relative_addr_info_to_section_offsets): ... this new function.
2664 (default_symfile_offsets): Call it.
2665 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
2666 this part to ...
2667 (addr_info_make_relative): ... this new function.
2668
2669 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2670
2671 Add from_tty to solib_create_inferior_hook.
2672 * infcmd.c (post_create_inferior): Move solib_add after
2673 solib_create_inferior_hook. Pass from_tty to
2674 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
2675 0 from_tty and comment why.
2676 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
2677 * linux-nat.c (linux_child_follow_fork): Likewise.
2678 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
2679 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
2680 from_tty.
2681 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
2682 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2683 * solib-null.c (null_solib_create_inferior_hook): Likewise.
2684 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2685 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2686 * solib-som.c (som_solib_create_inferior_hook): Likewise.
2687 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
2688 Pass it to svr4_so_ops.solib_create_inferior_hook.
2689 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
2690 from_tty.
2691 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
2692 solib_add.
2693 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
2694 enable_break.
2695 * solib-target.c (solib_target_solib_create_inferior_hook): New
2696 parameter from_tty.
2697 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
2698 it to ops->solib_create_inferior_hook.
2699 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
2700 Move solib_add after solib_create_inferior_hook, call it now with
2701 from_tty as 0. New comment there.
2702 * solib.h (solib_create_inferior_hook): New parameter from_tty.
2703 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
2704 Likewise.
2705
2706 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
2707
2708 Fix multiexec race.
2709 * infrun.c (handle_inferior_event): Use get_thread_regcache
2710 with events ptid, not get_current_regcache.
2711
2712 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2713
2714 GDB crash with empty executable name (MinGW).
2715 * source.c (openp): Add assert that parameter string is not NULL.
2716 if parameter string is an empty string, then return with a failure
2717 immediately.
2718
2719 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2720
2721 Get rid of support for VAX Floats.
2722 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2723 (ada_vax_float_print_function): Delete.
2724 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2725 (ada_vax_float_print_function): Delete.
2726 * ada-typeprint.c (print_vax_floating_point_type): Delete.
2727 (ada_print_type): Remove support for VAX floats.
2728 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
2729
2730 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2731
2732 * stabsread.c (read_args): Handle zero arguments.
2733
2734 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2735
2736 Cannot find in-tree libiconv.a after reconfigure.
2737 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
2738 that we can use, then cache the path to this archive.
2739 * configure: Regenerate.
2740
2741 2010-01-07 Stan Shebs <stan@codesourcery.com>
2742
2743 Make tracepoint operations go through target vector.
2744 * target.h (enum trace_find_type): New enum.
2745 (struct target_ops): New fields to_trace_init,
2746 to_download_tracepoint, to_download_trace_state_variable,
2747 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
2748 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
2749 to_set_disconnected_tracing.
2750 (target_trace_init): New macro.
2751 (target_download_tracepoint): New macro.
2752 (target_download_trace_state_variable): New macro.
2753 (target_trace_start): New macro.
2754 (target_trace_set_readonly_regions): New macro.
2755 (target_get_trace_status): New macro.
2756 (target_trace_stop): New macro.
2757 (target_trace_find): New macro.
2758 (target_get_trace_state_variable_value): New macro.
2759 (target_set_disconnected_tracing): New macro.
2760 * target.c (update_current_target): Inherit and set defaults for
2761 tracepoint operations.
2762 * tracepoint.c (default_collect): Make globally visible.
2763 (target_is_remote): Remove, along with all calls.
2764 (tvariables_info): Call target_get_trace_state_variable_value.
2765 (remote_set_transparent_ranges): Remove.
2766 (trace_start_command): Call target_trace_init,
2767 target_download_tracepoint, etc.
2768 (download_tracepoint): Remove.
2769 (trace_stop_command): Simplify.
2770 (stop_tracing): Call target_trace_stop.
2771 (get_trace_status): Call target_get_trace_status.
2772 (trace_status_command): Add case for targets that cannot trace.
2773 (finish_tfind_command): Change to take numerical arguments, call
2774 target_trace_find.
2775 (trace_find_command): Update call to finish_tfind_command.
2776 (trace_find_pc_command): Ditto.
2777 (trace_find_tracepoint_command): Ditto.
2778 (trace_find_line_command): Ditto.
2779 (trace_find_range_command): Ditto.
2780 (trace_find_outside_command): Ditto.
2781 (set_disconnected_tracing_value): Call
2782 target_set_disconnected_tracing.
2783 * remote.c: Add protocol encoding bits from tracepoint.c.
2784 (trace_error): Move from tracepoint.c.
2785 (remote_get_noisy_reply): Ditto.
2786 (free_actions_list_cleanup_wrapper): Ditto.
2787 (free_actions_list): Ditto.
2788 (remote_trace_init): New function.
2789 (remote_download_tracepoint): New function.
2790 (remote_download_trace_state_variable): New function.
2791 (remote_trace_set_readonly_regions): New function.
2792 (remote_trace_start): New function.
2793 (remote_get_trace_status): New function.
2794 (remote_trace_stop): New function.
2795 (remote_trace_find): New function.
2796 (remote_download_trace_state_variable): New function.
2797 (remote_set_disconnected_tracing): New function.
2798 (init_remote_ops): Add tracepoint operations.
2799
2800 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
2801
2802 2010-01-07 Tristan Gingold <gingold@adacore.com>
2803
2804 * symfile.c (build_section_addr_info_from_objfile): New function.
2805 (symbol_file_add_separate): Don't use offsets from objfile but
2806 built an addr info.
2807
2808 2010-01-06 Stan Shebs <stan@codesourcery.com>
2809
2810 Support disconnected tracing.
2811 * infcmd.c (detach_command): Ask whether to stop tracing.
2812 * cli/cli-cmds.c (quit_command): Ditto.
2813 * breakpoint.h (struct breakpoint): New field number_on_target.
2814 * breakpoint.c (create_tracepoint_from_upload): New function.
2815 (get_tracepoint_by_number_on_target): New function.
2816 * remote.c (struct remote): New field disconnected_tracing.
2817 (remote_disconnected_tracing_feature): New function.
2818 (remote_protocol_features): Add DisconnectedTracing.
2819 (struct uploaded_tp): New struct.
2820 (uploaded_tps): New global.
2821 (get_uploaded_tp): New function.
2822 (find_matching_tracepoint): New function.
2823 (remote_get_tracing_state): New function.
2824 (remote_start_remote): Call it.
2825 * tracepoint.c (disconnected_tracing): New global.
2826 (trace_start_command): Initialize number_on_target.
2827 (stop_tracing): New function, split out from...
2828 (trace_stop_command): Call stop_tracing.
2829 (get_trace_status): New function, split out from...
2830 (trace_status_command): Call get_trace_status, add info on
2831 disconnection behavior.
2832 (disconnect_or_stop_tracing): New function.
2833 (finish_tfind_command): Translate from number on target.
2834 (trace_find_tracepoint_command): Translate to number on target.
2835 (send_disconnected_tracing_value): New function.
2836 (set_disconnected_tracing): New function.
2837 (_initialize_tracepoint): Add disconnected-tracing variable.
2838 * NEWS: Mention disconnected tracing.
2839
2840 2010-01-06 Tristan Gingold <gingold@adacore.com>
2841
2842 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
2843 parameter to main_objfile. Iterate on all separate debug objfiles.
2844 * symfile.h (symbol_file_add_separate)
2845 (find_separate_debug_file_by_debuglink): Remove parameter names.
2846 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
2847 (reread_symbols): Use free_objfile_separate_debug.
2848 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
2849 Adjust comment.
2850 (objfile_separate_debug_iterate, add_separate_debug_objfile)
2851 (free_objfile_separate_debug): New prototypes.
2852 * objfiles.c (objfile_separate_debug_iterate): New function.
2853 (add_separate_debug_objfile, free_objfile_separate_debug): New
2854 functions.
2855 (free_objfile): Use free_objfile_separate_debug. Adjust for
2856 multiple separate debug objfile.
2857 (objfile_has_symbols): Adjust comment. Iterate on all separate
2858 debug objfiles.
2859 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
2860 debug objfile.
2861 (lookup_minimal_symbol_text): Ditto.
2862 (lookup_minimal_symbol_by_pc_name): Ditto.
2863 (lookup_minimal_symbol_solib_trampoline): Ditto.
2864 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
2865 debug objfiles.
2866
2867 2010-01-05 Stan Shebs <stan@codesourcery.com>
2868
2869 Add fast tracepoints.
2870 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
2871 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
2872 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
2873 * breakpoint.c (tracepoint_type): New function.
2874 (ALL_TRACEPOINTS): Use it.
2875 (should_be_inserted): Ditto.
2876 (bpstat_check_location): Ditto.
2877 (print_one_breakpoint_location): Ditto.
2878 (user_settable_breakpoint): Ditto.
2879 (set_breakpoint_location_function): Ditto.
2880 (disable_breakpoints_in_shlibs): Ditto.
2881 (delete_trace_command): Ditto.
2882 (print_it_typical): Add bp_fast_tracepoint case.
2883 (bpstat_what): Ditto.
2884 (print_one_breakpoint_location): Ditto.
2885 (allocate_bp_location): Ditto.
2886 (mention): Ditto.
2887 (breakpoint_re_set_one): Ditto.
2888 (disable_command): Ditto.
2889 (enable_command): Ditto.
2890 (check_fast_tracepoint_sals): New function.
2891 (break_command_really): Call it.
2892 (ftrace_command): New function.
2893 (_initialize_breakpoint): Add ftrace command.
2894 * gdbarch.sh (fast_tracepoint_valid_at): New.
2895 * gdbarch.h, gdbarch.c: Regenerate.
2896 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
2897 (i386_gdbarch_init): Use it.
2898 * remote.c (struct remote_state): New field fast_tracepoints.
2899 (PACKET_FastTracepoints): New packet config type.
2900 (remote_fast_tracepoint_feature): New function.
2901 (remote_protocol_features): Add FastTracepoints.
2902 (remote_supports_fast_tracepoints): New function.
2903 (_initialize_remote): Add FastTracepoints.
2904 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
2905 * NEWS: Mention fast tracepoints.
2906
2907 2010-01-06 Joel Brobecker <brobecker@adacore.com>
2908
2909 * gdb-gdb.py: New file.
2910
2911 2010-01-05 Michael Snyder <msnyder@vmware.com>
2912
2913 * infrun.c (handle_inferior_event): Fix typo in comment.
2914
2915 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2918
2919 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2920
2921 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
2922 and s390x-linux64.
2923 (s390-linux32-expedite): Define.
2924 (s390-linux64-expedite): Define.
2925 (s390x-linux64-expedite): Define.
2926 * features/s390-acr.xml: New file.
2927 * features/s390-fpr.xml: New file.
2928 * features/s390-core32.xml: New file.
2929 * features/s390-core64.xml: New file.
2930 * features/s390x-core64.xml: New file.
2931 * features/s390-linux32.xml: New file.
2932 * features/s390-linux64.xml: New file.
2933 * features/s390x-linux64.xml: New file.
2934 * features/s390-linux32.c: New generated file.
2935 * features/s390-linux64.c: New generated file.
2936 * features/s390x-linux64.c: New generated file.
2937
2938 * regformats/s390-linux32.dat: New generated file.
2939 * regformats/s390-linux64.dat: New generated file.
2940 * regformats/s390x-linux64.dat: New generated file.
2941 * regformats/reg-s390.dat: Remove.
2942 * regformats/reg-s390x.dat: Remove.
2943
2944 * s390-nat.c: Include "auxv.h" and <elf.h>.
2945 (HWCAP_S390_HIGH_GPRS): Define if undefined.
2946 (s390_target_wordsize): New function.
2947 (s390_auxv_parse): Likewise.
2948 (s390_get_hwcap): Likewise.
2949 (s390_read_description): Likewise.
2950 (_initialize_s390_nat): Install s390_auxv_parse and
2951 s390_read_description.
2952
2953 * s390-tdep.c: Include "features/s390-linux32.c",
2954 "features/s390-linux64.c", and "features/s390x-linux64.c".
2955 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
2956 (s390_register_call_saved): New function.
2957 (s390_register_name): Remove.
2958 (s390_register_type): Remove.
2959 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
2960 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
2961 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
2962 (s390_pseudo_register_name): New function.
2963 (s390_pseudo_register_type): New function.
2964 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
2965 Handle full GPR pesudos and varying pseudo register numbers.
2966 (s390_pseudo_register_write): Likewise
2967 (s390x_pseudo_register_read): Remove.
2968 (s390x_pseudo_register_write): Likewise.
2969 (s390_register_group): Remove.
2970 (s390_pseudo_register_group): New function.
2971 (s390_regmap_gregset): Add GPR upper halves.
2972 (s390x_regmap_gregset): Likewise.
2973 (s390_regmap_fpregset): Likewise.
2974 (s390_regmap_upper): New global variable.
2975 (s390_upper_regset): New global variable.
2976 (s390_upper_regset_sections): New global variable.
2977 (s390_regset_from_core_section): Handle GPR upper halves.
2978 (s390_core_read_description): New function.
2979 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
2980 register information. Handle varying pseudo register numbers.
2981 (s390_backchain_frame_unwind_cache): Likewise.
2982 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
2983 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
2984 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
2985 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
2986 Handle varying pseudo register numbers.
2987 (s390_unwind_pc): Handle varying pseudo register numbers.
2988 (s390_dwarf2_prev_register): New function.
2989 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
2990 register information. Handle varying pseudo register numbers.
2991 Install s390_dwarf2_prev_register to unwind full GPRs.
2992 (s390_gdbarch_init): Handle target descriptions. Assign varying
2993 pseudo register numbers. Install s390_adjust_frame_regnum.
2994 (_initialize_s390_tdep): Initialize target descriptions.
2995
2996 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
2997 (S390_NUM_REGS): Redefine to include upper half registers.
2998 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
2999 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
3000 (tdesc_s390_linux32): Add declaration.
3001 (tdesc_s390_linux64): Likewise.
3002 (tdesc_s390x_linux64): Likewise.
3003
3004 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3005
3006 * regset.h (struct core_regset_section): Add HUMAN_NAME.
3007 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
3008 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3009 (ppc_linux_vmx_regset_sections): Likewise.
3010 (ppc_linux_fp_regset_sections): Likewise.
3011
3012 * corelow.c (get_core_register_section): Constify arguments.
3013 (get_core_registers): Use gdbarch_core_regset_sections instead
3014 of hard-coded platform-specific register section names.
3015
3016 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3017
3018 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
3019 a register, assume the least-significant part is used.
3020 (write_pieced_value): Likewise.
3021
3022 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3023
3024 * printcmd.c: Include "arch-utils.h".
3025 (do_one_display): Re-parse expression if current architecture changed.
3026
3027 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3028 Joel Brobecker <brobecker@adacore.com>
3029
3030 * gdbtypes.c (check_typedef): New comment on type length.
3031 * value.c (allocate_value_lazy): Remove the unused atype variable. New
3032 comment on type length.
3033 (value_primitive_field): Keep the original TYPE value, new comment.
3034
3035 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
3038 p_start. Change != comparisons to > and < comparisons.
3039
3040 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 * cli/cli-script.c (process_next_line): Check P2 overrun.
3043
3044 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3045
3046 Update the copyright hearder to add year 2010 for most GDB files.
3047
3048 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3049
3050 Fix build failure in inf-ptrace.c.
3051 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
3052
3053 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3054
3055 * top.c (print_gdb_version): Update copyright year.
3056
3057 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3058
3059 Fix break *FUN'address thread NUM.
3060 * ada-lex.l (task): Expand rule to also match the thread keyword.
3061
3062 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3063
3064 Fix break *FUN'address task NUM.
3065 * ada-lex.l (task): New rule.
3066 * ada-lang.c (valid_task_id): Make sure the Ada task list has
3067 been built before using it.
3068
3069 For older changes see ChangeLog-2009.
3070 \f
3071 Local Variables:
3072 mode: change-log
3073 left-margin: 8
3074 fill-column: 74
3075 version-control: never
3076 coding: utf-8
3077 End:
This page took 0.097749 seconds and 5 git commands to generate.