3 * maint.c (maintenance_print_statistics): Make it static.
4 * symtab.h (maintenance_print_statistics): Remove declaration.
8 * NEWS: Add entry announcing ppc-lynx178 support.
12 Revert the following change (compatibility issues with libiconv):
13 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
14 * gnulib/import/errno.in.h: Import.
15 * gnulib/import/m4/errno_h.m4: Import.
16 * gnulib/aclocal.m4: Regenerate.
17 * gnulib/configure: Regenerate.
18 * gnulib/import/Makefile.am: Update.
19 * gnulib/import/Makefile.in: Update.
20 * gnulib/import/m4/gnulib-cache.m4: Update.
21 * gnulib/import/m4/gnulib-comp.m4: Update.
25 * defs.h (directory_command): Don't declare.
26 * source.c (directory_command): Now static.
30 * infcmd.c (all_registers_info, nexti_command, stepi_command)
31 (continue_command, interrupt_target_command): Now static.
32 (registers_info): Remove declaration.
33 * inferior.h (all_registers_info, nexti_command, stepi_command)
34 (continue_command, interrupt_target_command): Don't declare.
38 * cli/cli-cmds.c (apropos_command): Now static.
42 * breakpoint.c (dprintf_command): Now static.
46 * Makefile.in (init.c): Declare initialize_all_files;
47 don't include call-cmds.h.
48 * call-cmds.h: Remove.
49 * symtab.c: Don't include call-cmds.h.
50 * top.c: Don't include call-cmds.h. Declare
55 * symfile.c (list_overlays_command, map_overlay_command)
56 (unmap_overlay_command): Now static.
60 * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
61 "define", "while", and "if" commands.
62 * cli/cli-script.c (while_command, if_command, define_command)
63 (document_command): Now static.
64 (_initialize_cli_script): New function.
65 * cli/cli-script.h (while_command, if_command, define_command)
66 (document_command): Don't declare.
70 * cli/cli-cmds.c (_initialize_cli_cmds): New function.
71 (init_cli_cmds): Move most code into new function.
75 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
76 * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
81 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
82 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
83 * xcoffread.c (xcoff_get_core_n_import_files): New function.
84 (xcoff_get_n_import_files): New function.
85 * xcoffread.h (xcoffread.h): Add declaration.
86 * rs6000-aix-tdep.c: #include "xcoffread.h".
87 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
88 XCOFF executables that do not depend on any shared library.
89 * rs6000-lynx178-tdep.c: New file.
90 * configure.tgt: Add powerpc-*-lynx*178 handling.
91 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
92 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
96 * ui-file.c (ui_file): Add to_fseek.
97 (ui_file_new): Call set_ui_file_fseek.
98 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
99 stdio_file_fseek): New functions.
100 (stdio_file_new): Call set_ui_file_fseek.
101 * ui-file.h (ui_file_fseek_ftype): New typedef.
102 (set_ui_file_fseek, ui_file_fseek): New externs.
106 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
107 (set_ui_file_isatty): Change isatty to isatty_ptr.
108 (set_ui_file_rewind): Change rewind to rewind_ptr.
109 (set_ui_file_put): Change put to put_ptr.
110 (set_ui_file_write): Change write to write_ptr.
111 (set_ui_file_write_async_safe): Change write_async_safe to
112 write_async_safe_ptr.
113 (set_ui_file_read): Change read to read_ptr.
114 (set_ui_file_fputs): Change fputs to fputs_ptr.
115 (set_ui_file_data): Change delete to delete_ptr.
119 * solib-darwin.c (darwin_current_sos): Fix indentation.
120 (darwin_read_exec_load_addr): New function.
121 (darwin_solib_create_inferior_hook): Rebase executable.
122 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
123 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
127 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
128 * gnulib/import/errno.in.h: Import.
129 * gnulib/import/m4/errno_h.m4: Import.
130 * gnulib/aclocal.m4: Regenerate.
131 * gnulib/configure: Regenerate.
132 * gnulib/import/Makefile.am: Update.
133 * gnulib/import/Makefile.in: Update.
134 * gnulib/import/m4/gnulib-cache.m4: Update.
135 * gnulib/import/m4/gnulib-comp.m4: Update.
139 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
140 8d5bd1402003bd0153984b138735adf537d960b0.
141 * gnulib/aclocal.m4, configure, config.in: Regenerate.
142 * gnulib/import/m4/extern-inline.m4: Import.
143 * gnulib/import/wctype-h.c: Import.
144 * gnulib/import/Makefile.am: Update.
145 * gnulib/import/Makefile.in: Update.
146 * gnulib/import/alloca.in.h: Update.
147 * gnulib/import/extra/snippet/warn-on-use.h: Update.
148 * gnulib/import/localcharset.c: Update.
149 * gnulib/import/m4/fcntl-o.m4: Update.
150 * gnulib/import/m4/gnulib-cache.m4: Update.
151 * gnulib/import/m4/gnulib-comp.m4: Update.
152 * gnulib/import/m4/wctype_h.m4: Update.
153 * gnulib/import/stdbool.in.h: Update.
154 * gnulib/import/verify.h: Update.
155 * gnulib/import/wctype.in.h: Update.
159 * gnulib/update-gnulib.sh: Add call to autoheader.
163 * top.c (xgdb_verbose): Remove.
168 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
169 unused forward declarations.
170 (skip_file_command): Make variables symtab and filename targets const.
171 Use proper 0 vs. NULL constant everywhere.
172 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
173 Include empty line after declarations. Use GNU spacing in a comment.
174 Do not use strlen for end of string check.
175 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
177 (skip_enable_command, skip_disable_command, skip_delete_command)
178 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
179 (function_pc_is_marked_for_skip): Make variable filename target const.
180 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
182 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
183 NULL constant everywhere. Include empty line after declarations. Make
184 variable symtab target const. Do not use strlen for end of string
190 * breakpoint.c (clear_command): Remove variable sal_name_len and its
191 initialization, remove it from the compare_filenames_for_search call.
192 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
193 name_len and its initialization, remove it from the
194 compare_filenames_for_search calls.
195 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
196 * symtab.c (compare_filenames_for_search): Remove the search_len
197 parameter, update the function comment, new variable search_len
198 initialized from SEARCH_NAME.
199 (iterate_over_some_symtabs): Remove variable name_len and its
200 initialization, remove it from the compare_filenames_for_search calls.
201 * symtab.h (compare_filenames_for_search): Remove the search_len
206 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
207 (ALLDEPFILES): ... to there.
211 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
215 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
216 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
217 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
218 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
219 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
220 to gdb_target_obs for every target that uses rs6000-tdep.o.
221 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
222 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
223 or register_ppc_ravenscar_ops.
227 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
228 RAVENSCAR_SPARC_THREAD_H.
229 * sparc-ravenscar-thread.c: Rename all global entities
230 whose name is uses "ravenscar_sparc" as the prefix to use
231 "sparc_ravenscar" instead.
235 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
236 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
237 Adjust sparc-ravenscar-thread.h #include.
238 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
240 * Makefile.in: Replace ravenscar-sparc-thread with
241 sparc-ravenscar-thread throughout.
242 * configure.tgt: Likewise.
246 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
248 (ravenscar_ops): New gdbarch variable.
249 * gdbarch.h, gdbarch.c: Regenerate.
250 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
251 * ravenscar-thread.c (current_arch_ops): Delete.
252 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
254 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
255 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
256 (ravenscar_register_arch_ops): Delete.
257 * ravenscar-sparc-thread.h: New file.
258 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
259 (ravenscar_sparc_ops): Define value statically.
260 (_initialize_ravenscar_sparc): Delete.
261 (register_sparc_ravenscar_ops): New function.
262 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
263 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
264 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
265 ravenscar-sparc-thread.o.
266 (SFILES): Add ravenscar-thread.c.
267 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
268 (ALLDEPFILES): ravenscar-sparc-thread.c.
269 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
271 for all the targets that use sparc-tdep.o.
275 * ravenscar-thread.c (ravenscar_is_open): Delete.
276 (ravenscar_initialize): Move most of the code from here...
277 (ravenscar_inferior_created): ... to there. Invert logic.
278 (ravenscar_close): Delete.
279 (init_ravenscar_thread_ops): Remove setting of
280 ravenscar_ops.to_close.
284 * objfiles.c (init_entry_point_info): Move function from here...
285 * symfile.c (init_entry_point_info): ... to there. Make static.
286 * objfiles.h (objfiles.h): Delete declaration.
290 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
291 Remove call to init_entry_point_info. Add OBJFILE's
292 section_offsets and num_sections initialization. Add note
293 about entry info in the function documentation.
294 (syms_from_objfile): New function.
295 * coffread.c (coff_symfile_init): Remove call to
296 init_entry_point_info.
297 * machoread.c (macho_symfile_init): Likewise.
298 * xcoffread.c(xcoff_symfile_init): Likewise.
302 * remote-notif.c (_initialize_notif): Add new commands
303 'set debug notification' and 'show debug notification'.
304 * NEWS: Mention these new commands.
308 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
309 (SFILES): Add "remote-notif.c".
310 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
311 * remote-notif.c: New. Factored out from remote.c.
312 * remote-notif.h: New.
313 * remote.c: Include "remote-notif.h".
314 (stop_reply_xmalloc, do_stop_reply_xfree):
315 (remote_parse_stop_reply, remote_get_pending_stop_replies):
316 (remote_async_get_pending_events_handler): Remove declarations.
317 (remote_parse_stop_reply): Declare.
318 (pending_stop_reply): Remove.
319 (remote_async_get_pending_events_token): Move to
321 (remote_close): Replace 'delete_async_event_handler' with
322 remote_notif_unregister_async_event_handler.
323 Don't call discard_pending_stop_replies.
324 (remote_start_remote): Replace code with remote_notif_parse
325 and remote_notif_get_pending_replies.
326 (remote_open_1): Replace 'create_async_event_handler' with
327 remote_notif_register_async_event_handler.
328 (extended_remote_attach_1): Call remote_notif_parse and
329 notif_stop_reply_push.
330 (struct stop_reply) <next>: Remove.
333 (stop_reply_queue): Change its type.
334 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
335 (remote_notif_remove_all): New.
336 (discard_pending_stop_replies): Update.
337 (remote_notif_stop_ack, stop_reply_dtr): New.
338 (remote_notif_stop_alloc_event): New.
339 (notif_client_stop): New variable.
340 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
341 (queued_stop_reply, peek_stop_reply): Adjust.
342 (remote_get_pending_stop_replies): Rename to
343 remote_notif_get_pending_events.
344 (handle_notification): Move to remote-notif.c.
345 (remote_async_get_pending_events_handler): Likewise.
346 (remote_wait_as): Adjust to call remote_notif_parse.
347 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
348 Return minus_one_ptid early if gets a notification.
349 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
350 (_initialize_remote): Call QUEUE_alloc. Update caller.
351 (remote_resume): Call 'remote_notif_process' in all-stop mode.
352 * remote.h: Include "remote-notif.h".
353 (remote_notif_get_pending_replies): Declare.
357 * remote.c (discard_pending_stop_replies): Update declaration.
358 (remote_detach_1, extended_remote_mourn_1): Likewise.
359 (discard_pending_stop_replies): Change parameter from PID to
361 (remote_close): Update caller.
362 (_initialize_remote): Attach discard_pending_stop_replies to
363 inferior_exit observer.
367 * remote.c (getpkt_or_notif_sane): Add one more argument in
369 (getpkt_or_notif_sane_1): Add one more argument.
370 (getpkt_sane): Update caller.
371 (getpkt_or_notif_sane): Likewise. Update call
372 togetpkt_or_notif_sane_1.
373 (remote_wait_ns): Update caller.
378 * common/queue.h: New.
382 * breakpoint.c (print_one_breakpoint_location): Display the
383 state of 'installed' of each non-pending location of a tracepoint
385 (download_tracepoint_locations): Notify 'breakpoint-modified'
386 observer if any tracepoint location is downloaded.
387 * tracepoint.c (start_tracing): Likewise.
388 (merge_uploaded_tracepoints): Record all modified
389 tracepoints and notify 'breakpoint-modified' observer for them.
391 * NEWS: Mention the change for CLI and MI.
395 * breakpoint.c (download_tracepoint_locations): Iterate over
396 ALL_TRACEPOINTS first and then iterate over locations of
402 * solib-target.c (solib_target_current_sos): Remove 'const'
403 qualifier from type of library_document local variable to be
404 able to free it and avoid a memory leak.
405 Use cleanup chain to avoid leak even if exceptino is generated.
410 * symtab.c (lookup_symbol_aux): If constructor is found, consider
411 returning the type instead.
412 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
417 Partial fix for PR c++/14160:
418 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
419 * dwarf2read.c (dwarf2_is_constructor): New function.
420 (dwarf2_add_member_fn): Use it.
421 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
422 TYPE_FN_FIELD_CONSTRUCTOR.
423 * jv-typeprint.c (java_type_print_base): Use
424 TYPE_FN_FIELD_CONSTRUCTOR.
425 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
427 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
431 * c-exp.y (block, variable, name_not_typename, lex_one_token,
432 classify_name): Update.
433 * c-valprint.c (c_val_print): Update.
434 * f-exp.y (yylex): Update.
435 * go-exp.y (package_name_p, classify_packaged_name)
436 (classify_name): Update.
437 * jv-exp.y (push_variable): Update.
438 * m2-exp.y (variable): Update.
439 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
440 * p-exp.y (block, variable, yylex): Update.
441 * p-valprint.c (pascal_val_print): Update.
442 * parse.c (write_dollar_variable): Update.
443 * printcmd.c (address_info): Update.
444 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
445 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
446 (lookup_symbol): Change type of 'is_a_field_of_this'.
447 (check_field): Add 'is_a_field_of_this' argument.
448 * symtab.h (struct field_of_this_result): New.
449 (lookup_symbol, lookup_symbol_in_language): Update.
453 * symtab.c (check_field): Now static. Move from...
454 * valops.c (check_field): ... here. Remove.
455 * value.h (check_field): Don't declare.
459 * NEWS: Mention "info proc" and core files.
460 * corelow.c (core_info_proc): New function.
461 (init_core_ops): Set to_info_proc.
462 * gdbarch.c, gdbarch.h: Rebuild.
463 * gdbarch.sh (core_info_proc): New method.
464 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
465 * linux-tdep.c (linux_core_info_proc_mappings)
466 (linux_core_info_proc): New functions.
467 (linux_find_memory_region_ftype): New typedef.
468 (linux_find_memory_regions_full): New function, from
469 linux_find_memory_regions.
470 (struct linux_find_memory_regions_data): New.
471 (linux_find_memory_regions_thunk): New function.
472 (linux_find_memory_regions): Rewrite.
473 (struct linux_make_mappings_data): New.
474 (linux_make_mappings_callback)
475 (linux_make_mappings_corefile_notes): New functions.
476 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
477 (linux_init_abi): Call set_gdbarch_core_info_proc.
478 * target.c (target_info_proc): Return 'int'.
479 * target.h (target_info_proc): Update.
483 * windows-nat.c (windows_xfer_shared_libraries): Avoid
484 memory leak when OFFSET >= LEN_AVAIL.
488 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
492 * acinclude.m4 (CY_AC_C_WORKS): Remove.
496 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
497 local variable and zero terminate it to avoid possible problems
502 * coff-pe-read.c: Include coff/internal.h.
503 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
504 Null terminate buffer explicitly instead of memset the whole
509 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
510 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
511 for already defined macros.
515 * coff-pe-read.h (pe_text_section_offset): Declare new function.
516 * coff-pe-read.c (debug_coff_pe_read): New static variable.
517 (struct read_pe_section_data): Add section_name field.
518 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
519 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
520 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
521 (get_pe_section_index): New function.
522 (struct pe_sections_info): New type.
523 (get_section_vmas): Use new struct pe_sections_info.
524 (add_pe_exported_sym): Handle unnamed exported function.
525 (add_pe_forwarded_sym): New function.
526 (read_pe_truncate_name): Truncate at last dot.
527 (pe_as16): New function.
528 (read_pe_exported_syms): Use ordinal of function to
529 retrieve correct RVA address of function and handle
531 (pe_text_section_offset): New function.
532 (show_debug_coff_pe_read): New function.
533 (_initialize_coff_pe_read): New function adding
534 'set/show debug coff_pe_read' commands.
536 * windows-tdep.c (windows_xfer_shared_library): Use
537 pe_text_section_offset function instead of possibly wrong
538 0x1000 constant for .text sextion offset.
542 * gdbarch.sh (do_read): Set IFS to blank.
546 * NEWS: Mention the -catch-load/-catch-unload MI commands.
550 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
551 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
552 * breakpoint.c (add_solib_catchpoint): New function that
553 can be used by both CLI and MI, factored out from
554 catch_load_or_unload.
555 (catch_load_or_unload): Strip it down and make it use the
556 new add_solib_catchpoint.
557 * breakpoint.h (add_solib_catchpoint): Declare it.
558 * mi/mi-cmd-break.h: New file.
559 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
560 (setup_breakpoint_reporting): New function used for both
561 catchpoints and breakpoints.
562 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
563 * mi/mi-cmd-catch.c: New file.
564 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
566 * mi/mi-cmds.h: Declare the handlers for -catch-load and
571 * dbxread.c (read_dbx_symtab): Update.
572 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
573 (read_ofile_symtab): Add 'objfile' argument.
574 * dwarf2read.c (process_psymtab_comp_unit_reader)
575 (build_type_psymtabs_reader): Update.
576 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
577 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
579 (parse_procedure, parse_partial_symbols): Update.
580 (psymtab_to_symtab_1): Add 'objfile' argument.
581 * psympriv.h (struct partial_symtab) <objfile>: Remove.
582 <read_symtab>: Add 'objfile' argument.
583 (sort_pst_symbols, discard_psymtab): Update.
584 * psymtab.c (partial_map_expand_apply): Update.
585 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
586 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
587 (find_pc_sect_psymbol): Add 'objfile' argument.
588 (lookup_symbol_aux_psymtabs): Update.
589 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
590 Add 'objfile' argument.
591 (find_last_source_symtab_from_partial, dump_psymtab)
592 (dump_psymtabs_for_objfile, read_symtabs_for_function)
593 (expand_partial_symbol_tables, read_psymtabs_with_filename)
594 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
595 (expand_symtabs_matching_via_partial): Update.
596 (sort_pst_symbols): Add 'objfile' argument.
597 (allocate_psymtab): Update.
598 (discard_psymtab): Add 'objfile' argument.
599 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
600 * stabsread.h (end_psymtab): Update.
601 * xcoffread.c (this_symtab_objfile): New global.
602 (process_linenos, enter_line_range, xcoff_next_symbol_text):
604 (read_xcoff_symtab): Add 'objfile' argument.
605 (read_symbol, read_symbol_lineno): Update.
606 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
607 (xcoff_end_psymtab): Add 'objfile' argument.
608 (scan_xcoff_symtab): Update.
612 Add support for Python 3.
613 * NEWS: Mention Python 3 support.
614 * varobj.c (value_get_print_value): Use
615 python_string_to_target_string.
616 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
618 * python/py-breakpoint.c: Ditto.
619 * python/py-cmd.c: Ditto.
620 * python/py-event.c: Ditto.
621 * python/py-event.h: Ditto.
622 * python/py-evtregistry.c: Ditto.
623 * python/py-finishbreakpoint.c: Ditto.
624 * python/py-frame.c: Ditto.
625 * python/py-function.c: Ditto.
626 * python/py-infthread.c: Ditto.
627 * python/py-lazy-string.c: Ditto.
628 * python/py-progspace.c: Ditto.
629 * /python/py-symbol.c: Ditto.
630 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
631 initialization for Python 3.
632 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
634 (infpy_read_memory): Return memoryview object if Python 3.
635 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
636 (infpy_search_memory): Ditto.
637 (get_buffer): New function for Python 3.
638 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
640 (objfpy_dealloc): Use Py_TYPE to call tp_free.
641 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
643 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
645 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
646 instead of PyString methods if Python 3.
647 (print_children): Skip push_dummy_python_frame call if Python 3.
648 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
650 (salpy_dealloc): Use Py_TYPE to call tp_free.
651 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
653 (field_dealloc): Use Py_TYPE to call tp_free.
654 (typy_dealloc): Ditto.
655 (type_object_as_number): Adjust struct initializations for
656 differences in layout for Python 2 vs. Python 3.
657 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
658 string case for Python 3.
659 (unicode_to_encoded_python_string): Shorten code (no functional
661 (python_string_to_target_python_string): Comment that in Python 3
662 returned value is a Python "bytes" type.
663 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
664 (gdb_py_object_from_longest): Omit non-long integer case in Python
666 (gdb_py_object_from_ulongest): Ditto.
667 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
669 (valpy_dealloc): Use Py_TYPE to call tp_free.
670 (valpy_int): Omit function if Python 3.
671 (convert_value_from_python): Use "%S" format (Python object as a
673 (value_object_as_number): Adjust struct initializations for
674 differences in layout for Python 2 vs. Python 3.
675 * python/python-config.py: Adjust syntax for Python 3
677 Include "sys.abiflags" string as part of python library name, if
678 that attribute exists (Python 3).
679 * python/python-internal.h (IS_PY3): Define if Python 3.
680 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
681 placeholder value if Python 3.
682 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
683 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
684 analogous Python 3 API function if Python 3.
685 (PyVarObject_HEAD_INIT): Define if not already defined.
687 * python/python.c (eval_python_command): Omit Py_FlushLine call if
689 Check return values of all Python API calls for error.
690 Supply dummy "python" and "python-interactive" commands if Python
691 initialization failed.
692 (_initialize_python): Convert argc to wchar_t** if Python 3.
693 Add module initialization for Python 3.
694 (finish_python_initialization): Pass wchar_t * argument to
695 PySys_SetPath if Python 3.
696 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
697 (_GdbFile): New class for common output file behavior.
698 (GdbOutFile): Subclass from _GdbFile.
699 (GdbOutputErrorFile): Ditto.
700 (auto_load_packages): Adjust syntax for Python 3 compatibility.
701 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
702 * python/lib/gdb/prompt.py: Use sorted() function rather than
704 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
705 Adjust syntax for Python 3 compatibility.
706 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
707 rather than sort() method.
708 Adjust syntax for Python 3 compatibility.
709 * python/lib/gdb/command/type_printers.py: Ditto.
710 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
711 value is a memoryview object if Python 3.
715 * coffread.c (coff_objfile_data_key): New global.
716 (coff_symfile_init): Use set_objfile_data.
717 (coff_symfile_read): Use objfile_data.
718 (coff_symfile_finish): Don't free deprecated_sym_private.
719 (coff_free_info): New function.
720 (_initialize_coffread): Initialize coff_objfile_data_key.
721 * mdebugread.c (pending_list): Update comment.
722 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
723 * symfile.c (reread_symbols): Don't mention
724 deprecated_sym_private.
725 * xcoffread.c (xcoff_objfile_data_key): New global.
726 (XCOFF_DATA): New macro.
727 (process_linenos, enter_line_range, xcoff_next_symbol_text)
728 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
730 (xcoff_new_init) Use set_objfile_data.
731 (xcoff_symfile_finish): Don't free deprecated_sym_private.
732 (init_stringtab, swap_sym, scan_xcoff_symtab)
733 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
734 (xcoff_free_info): New function.
735 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
739 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
743 * coffread.c (coff_symfile_init): Use set_objfile_data.
744 (coff_symfile_read): Use DBX_SYMFILE_INFO.
745 * dbxread.c (dbx_objfile_data_key): New global.
746 (dbx_symfile_init): Use set_objfile_data.
747 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
748 (dbx_free_symfile_info): New function.
749 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
751 (stabsect_build_psymtabs): Use set_objfile_data.
752 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
753 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
755 (free_elfinfo): Use DBX_SYMFILE_INFO.
756 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
757 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
758 * gdb-stabs.h (dbx_objfile_data_key): Declare.
759 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
760 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
761 * somread.c (som_symfile_finish): Don't free
762 deprecated_sym_stab_info.
766 * gdbarch.sh (software_single_step): Remove trailing space in
767 comment (gdbarch.h is already correct).
771 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
775 * dsrec.c (report_transfer_performance): Don't declare.
776 (load_srec): Use gettimeofday, print_transfer_performance.
777 * symfile.c (report_transfer_performance): Remove.
782 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
784 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
785 differently from LWP IDs.
789 * configure.ac (detect type of /proc): Remove Unixware handling.
790 * configure: Regenerate.
791 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
792 (ioctl_table) [PCRESET]: Remove entry.
793 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
794 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
795 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
796 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
797 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
798 Unixware in comments throughout.
799 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
800 and remove mention of Unixware.
804 * dwarf2read.c (dwarf2_cu): Enhance comment.
805 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
807 (dwarf2_record_block_ranges): Ditto.
809 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
811 * symtab.c (find_pc_sect_symtab): Add comment.
815 * defs.h: Don't check for definition of LONGEST.
816 (min, max): Remove duplicates.
820 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
821 (dwarf2_fetch_die_loc_cu_off): Rename from
822 dwarf2_fetch_die_location_block. Rewrite to use
823 dwarf2_fetch_die_loc_sect_off.
824 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
825 (dwarf2_fetch_die_loc_cu_off): Rename.
826 * dwarf2loc.c (indirect_pieced_value): Use
827 dwarf2_fetch_die_loc_sect_off.
828 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
830 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
831 * dwarf2expr.c (add_piece): Update.
832 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
836 * buildsym.c (struct pending_block): Move from buildsym.h.
837 (pending_blocks): Likewise; now static.
838 (pending_block_obstack): New global.
839 (free_pending_blocks): Free blocks.
840 (record_pending_block): Use pending_block_obstack.
841 * buildsym.h (struct pending_block): Move definition to
843 (pending_blocks): Don't declare.
847 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
848 dead SCO code, and adjust function description comment.
852 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
853 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
855 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
856 * dwarf2read.c (extract_cu_value): Remove the function.
857 (create_cus_from_index_list): Make the return type void, inline the
858 extract_cu_value caller, include new gdb_static_assert.
859 (create_cus_from_index): Make the return type void, update the function
860 comment, update the create_cus_from_index_list caller.
861 (create_signatured_type_table_from_index): Make the return type void,
862 inline the extract_cu_value caller, include new gdb_static_assert.
863 (dwarf2_read_index): Update the create_cus_from_index and
864 create_signatured_type_table_from_index caller.
865 * printcmd.c (ui_printf): Remove conditionalizations for
867 * config.in: Regenerate.
868 * configure: Regenerate.
872 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
873 Update the comment for checked_producer.
874 (check_producer): New forward declaration.
875 (producer_is_gcc_lt_4_3): New function.
876 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
877 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
881 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
883 * c-exp.y (typebase): Add completion productions.
884 * completer.c (expression_completer): Handle tag completion.
885 * expression.h (parse_expression_for_completion): Add argument.
886 * f-lang.c (f_make_symbol_completion_list): Add 'code'
888 * language.h (struct language_defn)
889 <la_make_symbol_completion_list>: Add 'code' argument.
890 * parse.c (expout_tag_completion_type, expout_completion_name):
892 (mark_struct_expression): Add assertion.
893 (mark_completion_tag): New function.
894 (parse_exp_in_context): Initialize new globals.
895 (parse_expression_for_completion): Add 'code' argument. Handle
897 * parser-defs.h (mark_completion_tag): Declare.
898 * symtab.c (default_make_symbol_completion_list_break_on): Add
899 'code' argument. Update.
900 (default_make_symbol_completion_list): Add 'code' argument.
901 (make_symbol_completion_list): Update.
902 (make_symbol_completion_type): New function.
903 * symtab.h (default_make_symbol_completion_list_break_on)
904 (default_make_symbol_completion_list): Update.
905 (make_symbol_completion_type): Declare.
909 * expression.h (parse_expression_for_completion): Rename
910 from parse_field_expression.
911 (parse_completion): Rename from in_parse_field.
912 * c-exp.y (lex_one_token): Update.
913 * completer.c (expression_completer): Update.
914 * go-exp.y (lex_one_token): Update.
915 * p-exp.y (yylex): Update.
916 * parse.c (parse_completion): Rename from in_parse_field.
917 (parse_exp_in_context): Update.
918 (parse_expression_for_completion): Rename from
919 parse_field_expression. Update.
923 * typeprint.c (_initialize_typeprint): Set completer
924 for "whatis" and "ptype".
928 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
929 "sim/common/cgen-fpu.h". Remove invalid entries
930 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
931 which actually have an FSF copyright header.
935 * osf-share/AT386/cma_thread_io.h: Delete.
936 * osf-share/HP800/cma_thread_io.h: Delete.
937 * osf-share/README: Delete.
938 * osf-share/RIOS/cma_thread_io.h: Delete.
939 * osf-share/cma_attr.h: Delete.
940 * osf-share/cma_deb_core.h: Delete.
941 * osf-share/cma_debug_client.h: Delete.
942 * osf-share/cma_errors.h: Delete.
943 * osf-share/cma_handle.h: Delete.
944 * osf-share/cma_init.h: Delete.
945 * osf-share/cma_list.h: Delete.
946 * osf-share/cma_mutex.h: Delete.
947 * osf-share/cma_sched.h: Delete.
948 * osf-share/cma_semaphore_defs.h: Delete.
949 * osf-share/cma_sequence.h: Delete.
950 * osf-share/cma_stack.h: Delete.
951 * osf-share/cma_stack_int.h: Delete.
952 * osf-share/cma_tcb_defs.h: Delete.
953 * osf-share/cma_util.h: Delete.
954 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
956 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
957 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
958 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
963 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
968 * mi/mi-cmd-var.c (varobj_update_one): Take value of
969 attribute "dynamic" and "displayhint" from printed child,
970 not the root variable.
974 * aix-thread.c (getthrds): Fix type of 4th parameter.
975 (get_signaled_thread): Change type of variable ktid to tid_t.
979 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
980 value of get_frame_block.
984 Avoid memory leaks on struct cmd_list_element.doc field.
985 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
986 if flags contains DOC_ALLOCATED.
987 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
989 (delete_cmd): Handle DOC_ALLOCATED flag.
990 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
991 in flags filed of struct cmd_list_element.
992 (struct cmd_list_element): Document new flag item.
996 * symmisc.c: Whitespace fixes.
1000 * i386-tdep.c (i386_skip_prologue): Using symbol table
1001 to find the end of prologue for clang compiled binaries.
1002 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1003 to find the end of prologue for clang compiled binaries.
1007 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
1008 (dw2_find_symbol_file): Delete unused local file_data.
1012 * ada-exp.y (write_object_renaming, write_var_or_type)
1013 (write_ambiguous_var, write_var_from_sym): Make blocks const.
1014 * ada-lang.c (replace_operator_with_call)
1015 (find_old_style_renaming_symbol): Make blocks const.
1016 * ada-lang.h (ada_find_renaming_symbol): Update.
1017 (struct ada_symbol_info) <block>: Now const.
1018 * breakpoint.c (watch_command_1): Update.
1019 * breakpoint.h (struct watchpoint) <exp_valid_block,
1020 cond_exp_valid_block>: Now const.
1021 * c-exp.y (classify_inner_name, classify_name): Make block
1023 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
1025 * expression.h (innermost_block, parse_exp_1): Update.
1026 (union exp_element) <block>: Now const.
1027 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
1028 (lookup_struct): Make block argument const.
1029 * gdbtypes.h (lookup_template_type): Update.
1030 * go-exp.y (classify_name, classify_packaged_name)
1031 (package_name_p): Make block argument const.
1032 * objc-lang.c (lookup_struct_typedef): Make block argument const.
1033 * objc-lang.h (lookup_struct_typedef): Update.
1034 * parse.c (parse_exp_in_context, parse_exp_1)
1035 (write_exp_elt_block): Make block arguments const.
1036 (expression_context_block, innermost_block): Now const.
1037 * parser-defs.h (write_exp_elt_block): Update.
1038 (expression_context_block, innermost_block, block_found): Now
1040 * printcmd.c (struct display) <block>: Now const.
1041 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1042 * valops.c (address_of_variable): Make block argument const.
1043 * value.h (value_of_variable): Update.
1044 * varobj.c (struct varobj_root) <valid_block>: Now const.
1048 * breakpoint.c (print_one_breakpoint_location): Indent code.
1052 * breakpoint.c (print_one_breakpoint_location): Combine two
1053 blocks handling 'hit count' together.
1057 * infrun.c (error_is_running, ensure_not_running): Move them
1059 * infcmd.c (error_is_running, ensure_not_running): ... here.
1061 * inferior.h: Remove declarations of error_is_running and
1066 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1071 * infrun.c: Make the declaration of 'init_infwait_state'
1073 (init_infwait_state): Make it 'static'.
1077 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1078 return value to void to avoid compiler warning.
1082 * opencl-lang.c (opencl_print_type): New function.
1083 (opencl_language_arch_info): Install it.
1087 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1089 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1090 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1094 * ada-lang.c (ada_is_interface_tag): New function.
1095 (ada_is_ignored_field): Add interface tags to the list
1100 * ada-lang.h (ada_tag_value_at_base_address): New function
1102 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1104 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1105 relocate the class-wide value if need be.
1106 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1107 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1108 before dereferencing it.
1109 * ada-valprint.c (ada_val_print_1): Relocate to base address
1110 before displaying the content of an interface-wide ref.
1114 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1123 * eval.c (evaluate_subexp_standard): Get the correct pointer
1124 type for TYPE_CODE_MEMBERPTR.
1128 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1129 since now it is being done by binutils' powerpc_init_dialect().
1134 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1135 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1137 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1138 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1139 (gdb_bfd_openr_next_archived_file): Use it.
1143 * configure.ac: Check for linux/perf_event.h.
1144 * config.in: Regenerated.
1145 * configure: Regenerated.
1149 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1150 abbreviate 'delete tracepoints' to 'delete tr'.
1151 * corefile.c (_initialize_core): Call add_alias_cmd to
1152 abbreviate 'set gnutarget' to 'set g'.
1153 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1154 'show convenience' to 'show conv'.
1158 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1159 call to sparc_supply_fpregset.
1160 (fill_fpregset): Fix first parameter in call to
1161 sparc_collect_fpregset.
1167 * objfiles.c (init_entry_point_info): Call
1168 gdbarch_convert_from_func_ptr_addr and
1169 gdbarch_addr_bits_remove here ...
1170 (entry_point_address_query): ... instead of here.
1171 * solib-svr4.c (exec_entry_point): Call
1172 gdbarch_addr_bits_remove.
1173 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1179 * eval.c (evaluate_subexp_standard): Add handling of
1180 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1181 result of ptype for calling a TYPE_CODE_METHODPTR.
1185 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1193 * NEWS: Mention mini debuginfo feature.
1194 * minidebug.c: New file.
1195 * configure.ac: Check for lzma.
1196 * configure, config.in: Rebuild.
1197 * Makefile.in (LIBLZMA): New variable.
1198 (CLIBS): Include LIBLZMA.
1199 (SFILES): Mention minidebug.c.
1200 (COMMON_OBS): Mention minidebug.o.
1201 * symfile.c (read_symbols): New function.
1202 (syms_from_objfile, reread_symbols): Call it.
1203 * symfile.h (find_separate_debug_file_in_section): Declare.
1207 * exec.c (exec_file_attach): Move cleanup after verifying that
1208 memory has in fact been allocated.
1212 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1213 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1215 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1220 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1221 size parameter passed to readlink by one byte.
1222 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1223 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1224 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1225 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1230 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1231 extraneous parentheses.
1235 * remote.c (remote_start_remote): Typo fix.
1239 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1240 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1241 sparc32_sol2_fpregset): Declare new globals.
1242 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1243 'fpregset' argument.
1244 * sparc64-tdep.h (sparc64_supply_fpregset,
1245 sparc64_collect_fpregset): Likewise.
1246 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1248 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1249 (sparc_fpregset): Declare new global.
1250 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1251 'fpregset' argument.
1252 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1254 (fill_fpregset): Likewise.
1255 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1256 sparc32_bsd_fpregset.
1257 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1258 sparc32_bsd_fpregset down into handler.
1259 (sparc32_linux_collect_core_fpregset): Likewise.
1260 * sparc-nat.c (sparc_fpregset): Define.
1261 (sparc_supply_fpregset): Add 'fpregset' argument.
1262 (sparc_collect_fpregset): Likewise.
1263 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1264 into fpregset handler.
1265 (sparc_store_inferior_registers): Likewise.
1266 (_initialize_sparc_nat): Set sparc_fpregset to
1267 sparc32_sunos4_fpregset if NULL.
1268 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1270 (fill_fpregset): Likewise.
1271 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1272 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1273 use it to compute offsets.
1274 (sparc32_collect_fpregset): Likewise.
1275 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1276 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1278 (fill_fpregset): Likewise.
1279 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1281 (sparc64_linux_collect_core_fpregset): Likewise.
1282 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1283 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1284 use it to compute offsets.
1285 (sparc64_collect_fpregset): Likewise.
1286 (sparc64_bsd_fpregset): Define.
1287 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1288 sparc64_bsd_fpregset down into handler.
1289 (sparc64fbsd_collect_fpregset): Likewise.
1290 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1291 and pass sparc{32,64}_bsd_fpregset down into handler.
1292 (sparc64nbsd_collect_fpregset): Likewise.
1293 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1294 sparc64_bsd_fpregset down into handler.
1295 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1296 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1297 to sparc32_bsd_fpregset.
1298 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1299 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1300 (sparc32nbsd_supply_fpregset): Likewise.
1304 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1306 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1308 * c-typeprint.c (c_type_print_base): Update.
1313 * gdbarch.sh (smash_text_address): Remove.
1314 * gdbarch.c, gdbarch.h: Regenerate.
1315 * arm-tdep.c (arm_smash_text_address): Remove.
1316 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1317 * hppa-tdep.c (hppa_smash_text_address): Remove.
1318 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1319 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1321 * coffread.c (coff_symtab_read): Caller update.
1322 * dbxread.c (process_one_symbol): Likewise.
1323 * elfread.c (record_minimal_symbol): Likewise.
1324 * somread.c (som_symtab_read): Likewise.
1328 ARI fixes: sprintf rule.
1329 Replace sprintf function calls for char arrays by
1330 calls to xsnprintf calls.
1331 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1332 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1333 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1334 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1335 * breakpoint.c (condition_completer): Ditto.
1336 (create_tracepoint_from_upload): Ditto.
1337 * dwarf2read.c (file_full_name): Ditto.
1338 * gcore.c (gcore_command): Ditto.
1339 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1340 * go32-nat.c (go32_sysinfo): Ditto.
1341 * interps.c (interp_set): Ditto.
1342 * m32c-tdep.c (make_types): Ditto.
1343 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1344 * remote-m32r-sdi.c (m32r_open): Ditto.
1345 * sol-thread.c (td_err_string): Ditto.
1346 (td_state_string, solaris_pid_to_str): Ditto.
1347 * symtab.c (gdb_mangle_name): Ditto.
1348 * cli/cli-script.c (execute_control_command): Ditto.
1349 (define_command, document_command): Ditto.
1350 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1351 * tui/tui-stack.c (tui_make_status_line): Ditto.
1352 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1356 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1357 it when looking at ptr->func.
1358 * command.h (complete_on_cmdlist): Add a fourth arg.
1359 * completer.c (complete_line_internal): Add local ignore_help_classes,
1360 and set it to 1 when reason is not handle_help. Pass this down to
1361 lookup_cmd_1 and complete_on_cmdlist.
1365 * completer.c (count_struct_fields): Remove.
1366 (expression_completer): Don't call count_struct_fields.
1370 * annotate.c (breakpoints_changed): Rename to ...
1371 (annotate_breakpoints_changed): ... this.
1372 (annotate_stopped, breakpoint_changed): Adjust caller.
1373 * annotate.h (breakpoints_changed): Rename to ...
1374 (annotate_breakpoints_changed): ... this.
1375 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1376 (do_map_commands_command, init_raw_breakpoint, clear_command)
1377 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1381 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1382 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1384 (get_cores_used_by_process): Update comment.
1388 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1392 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1393 to deprecated_context_hook.
1397 * infrun.c (infwait_state): Add static.
1402 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1403 parameter and pass it to lookup_symbol_file.
1404 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1405 to search base classes.
1406 (cp_lookup_symbol_namespace): Likewise.
1407 (lookup_namespace_scope): Likewise.
1408 (lookup_symbol_file): Add SEARCH parameter.
1409 If SEARCH is non-zero and no symbol is found, lookup the class
1410 and call cp_lookup_nested_symbol.
1411 (find_symbol_in_baseclass): New function.
1412 (cp_lookup_nested_symbol): Do not let
1413 cp_lookup_symbol_in_namespace search through base classes.
1414 Do that later when there is no global symbol match.
1418 * main.c (gdb_datadir_provided): New static global.
1419 (get_init_files): If --data-directory is provided,
1420 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1425 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1426 * gdb_stat.h: Delete. Moved to common directory.
1427 * common/gdb_stat.h: New file.
1428 * gdb_wait.h: Delete. Moved to common directory.
1429 * common/gdb_wait.h: New file.
1430 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1432 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1434 (stat.h rule): Adapt to new gdb_stat.h location.
1435 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1436 <sys/stat.h> header.
1437 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1438 <sys/wait.h> header.
1442 * configure.ac (AC_HEADER_STAT): Remove.
1443 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1444 and corresponding code.
1445 * configure: Regenerate.
1446 * config.in: Regenerate.
1450 ARI xasprintf rule fixes.
1451 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1452 instead of xasprintf.
1453 (open_and_init_dwp_file): Ditto.
1457 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1462 * configure, config.in: Rebuild.
1463 * configure.ac: Don't check for ctype.h, time.h.
1464 * expprint.c: Don't use HAVE_CTYPE_H.
1468 * gdbarch.h, gdbarch.c: Rebuild.
1469 * gdbarch.sh (set_target_gdbarch): Rename from
1470 deprecated_target_gdbarch_select_hack.
1471 * arch-utils.c (gdbarch_update_p): Update.
1472 (set_gdbarch_from_file): Update.
1476 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1477 as responsible of contrib/ari directory.
1482 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1484 (arm_m_exception_cache, arm_m_exception_this_id)
1485 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1486 (arm_m_exception_unwind): New.
1487 (arm_gdbarch_init): Register arm_m_exception_unwind.
1491 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1492 parameter COUNT, for pattern filling of memory regions.
1497 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1498 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1499 to print_source_lines ().
1500 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1502 * source.c (print_source_lines_base): Prefix source line with
1503 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1507 * symtab.h (print_source_lines_flags): New enum.
1508 * source.c (print_source_lines_base): Change noerror to flags.
1509 (print_source_lines): Change noerror to flags.
1513 ARI fixes: Avoid sprintf function use rule.
1514 * charset.c (convert_between_encodings): Use xsnprintf.
1515 * cli-out.c (cli_field_int): Likewise.
1516 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1517 * expprint.c (op_name_standard): Likewise.
1518 * frv-tdep.c (set_variant_num_gprs): Likewise.
1519 (set_variant_num_fprs): Likewise.
1520 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1521 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1522 (nto_init_solib_absolute_prefix): Likewise.
1523 * source.c (init_source_path): Likewise.
1524 (print_source_lines_base): Likewise.
1525 * valprint.c (print_wchar): Likewise.
1526 * mi/mi-out.c (mi_field_int): Likewise.
1527 windows-nat.c (windows_pid_to_exec_file): Likewise.
1528 (windows_create_inferior): Likewise.
1529 (_initialize_check_for_gdb_ini): Likewise.
1533 * frame.h (deprecated_frame_register_read): Renames
1534 frame_register_read.
1535 * frame.c (deprecated_frame_register_read): Renames
1536 frame_register_read. Update all callers.
1537 * i386-tdep.c: Update all callers of frame_register_read.
1538 * infcmd.c: Likewise.
1540 * mips-tdep.c: Likewise.
1541 * mt-tdep.c: Likewise.
1542 * sh64-tdep.c: Likewise.
1546 * frame.h (frame_register_read): Remove FIXME comment.
1547 * frame.c (frame_register_read): Add suggestion explaining
1548 which function to use in place of this one.
1552 * python/python.c (start_type_printers): Initialize 'result_obj'.
1557 * data-directory/Makefile.in (PYTHON_FILES): Add
1559 * python/lib/gdb/command/type_printers.py: New file.
1560 * python/lib/gdb/command/types.py (TypePrinter): New class.
1561 (_get_some_type_recognizers, get_type_recognizers,
1562 apply_type_recognizers, register_type_printer): New
1564 * python/py-objfile.c (objfile_object) <type_printers>: New
1566 (objfpy_dealloc): Decref new field.
1567 (objfpy_new): Set new field.
1568 (objfpy_get_type_printers, objfpy_set_type_printers): New
1570 (objfile_to_objfile_object): Set new field.
1571 (objfile_getset): Add "type_printers".
1572 * python/py-progspace.c (pspace_object) <type_printers>: New
1574 (pspy_dealloc): Decref new field.
1575 (pspy_new): Set new field.
1576 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1577 (pspace_to_pspace_object): Set new field.
1578 (pspace_getset): Add "type_printers".
1579 * python/python.c (start_type_printers, apply_type_printers,
1580 free_type_printers): New functions.
1581 (_initialize_python): Set gdb.type_printers.
1582 * python/python.h (start_type_printers, apply_type_printers,
1583 free_type_printers): Declare.
1584 * typeprint.c (type_print_raw_options, default_ptype_flags):
1585 Update for new fields.
1586 (do_free_global_table, create_global_typedef_table,
1587 find_global_typedef): New functions.
1588 (find_typedef_in_hash): Use find_global_typedef.
1589 (whatis_exp): Use create_global_typedef_table. Change cleanup
1591 * typeprint.h (struct type_print_options) <global_typedefs,
1592 global_printers>: New fields.
1596 * c-typeprint.c (find_typedef_for_canonicalize,
1597 print_name_maybe_canonical): New functions.
1598 (c_print_type): Look up type name.
1599 (cp_type_print_derivation_info): Add flags argument. Use
1600 print_name_maybe_canonical.
1601 (cp_type_print_method_args): Add wrapping.
1602 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1603 (c_type_print_template_args): New function.
1604 (c_type_print_base): Change wrapping. Use
1605 print_name_maybe_canonical.
1606 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1608 * gdbtypes.c (types_equal): No longer static.
1609 * gdbtypes.h (types_equal): Declare.
1610 * typeprint.c (type_print_raw_options, default_ptype_flags):
1612 (struct typedef_hash_table): New.
1613 (hash_typedef_field, eq_typedef_field,
1614 recursively_update_typedef_hash, add_template_parameters,
1615 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1616 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1617 copy_typedef_hash, find_typedef_in_hash): New functions.
1618 * typeprint.h (struct type_print_options) <local_typedefs>:
1620 (recursively_update_typedef_hash, add_template_parameters,
1621 create_typedef_hash, free_typedef_hash,
1622 make_cleanup_free_typedef_hash, copy_typedef_hash,
1623 find_typedef_in_hash): Declare.
1627 * cp-support.c (inspect_type,
1628 replace_typedefs_qualified_name, replace_typedefs): Add
1629 finder, data arguments. Call as needed.
1630 (cp_canonicalize_string_full): New function.
1631 (cp_canonicalize_string_no_typedefs): Rewrite.
1632 * cp-support.h (canonicalization_ftype): New typedef.
1633 (cp_canonicalize_string_full): Declare.
1638 * c-typeprint.c (c_type_print_base): Handle print_method and
1639 print_typedefs flags.
1640 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1641 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1643 * typeprint.c (type_print_raw_options, default_ptype_flags):
1644 Update for new field.s
1645 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1646 (setprinttypelist, showprinttypelist, print_methods,
1647 print_typedefs): New globals.
1648 (set_print_type, show_print_type, set_print_type_methods,
1649 show_print_type_methods, set_print_type_typedefs,
1650 show_print_type_typedefs): New functions.
1651 (_initialize_typeprint): Update documentation. Add "print
1652 type methods" and "print type typedefs" parameters.
1653 * typeprint.h (struct type_print_options) <print_methods,
1654 print_typedefs>: New fields.
1658 * c-typeprint.c (cp_type_print_method_args): Add flags
1659 argument. Call c_print_type, not type_print.
1660 (c_type_print_base): Call c_print_type, not type_print.
1665 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1666 to type-printing functions.
1667 * ada-lang.h (ada_print_type): Add argument.
1668 * ada-typeprint.c (print_array_type, print_variant_clauses,
1669 print_variant_part, print_selected_record_field_types,
1670 print_record_field_types, print_unchecked_union_type,
1671 print_func_type, ada_print_type): Add flags argument.
1672 (ada_print_typedef): Update.
1673 * c-exp.y (OPERATOR conversion_type_id): Update.
1674 * c-lang.h (c_print_type, c_type_print_base): Update.
1675 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1676 c_type_print_modifier, c_type_print_args,
1677 c_type_print_varspec_suffix, c_type_print_base): Add flags
1679 * cp-valprint.c (cp_print_class_member): Update.
1680 * dwarf2read.c (dwarf2_compute_name): Update.
1681 * f-lang.h (f_print_type): Add argument.
1682 * f-typeprint.c (f_print_type): Add flags argument.
1683 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1684 * go-lang.h (go_print_type): Add argument.
1685 * go-typeprint.c (go_print_type): Add flags argument.
1686 * jv-lang.h (java_print_type): Add argument.
1687 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1689 * language.c (unk_lang_print_type): Add flags argument.
1690 * language.h (struct language_defn) <la_print_type>: Add flags
1692 (LA_PRINT_TYPE): Likewise.
1693 * m2-lang.h (m2_print_type): Add argument.
1694 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1695 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1696 m2_unbounded_array, m2_record_fields): Add flags argument.
1697 * p-lang.h (pascal_print_type, pascal_type_print_base,
1698 pascal_type_print_varspec_prefix): Add argument.
1699 * p-typeprint.c (pascal_print_type,
1700 pascal_type_print_varspec_prefix, pascal_print_func_args,
1701 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1703 * symmisc.c (print_symbol): Update.
1704 * typeprint.c (type_print_raw_options, default_ptype_flags):
1706 (type_print): Update.
1707 * typeprint.h (struct type_print_options): New.
1708 (type_print_raw_options): Declare.
1709 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1713 * breakpoint.c (clear_command): Add cleanup for
1714 sals.sals if an argument is given.
1716 * linespec.c (parse_linespec): Do cleanups after
1717 parsing a convenience variable.
1722 * c-valprint.c (c_val_print): For character arrays
1723 with "print null" option on, print ellipses if
1724 the output is truncated and the next character is not \000.
1725 * valprint.c (MAX_WCHARS): Define.
1726 (WCHAR_BUFLEN): Likewise.
1727 (WCHAR_BUFLEN_MAX): Likewise.
1728 (struct converted_character): New structure.
1729 (count_next_character): New function.
1730 (print_converted_chars_to_obstack): New function.
1731 (generic_printstr): Rewrite using count_next_character
1732 and print_converted_chars_to_obstack.
1736 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1737 while executing the gdb command.
1738 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1739 are called from prompt_for_continue.
1740 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1746 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1747 but insert the command to execute in readline's buffer.
1751 * gdbarch.sh (target_gdbarch): Remove macro.
1752 (get_target_gdbarch): Rename to target_gdbarch.
1753 * gdbarch.c, gdbarch.h: Rebuild.
1754 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1755 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1756 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1757 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1758 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1759 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1760 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1761 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1762 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1763 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1764 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1765 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1766 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1767 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1768 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1769 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1770 target-descriptions.c, target.c, target.h, tracepoint.c,
1771 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1772 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1773 python/py-inferior.c, python/python.c: Update.
1777 * source.c (print_source_lines_base): Add fullname field giving
1778 full path to file in mi output.
1779 * NEWS: Mention the new fullname field.
1783 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1789 * infrun.c: Include target-descriptions.h.
1790 (follow_exec): Fetch new target description.
1794 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1799 * breakpoint.c: Declare set_tracepoint_count.
1800 (install_breakpoint): Call set_tracepoint_count if B is a
1802 (trace_command): Don't call set_tracepoint_count. Re-indent.
1803 (strace_command, ftrace_command):
1804 (create_tracepoint_from_upload): Likewise.
1808 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1809 (get_target_gdbarch) <gdbarch.h>: New function.
1810 (startup_gdbarch) <gdbarch.h>: Declare.
1811 <gdbarch.c> (target_gdbarch): Delete.
1812 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1813 current inferior's gdbarch.
1814 <gdbarch.c> (get_target_gdbarch): New function.
1815 * inferior.c: Include target-descriptions.h.
1816 (free_inferior): Free target description info.
1817 (add_inferior_with_spaces): Set the inferior's initial
1819 (clone_inferior_command): Copy the original inferior's target
1820 description if it was user specified.
1821 (initialize_inferiors): Add comment.
1822 * inferior.h (struct target_desc_info): Forward declare.
1823 (struct inferior) <gdbarch>: New field.
1824 * linux-nat.c: Include target-descriptions.h.
1825 (linux_child_follow_fork): Copy the parent's architecture and
1826 target description to the child.
1827 * target-descriptions.c: Include inferior.h.
1828 (struct target_desc_info): New structure, holding the equivalents
1830 (target_desc_fetched, current_target_desc)
1831 (target_description_filename): ... these removed globals.
1832 (get_tdesc_info, target_desc_info_from_user_p)
1833 (copy_inferior_target_desc_info, target_desc_info_free): New.
1834 (target_desc_fetched, current_target_desc)
1835 (target_description_filename): Reimplemented as convenience
1837 (tdesc_filename_cmd_string): New global.
1838 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1839 tdescs filename ..." commands to the per-inferior equivalent.
1840 (show_tdesc_filename_cmd): Get the value to show from the
1841 per-inferior description filename.
1842 (_initilize_target_descriptions): Change the "set/show tdesc
1843 filename" commands' variable.
1844 * target-descriptions.h (struct target_desc, struct target_desc_info)
1845 (struct inferior): Forward declare.
1846 (target_find_description, target_clear_description)
1847 (target_current_description): Adjust comments.
1848 (copy_inferior_target_desc_info, target_desc_info_free)
1849 (target_desc_info_from_user_p). Declare.
1853 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1854 (tui_target_wait_hook): Remove.
1855 (tui_install_hooks): Install the about_to_proceed observer.
1856 (tui_remove_hooks): And remove it here.
1860 * linux-tdep.c (linux_make_siginfo_note): New function.
1861 (linux_make_corefile_notes): Use it.
1862 * corelow.c (get_core_siginfo): New function.
1863 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1868 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1869 (zlib_decompress_section): Remove.
1870 (gdb_bfd_map_section): Only check for compressed section
1871 in mmap case. Use bfd_get_full_section_contents.
1872 * osabi.c (check_note): Add 'sectsize' argument. Read
1874 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1875 section data. Update for check_note change.
1876 * xcoffread.c (xcoff_initial_scan): Use
1877 bfd_get_full_section_contents.
1878 * py-auto-load.c (auto_load_section_scripts): Use
1879 bfd_get_full_section_contents.
1880 * contrib/cc-with-tweaks.sh: Add -Z option.
1884 * python/py-bpevent.c: Include defs.h.
1885 * python/py-continueevent.c: Include defs.h.
1886 * python/py-event.c: Include defs.h.
1887 * python/py-event.h: Don't include defs.h.
1888 * python/py-events.h: Don't include defs.h.
1889 * python/py-evts.c: Include defs.h.
1890 * python/py-exitedevent.c: Include defs.h.
1891 * python/py-newobjfileevent.c: Include defs.h.
1892 * python/py-signalevent.c: Include defs.h.
1893 * python/py-stopevent.c: Include defs.h.
1894 * python/py-threadevent.c: Include defs.h.
1898 * update-web-ari.sh (print_heading): Add number of files
1900 (nb_files): New variable counting the number of sources
1901 files found by gdb_find.sh script.
1902 (debug_awk): New variable to allow extra debug output.
1903 (indexes): Add more information if DEBUG_AWK is set.
1907 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1908 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1909 following the change in PLT call stubs on linker.
1913 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1914 as default language.
1915 (AWK): Use = instead of == for sh test to avoid warning.
1916 (Linux rule): Correct [:digit] into [[:digit:]].
1917 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1918 (vasprintf rule): Adapt to common subdirectory moves.
1919 (xasprintf rule): Idem.
1920 (xvasprintf rule): Idem.
1921 (var_boolean rule): Accept occurence in == or != test.
1923 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1927 * tui/tui-hooks.c (tui_inferior_exit): New function.
1928 (tui_detach_hook): Remove.
1929 (tui_install_hooks): Install the inferior exit observer.
1930 (tui_remove_hooks): Remove it.
1935 * source.c (_initialize_source): Call add_com_alias to abbreviate
1936 'forward-search' as 'fo'.
1940 * arm-tdep.c: Make defs.h be the first include.
1941 * coff-pe-read.c: Ditto.
1943 * go32-nat.c: Ditto.
1944 * i386-nat.c: Ditto.
1945 * ppcnbsd-nat.c: Ditto.
1946 * ada-varobj.h: Don't include defs.h.
1947 * i386-darwin-tdep.h: Ditto.
1948 * i386-nat.h: Ditto.
1952 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1957 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1958 File already uses "gdb_dirent.h" header.
1962 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1967 * target.h (inferior_has_forked, inferior_has_vforked)
1968 (inferior_has_execd, inferior_has_called_syscall): Remove
1973 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1974 add missing internalization markup.
1980 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1984 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1989 * gnulib/update-gnulib.sh: New script.
1993 * MAINTAINERS: Update my email address.
1997 * frame.c (put_frame_register): Don't use temporary buffer.
2001 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
2002 child. Clear 'pending_detach'.
2003 * infrun.c (handle_vfork_child_exec_or_exit): Clear
2004 'pending_detach' in the vfork parent.
2008 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
2009 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
2010 * dwarf2read.c: #include "elf-bfd.h".
2011 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
2012 (dwop_section_names): Renamed from dwo_section names. All uses
2013 updated. Add entries for .debug_cu_index, .debug_tu_index.
2014 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
2016 (struct dwp_sections): New type.
2017 (struct virtual_dwo_sections): New type.
2018 (struct dwp_hash_table): New type.
2019 (struct dwp_file): New type.
2020 (init_cutu_and_read_dies): Ensure DWO info/types section has been
2021 read in. Handle DWOs coming from DWP files.
2022 (lookup_dwo_file_slot): New function.
2023 (dwarf2_locate_dwo_sections): Move definition closer to use.
2024 (create_dwo_debug_info_hash_table_reader): Renamed from
2025 create_debug_info_hash_table_reader. All callers updated.
2026 (create_dwo_debug_info_hash_table): Renamed from
2027 create_debug_info_hash_table. All callers updated.
2028 (create_dwp_hash_table): New function.
2029 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
2030 (lookup_dwo_in_dwp): New function.
2031 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
2032 is_dwp. All callers updated.
2033 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
2034 (open_and_init_dwo_file): Renamed from init_dwo_file.
2035 All callers updated.
2036 (lookup_dwo_file): Delete.
2037 (dwarf2_locate_dwp_sections): New function.
2038 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
2039 (allocate_dwp_loaded_cutus_table): New function.
2040 (open_and_init_dwp_file): New function.
2041 (lookup_dwo_cutu): New function.
2042 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
2047 * breakpoint.c (trace_pass_set_count): Call
2048 observer_notify_breakpoint_modified instead of
2049 observer_notify_tracepoint_modified.
2050 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
2054 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
2055 argument to complete_on_enum.
2059 * configure: Rebuild.
2060 * configure.ac (build_warnings): Add -Wempty-body.
2061 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
2062 * remote.c (handle_notification): Use braces for empty 'else' body.
2063 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
2065 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
2067 * solib-som.c (som_relocate_section_addresses): Use braces
2068 for empty 'else' body.
2069 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2070 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2076 * infrun.c (handle_inferior_event)
2077 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2078 null_ptid before handling a vfork child exec or exit. Switch to
2079 the event ptid afterwards.
2083 * std-operator.def: Remove OP_LABELED.
2084 * eval.c: Remove the declaration of 'get_label'.
2085 (get_label): Remove.
2086 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2088 Remove local variable 'variantno' and related code.
2089 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2091 * expprint.c (print_subexp_standard): Likewise.
2092 (dump_subexp_body_standard): Likewise.
2093 * parse.c (operator_length_standard): Likewise.
2097 Incorporate ARI web page generator into GDB sources.
2098 * contrib/ari/create-web-ari-in-src.sh: New file.
2099 * contrib/ari/gdb_ari.sh: New file.
2100 * contrib/ari/gdb_find.sh: New file.
2101 * contrib/ari/update-web-ari.sh: New file.
2105 * gdbarch.c: Rebuild.
2106 * gdbarch.sh: Remove references to gdbarch_swap.
2107 * corelow.c (core_open): Remove obsolete comment.
2112 * c-typeprint.c (c_print_type): Don't print a space for vector
2113 types, this is handled within the suffix.
2114 (c_type_print_varspec_suffix): Add a space to vector suffix.
2118 * amd64-tdep.c (amd64_relocate_instruction): Use
2119 store_unsigned_integer instead of memcpy.
2120 * i386-tdep.c (i386_relocate_instruction): Ditto.
2124 * infrun.c (handle_inferior_event): Merge handling of
2125 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2130 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2135 * target.c (target_waitstatus_to_string): Handle
2136 TARGET_WAITKIND_VFORK_DONE.
2140 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2141 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2145 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2150 * ravenscar-thread.c (ravenscar_wait): Only update the list
2151 of threads and inferior_ptid if the inferior is still alive.
2155 * ada-lang.c (is_known_support_routine): Use lbasename when
2156 matching the symtab's filename against
2157 known_runtime_file_name_patterns.
2161 * ada-lang.c (ada_same_array_size_p): New function.
2162 (ada_promote_array_of_integrals): New function.
2163 (coerce_for_assign): Add handling of arrays where the elements
2164 are integrals of a smaller size than the size of the target
2169 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2170 against maximum exponent value.
2174 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2179 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2180 strip typedef layer when computing the fixed type's field type,
2181 only when computing its size.
2186 * i386-tdep.c (i386_return_value): Handle complex double and long
2191 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2192 New local variable args_len.
2193 Quote the name of the executable when computing the command line.
2200 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2202 * amd64-tdep.c (amd64_classify): Classify complex types.
2203 (amd64_return_value): Handle the COMPLEX_X87 class.
2207 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2208 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2212 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2214 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2215 to amd64_windows_auto_wide_charset.
2219 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2220 * event-top.h: Remove its declaration.
2221 (async_request_quit): Call mark_async_signal_handler instead of
2222 mark_async_signal_handler_wrapper.
2223 (async_do_nothing, async_disconnect): Likewise.
2224 (async_stop_sig): Likewise.
2225 * remote.c (handle_remote_sigint): Likewise.
2226 (handle_remote_sigint_twice): Likewise.
2230 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2231 with 'static struct async_signal_handler *'.
2232 (sighup_token, sigquit_token, sigstp_token): Likewise.
2236 * gdbarch.sh (function_list): Use 'pstring' when printing
2237 a variable which could return NULL.
2238 * gdbarch.c: Regenerate.
2243 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2244 inneffective if condition by gdb assertion. Add function
2245 description comment.
2249 * parser-defs.h (struct exp_descriptor): Document constraint
2250 on return value for "op_name" callbacks.
2254 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2255 * symtab.c (iterate_over_some_symtabs): Constify.
2256 * source.h (symtab_to_fullname): Return 'const char *'.
2257 * source.c (symtab_to_fullname): Return 'const char *'.
2258 * python/py-symtab.c (stpy_fullname): Constify.
2259 * cli/cli-cmds.c (edit_command): Constify.
2260 * breakpoint.c (print_breakpoint_location)
2261 (update_static_tracepoint): Constify.
2265 * breakpoint.c (compare_breakpoints): Fix comparison.
2269 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2270 gdb_wchar_t to convert_between_encodings.
2274 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2275 more parameter 'inferior'.
2276 * corefile.c (write_memory_with_notification): Caller update.
2278 * mi/mi-cmd-var.c: Include "mi-main.h".
2279 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2280 to 1 and restore it later.
2281 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2282 and "data-write-memory-bytes.
2283 * mi/mi-interp.c: Include objfiles.h.
2284 (mi_interpreter_init): Call observer_attach_memory_changed.
2285 (mi_memory_changed): New.
2286 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2289 * NEWS: Mention new MI notification "memory-changed".
2293 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2297 New option -nh: inhibit loading of ~/.gdbinit.
2298 * NEWS: Mention -nh.
2299 * main.c (captured_main): Recognize and process -nh.
2300 (print_gdb_help): Mention -nh.
2301 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2307 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2309 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2310 nor pc_regnum_from_eax.
2311 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2312 nor pc_regnum_from_eax.
2316 Fix entry values resolving in inlined frames.
2317 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2318 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2323 * configure.ac: Build with -DMS_WIN64 if building with Python
2324 enabled using GCC on amd64-windows.
2325 * configure: Regenerate.
2330 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2336 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2340 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2341 reset thread numbering back to 1.
2345 PR breakpoints/14643.
2346 * linespec.c (struct ls_parser): New member keyword_ok.
2347 (linespec_lexer_lex_string): Add comment.
2348 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2350 (parse_linespec): Set keyword_ok.
2354 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2355 "0x" prefix on address in log message.
2357 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2358 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2359 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2360 (lookup_dwo_file): Add const to dwo_name parameter.
2361 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2365 Fix crash during stepping on ppc32.
2366 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2372 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2376 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2377 output and use uint32_t not long to ensure 4 byte size.
2381 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2386 * target.c (simple_search_memory): Include access length in
2393 * solib.c (solib_find): Prevent GDB from loading native libraries when
2394 debugging a cross-target corefile.
2398 Make definition match declaration.
2400 * regcache.c (regcache_register_status): Change return type to
2401 enum register_status.
2405 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2406 write_memory_with_notification instead of write_memory.
2407 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2408 instead of target_write_memory.
2412 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2413 when the length of content is not an even number.
2417 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2418 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2422 * sol-thread.c (sol_thread_fetch_registers)
2423 (sol_thread_store_registers): Delete commented out code.
2427 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2428 Move these functions to sparc-sol-thread.c.
2429 * sparc-sol-thread.c: New file.
2430 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2431 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2433 * configure: Regenerate.
2437 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2438 Remove commented-out code.
2442 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2443 Enable this code for sparc hosts only.
2447 * procfs.h (procfs_find_LDT_entry): Add declaration.
2448 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2449 function procfs_find_LDT_entry.
2453 * procfs.c (proc_get_LDT_entry): Make static.
2457 * procfs.c (proc_find_memory_regions): Fix declaration.
2461 * amd64-tdep.c (amd64_return_value): Revert previous change
2462 that used TYPE_LENGTH directly.
2463 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2464 (bfin_store_return_value): Likewise.
2465 * cris-tdep.c (cris_store_return_value): Likewise.
2466 (cris_extract_return_value): Likewise.
2467 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2468 * hppa-tdep.c (hppa64_return_value): Likewise.
2469 * lm32-tdep.c (lm32_store_return_value): Likewise.
2470 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2471 * spu-tdep.c (spu_value_from_register): Likewise.
2472 * vax-tdep.c (vax_return_value): Likewise.
2476 * gdbtypes.c (lookup_array_range_type): Expand parameters
2477 LOW_BOUND and HIGH_BOUND to LONGEST.
2478 (lookup_string_range_type): Likewise.
2479 * gdbtypes.h (lookup_array_range_type): Likewise.
2480 (lookup_string_range_type): Likewise.
2481 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2482 Expand HIGHBOUND to ssize_t.
2483 (value_string): Likewise.
2484 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2485 (value_string): Likewise.
2489 PR breakpoints/13898
2490 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2491 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2492 per breakpoint type.
2496 * procfs.c: Add gdb_bfd header.
2497 * rs6000-nat.c: Likewise.
2498 * solib-pa64.c: Likewise.
2499 * spu-linux-nat.c: Likewise.
2500 * windows-nat.c: Likewise.
2504 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2508 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2509 (read_common_block): Handle child DIEs with
2510 DW_AT_data_member_location.
2511 (new_symbol_full): Add special case for common blocks.
2516 * dwarf2read.c (read_common_block): Rewrite.
2517 (new_symbol_full): Handle DW_TAG_common_block.
2518 * f-lang.c (head_common_list, find_common_for_function):
2520 * f-lang.h (struct common_entry, struct saved_f77_common,
2521 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2522 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2523 BLANK_COMMON_NAME_LOCAL): Remove.
2524 (struct common_block): New.
2525 * f-valprint.c (list_all_visible_commons): Remove.
2526 (info_common_command_for_block): New function.
2527 (info_common_command): Use it.
2528 * stack.c (iterate_over_block_locals): Special case for
2529 COMMON_BLOCK_DOMAIN.
2530 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2532 (struct general_symbol_info) <value.common_block>: New field.
2533 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2538 * f-lang.c (allocate_saved_bf_node,
2539 allocate_saved_function_node, allocate_saved_f77_common_node,
2540 allocate_common_entry_node, tail_common_list, current_common,
2541 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2542 tmp_bf_ptr, add_common_block, add_common_entry,
2543 find_first_common_named, patch_common_entries,
2544 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2545 global_remote_debug, get_bf_for_fcn, saved_function_list,
2546 saved_function_list_end, clear_function_list, struct saved_fcn,
2547 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2548 SAVED_BF, SAVED_BF_PTR): Remove.
2549 * f-lang.h (tail_common_list, current_common,
2550 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2551 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2552 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2553 real_main_c_value): Remove.
2554 * f-valprint.c (there_is_a_visible_common_named): Remove.
2558 * breakpoint.c (update_global_location_list): Ignore previous
2559 duplicate status of a breakpoint when starting a new scan for
2560 duplicate breakpoints.
2563 PR breakpoints/14419
2564 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2565 support LLVM compiler.
2569 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2570 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2571 (bfin_store_return_value): Likewise.
2572 * cris-tdep.c (cris_store_return_value): Likewise.
2573 (cris_extract_return_value): Likewise.
2574 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2575 * hppa-tdep.c (hppa64_return_value): Likewise.
2576 * lm32-tdep.c (lm32_store_return_value): Likewise.
2577 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2578 * spu-tdep.c (spu_value_from_register): Likewise.
2579 * vax-tdep.c (vax_return_value): Likewise.
2583 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2584 parameter LEN to ssize_t.
2588 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2590 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2592 (alpha_store_return_value): Likewise.
2593 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2594 (amd64_push_arguments): Likewise.
2595 * ax-gdb.c (gen_trace_static_fields): Likewise.
2596 (gen_traced_pop): Likewise.
2597 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2598 * breakpoint.c (update_watchpoint): Likewise.
2599 * findcmd.c (parse_find_args): Use local variable for type
2601 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2602 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2603 (h8300_store_return_value): Likewise.
2604 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2605 Use i386_darwin_arg_type_alignment directly.
2606 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2607 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2608 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2609 (m68hc11_extract_return_value): Likewise.
2610 * mep-tdep.c (mep_push_dummy_call): Likewise.
2611 * printcmd.c (float_type_from_length): Likewise.
2612 * s390-tdep.c (s390_value_from_register): Likewise.
2613 * stack.c (read_frame_arg): Likewise.
2614 * tracepoint.c (encode_actions_1): Likewise.
2615 * valops.c (value_fetch_lazy): Use local variable for type
2616 instead of length. Use TYPE_LENGTH directly.
2617 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2621 * symtab.c (skip_prologue_sal): Fix typo in comment.
2625 * linespec.c (create_sals_line_offset): Fix typo in comment.
2629 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2630 use plongest to print the array size.
2634 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2635 * p-valprint.c (pascal_type_print_base): Likewise.
2639 * remote.c (remote_get_trace_status): Remove setting default
2640 values of fields of 'ts'.
2644 Fix internal error on canonicalization of clang types.
2645 * cp-name-parser.y (operator): New comment at make_operator call for
2646 new, delete, new[] and delete[].
2647 (exp): Use "sizeof ". Add new comment at make_operator call.
2651 Fix disassemble without parameters in tailcall frame.
2652 * cli/cli-cmds.c (disassemble_current_function): Use
2653 get_frame_address_in_block.
2657 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2658 TYPE_CODE_UNION>: Unify, removing a goto.
2662 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2666 * findvar.c (read_frame_register_value): Mark the result value as
2667 optimized out if any of the input registers have been optimized out.
2671 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2675 * eval.c (evaluate_subexp_standard): Eliminate single-use
2680 * mi/mi-interp.c: Declare mi_record_changed.
2681 (mi_interpreter_init): Call observer_attach_record_changed.
2682 (mi_record_changed): New.
2683 * record.c (record_open): Call observer_notify_record_changed.
2684 (cmd_record_stop): Call observer_notify_record_changed.
2690 * python/python.c (finalize_python): New function.
2691 (_initialize_python): Make a final cleanup.
2695 * buildsym.h (param_symbols): Delete, unused.
2696 (context_stack): Delete member "params", unused.
2697 * buildsym.c (push_context): Update.
2698 * dwarf2read.c (read_func_scope): Update.
2702 * sh-tdep.c (sh_register_convert_to_virtual)
2703 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2704 all callers. Just do a memcpy if not the little-endian case.
2706 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2707 set_gdbarch_double_format and set_gdbarch_long_double_format.
2708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2709 set_gdbarch_double_format.
2710 * sh-tdep.c (sh_gdbarch_init): Likewise.
2712 * NEWS: Document the removal of SH's 'regs' command.
2713 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2718 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2723 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2724 language when iterating over symbols.
2728 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2729 (mi_interpreter_init): Call observer_attach_tsv_created and
2730 observer_attach_tsv_deleted.
2731 (mi_tsv_created, mi_tsv_deleted): New.
2732 * tracepoint.c (delete_trace_state_variable): Call
2733 observer_notify_tsv_deleted.
2734 (trace_variable_command): Call observer_notify_tsv_created.
2735 (delete_trace_variable_command): Call
2736 observer_notify_tsv_deleted.
2737 (create_tsv_from_upload): Call observer_notify_tsv_created.
2742 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2743 if traceframe changed.
2744 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2746 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2747 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2748 'traceframe_changed'.
2749 (mi_traceframe_changed): New.
2750 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2752 * NEWS: Mention the new MI notification.
2756 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2760 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2761 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2762 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2763 Extend code also for PaX support. Convert all gdb_assert to warning
2768 Implement auto-load user conveniences suggested by Doug Evans.
2769 * auto-load.c: Include top.h.
2770 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2771 (_initialize_auto_load): New variable scripts_directory_help. Mention
2772 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2773 scripts-directory. Document in online help one can use also files for
2774 set auto-load safe-path.
2775 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2776 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2780 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2785 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2786 ELTLEN and use TYPE_LENGTH directly.
2787 (m2_val_print): Likewise.
2788 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2789 variable LEN and use TYPE_LENGTH directly.
2790 (m68k_svr4_store_return_value): Likewise.
2791 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2792 ARGLEN and use TYPE_LENGTH directly.
2793 (mips_o64_push_dummy_call): Likewise.
2794 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2795 variable LENGTH and use TYPE_LENGTH directly.
2796 (s390_function_arg_float): Likewise.
2797 (s390_function_arg_integer): Likewise.
2798 (s390_push_dummy_call): Likewise.
2799 (s390_return_value_convention): Likewise.
2800 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2801 TYPE_LENGTH directly.
2805 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2806 Update comment to add_setshow_integer_cmd.
2807 * cli/cli-setshow.c (do_set_command): Handle case
2808 'var_zuinteger_unlimited'.
2809 (do_show_command): Likewise.
2810 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2811 for command 'remotetimeout'.
2812 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2814 * source.c (_initialize_source): Call
2815 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2819 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2825 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2826 (frame_pop): Drop also TAILCALL_FRAME frames.
2827 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2833 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2834 function start if we are already at function start. Both for
2835 reverse-next and for reverse-step into function without line number
2840 Code cleanup - rename 'inline' depth to 'artificial' depth.
2841 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2842 frame_id_artificial_p, extend the comment.
2843 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2844 * frame.c (fprint_frame_id): Rename at a user, change debug output
2845 text to "artificial=".
2846 (skip_inlined_frames): Rename to ...
2847 (skip_artificial_frames): ... here. Extend the comment.
2848 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2849 (frame_id_inlined_p): Rename to ...
2850 (frame_id_artificial_p): ... here. Rename at a user.
2851 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2852 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2854 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2856 (frame_id_inlined_p): Rename to ...
2857 (frame_id_artificial_p): ... here.
2858 * inline-frame.c (inline_frame_this_id): Rename at a user.
2862 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2863 vector variables using vector_size syntax rather than array
2868 * valarith.c (value_concat): Replace unsafe ALLOCA with
2873 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2877 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2878 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2879 data-directory as appropriate.
2883 * printcmd.c (ui_printf): Eliminate single-use variable
2889 * valops.c (value_assign): Move observer_notify_target_changed
2890 below to replace reinit_frame_cache.
2894 Refactor Python "gdb" module into a proper Python package, by
2895 introducing a new "_gdb" module for code implemented in C, and
2896 using reload/__import__ instead of exec.
2897 * python/lib/gdb/__init__.py: Import * from _gdb.
2898 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2899 prompt_hook, sys.argv): Moved from finish_python_initialization.
2900 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2901 (packages, auto_load_packages): New list and function replacing
2902 module_dict and auto-loading code, using __file__ instead of
2903 gdb.PYTHONDIR and reload/__import__ instead of exec.
2904 (GdbSetPythonDirectory): Replacing function of the same name
2905 from finish_python_initialization, using reload/__import__ instead
2906 of exec, as well as call auto_load_packages.
2907 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2908 gdb_python_module and not gdb_module.
2909 * python/python-internal.h (gdb_python_module): Declare.
2910 * python/python.c (gdb_python_module): New global.
2911 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2912 (_initialize_python): Rename gdb module to _gdb.
2913 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2914 (finish_python_initialization): Move Python code to
2915 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2920 * Makefile.in (COMMON_OBS): Add registry.o.
2921 * registry.c: New file.
2922 * registry.h (struct registry_container): Declare.
2923 (registry_data_callback): New typedef.
2924 (struct registry_data, struct registry_data_registration, struct
2925 registry_data_registry): New type.
2926 (register_data_with_cleanup, registry_alloc_data)
2927 (registry_callback_adaptor, registry_clear_data)
2928 (registry_container_free_data, registry_set_data, registry_data):
2930 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2931 the new common structures and functions.
2932 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2937 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2938 there is an error inserting hardware breakpoints and use the
2939 error message from the target.
2941 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2942 Catch this exception and print the error message contained within.
2943 Do not print the default hardware error breakpoint message in this
2948 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2953 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2954 .gdb_index symbol attributes if there are none.
2958 * symtab.h (struct minimal_symbol) [has_size]: New field.
2959 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2960 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2961 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2962 minimal symbols if the symbol's size is actually known.
2963 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2964 of msymbol's size field. Add comment.
2965 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2966 SET_MSYMBOL_SIZE to set the minimal symbol size.
2970 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2971 minimal_symbol struct object, rather than setting some of its
2976 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2977 passed_a_ptr flag when displaying typedef types.
2981 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2982 the optimized_out flag is preserved.
2986 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2987 prologue changes in GCC.
2992 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2993 (BOOL_CONVERSION_BADNESS): ... this.
2994 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2995 (rank_one_type): Allow all boolean conversions
2996 permitted by the standard.
3000 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3001 Don't decref py_objfile.
3005 Do not enable -lmcheck by default when Python is enabled with
3007 * configure.ac: (python_has_threads) New variable, by testing
3008 if WITH_THREAD is defined in Python.h.
3009 Move --enable-lmcheck after --with-python.
3010 Do not enable -lmcheck by default if python_has_threads=yes.
3011 Warn if --enable-lmcheck and python_has_threads=yes.
3012 * configure: Regenerate.
3016 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
3017 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
3018 Update some commands.
3019 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
3020 * mi/mi-main.c (mi_cmd_execute): Set
3021 '*parse->cmd->suppress_notification' to 1.
3025 * mi/mi-cmds.c (mi_cmds): Add 'static'.
3029 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
3033 * main.c (print_gdb_help): Remove reference to
3034 --use-deprecated-index-sections.
3038 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
3039 (init_cmds): Call add_setshow_uinteger_cmd for command
3040 'max-user-call-depth'.
3041 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
3042 declaration of 'max_user_call_depth'.
3043 * frame.c (backtrace_limit): Add 'unsigned'.
3044 (_initialize_frame): Call add_setshow_uinteger_cmd for command
3046 * remote.c (remoteaddresssize): Add 'unsigned'.
3047 (remote_address_masked): Change local var 'address_size' to
3049 (_initialize_remote): Call add_setshow_uinteger_cmd for
3050 'remoteaddresssize'.
3051 * top.c (history_size): Add 'unsigned'.
3052 (show_commands): Change local variables to 'unsigned'.
3053 (set_history_size_command): Don't check history_size is negative.
3054 Adjust the condition to call unstifle_history and set history_size
3061 * infcmd.c (default_print_one_register_info): New, factored out
3062 from default_print_registers_info.
3063 (default_print_registers_info): Use it. Mark value unavailable if
3065 (registers_info): Print user registers with
3066 default_print_one_register_info.
3071 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3072 is not NULL before referencing it.
3076 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3077 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3083 * auto-load.c (auto_load_objfile_script): Rename to ...
3084 (auto_load_objfile_script_1): ... here, change variable realname to
3085 parameter realname, document it, add return value, add variable retval.
3086 (auto_load_objfile_script): New function.
3090 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3091 followed by a whitespace.
3096 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3097 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3098 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3103 * memattr.c (create_mem_region): Fix memory region overlapping
3108 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3109 with xmalloc/cleanup.
3110 * mt-tdep.c (mt_push_dummy_call): Likewise.
3111 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3112 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3116 * jv-exp.y (push_expression_name): Add "." at the end of error
3121 Document how to return from "python-interactive" to GDB.
3122 * python/python.c (_initialize_python): Update documentation.
3126 * infrun.c (_initialize_infrun) <handle command help text>:
3127 Mention that multiple signals are supported.
3131 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3136 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3137 (tfind_1): Don't call registers_changed, set_traceframe_num,
3138 and clear_traceframe_info.
3139 Call set_current_traceframe.
3140 (set_current_traceframe): call set_traceframe_num.
3144 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3145 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3149 Enable readline in Python in a GDB-specific way and block the
3150 standard Python readline module to prevent conflicts with GDB.
3151 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3152 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3153 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3154 * python/py-gdb-readline.c: New file.
3155 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3157 * python/python.c (_initialize_python): Call
3158 gdbpy_initialize_gdb_readline.
3162 * defs.h: Include build-gnulib/config.h
3166 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3171 Add a new "python-interactive" command that starts a standard
3172 Python interactive prompt with "pi" as alias, and add "py" as
3173 an alias to "python".
3174 * NEWS: Mention the new commands.
3175 * python/python.c (eval_python_command): New function.
3176 (python_interactive_command): For "python-interactive" with
3177 arguments, call eval_python_command. For "python-interactive"
3178 without arguments, call PyRun_InteractiveLoop.
3179 (_initialize_python): Add "python-interactive" command with
3180 "pi" as alias, and add "py" as an alias to "python".
3184 * defs.h (quit_flag): Don't declare.
3185 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3186 (QUIT): Use new functions.
3187 * event-top.c (command_handler): Use clear_quit_flag.
3188 (handle_sigint): Use set_quit_flag.
3189 (async_request_quit): Use check_quit_flag. Don't check
3191 * exceptions.c (throw_exception): Use clear_quit_flag.
3192 * main.c (captured_main): Use clear_quit_flag.
3193 * python/python.c (clear_quit_flag, set_quit_flag)
3194 (check_quit_flag): New functions.
3195 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3197 * remote.c (remote_wait_as): Use check_quit_flag,
3199 (remote_start_remote): Call QUIT.
3200 * symfile.c (load_progress): Use check_quit_flag.
3201 * top.c (command_loop): Use clear_quit_flag.
3202 (command_line_input): Call QUIT.
3203 * utils.c (quit_flag): Conditionally define.
3204 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3206 (prompt_for_continue): Call QUIT. Use quit, not
3208 * remote-mips.c (mips_expect_timeout): Call QUIT.
3209 * monitor.c (monitor_expect): Call QUIT.
3213 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3214 (async_init_signals): Update.
3215 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3216 (SIGWINCH_HANDLER_BODY): Remove.
3220 * jit.c (jit_object_close_impl): Don't malloc the objfile
3222 * objfiles.c (allocate_objfile): Don't malloc the objfile
3224 (free_objfile): Don't free the objfile name.
3225 * objfiles.h (struct objfile) <name>: Update comment.
3226 * symfile.c (reread_symbols): Fix reference counting. Don't
3227 malloc objfile name.
3231 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3232 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3233 (symfile_bfd_open): Likewise.
3234 (generic_load): Likewise.
3235 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3236 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3238 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3240 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3241 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3242 (pmon_load_fast): Likewise.
3243 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3244 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3245 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3246 (macho_check_dsym): Likewise.
3247 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3248 (m32r_upload_command): Likewise.
3249 * gdb_bfd.h (gdb_bfd_cache): Declare.
3250 * gdb_bfd.c (struct gdb_bfd_data): New.
3251 (gdb_bfd_cache): New global.
3252 (struct gdb_bfd_cache_search): New.
3253 (hash_bfd): New function.
3255 (gdb_bfd_open): Likewise.
3256 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3257 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3259 * exec.c (exec_file_attach): Use gdb_bfd_open.
3260 * dsrec.c (load_srec): Use gdb_bfd_open.
3264 * dwarf2read.c (macro_start_file): Update.
3265 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3266 (free_objfile_per_bfd_storage): Destroy macro_cache.
3267 (allocate_objfile, free_objfile): Update.
3268 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3270 (struct objfile) <macro_cache>: Remove.
3271 * symfile.c (reread_symbols): Update.
3272 * symmisc.c (print_symbol_bcache_statistics): Update.
3273 (print_objfile_statistics): Update.
3277 * elfread.c (elf_symtab_read): Update.
3278 * objfiles.c (objfiles_bfd_data): New global.
3279 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3280 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3281 (allocate_objfile, free_objfile): Update.
3282 (_initialize_objfiles): Initialize objfiles_bfd_data.
3283 * objfiles.h (struct objfile_per_bfd_storage): New.
3284 (struct objfile) <per_bfd>: New field.
3285 <filename_cache>: Remove.
3286 (set_objfile_per_bfd): Declare.
3287 * symfile.c (reread_symbols): Update. Call
3288 set_objfile_per_bfd.
3289 (allocate_symtab): Update.
3290 * symmisc.c (print_symbol_bcache_statistics): Update.
3291 (print_objfile_statistics): Print the size of the BFD obstack.
3295 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3296 * gdb_bfd.c: Use DEFINE_REGISTRY.
3297 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3298 (gdb_bfd_ref): Call bfd_alloc_data.
3299 (gdb_bfd_unref): Call bfd_free_data.
3303 * registry.h (struct registry_fields): New.
3304 (REGISTRY_FIELDS): Redefine.
3305 (REGISTRY_ACCESS_FIELD): New macro.
3306 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3311 * auto-load.c (_initialize_auto_load): Update.
3312 * solib-svr4.c (_initialize_svr4_solib): Update
3313 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3314 * solib-darwin.c (_initialize_darwin_solib): Update.
3315 * registry.h: New file.
3316 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3317 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3318 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3319 (register_program_space_data_with_cleanup)
3320 (register_program_space_data, program_space_alloc_data)
3321 (clear_program_space_data, set_program_space_data)
3322 (program_space_data): Don't declare.
3323 * progspace.c: Use DEFINE_REGISTRY.
3324 (struct program_space_data, struct
3325 program_space_data_registration, struct
3326 program_space_data_registry, program_space_data_registry)
3327 (register_program_space_data_with_cleanup)
3328 (register_program_space_data, program_space_alloc_data)
3329 (program_space_free_data, clear_program_space_data)
3330 (set_program_space_data, program_space_data): Remove.
3331 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3332 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3333 (register_objfile_data_with_cleanup, register_objfile_data)
3334 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3336 * objfiles.c: Use DEFINE_REGISTRY.
3337 (struct objfile_data, struct objfile_data_registration, struct
3338 objfile_data_registry, objfile_data_registry)
3339 (register_objfile_data_with_cleanup, register_objfile_data)
3340 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3341 (set_objfile_data, objfile_data): Remove.
3342 (_initialize_objfiles): Update.
3343 * jit.c (_initialize_jit): Update.
3344 * inflow.c (_initialize_inflow): Update.
3345 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3346 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3347 (register_inferior_data_with_cleanup, register_inferior_data)
3348 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3350 * inferior.c: Use DEFINE_REGISTRY.
3351 (struct inferior_data, struct inferior_data_registration, struct
3352 inferior_data_registry, inferior_data_registry)
3353 (register_inferior_data_with_cleanup, register_inferior_data)
3354 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3355 (set_inferior_data, inferior_data): Remove.
3356 * auxv.c (_initialize_auxv): Update.
3357 * ada-lang.c (_initialize_ada_language): Update.
3358 * breakpoint.c (_initialize_breakpoint): Update.
3359 * i386-nat.c (i386_use_watchpoints): Update.
3363 * exec.c (exec_close, exec_file_attach): Update.
3364 (add_to_section_table): Initialize 'key' field.
3365 (add_target_sections, remove_target_sections): Add 'key' argument.
3366 * exec.h (add_target_sections, remove_target_sections): Add
3368 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3369 (reload_shared_libraries_1): Update.
3370 * target.h (struct target_section) <key>: New field.
3374 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3378 * symfile.c (allocate_symtab): Use host_address_to_string
3379 function instead of cast of pointer to long which is not
3380 compatible with x86_64-w64-mingw32 build.
3384 * mips-tdep.c (is_octeon): New function.
3385 (is_octeon_bbit_op): New function.
3386 (mips32_next_pc): Handle Octeon's bbit instructions.
3387 (mips32_instruction_has_delay_slot): Likewise.
3391 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3392 before the function.
3396 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3401 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3402 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3406 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3407 The typo broke "make TAGS".
3416 * gdbtypes.c (strict_type_checking): New variable.
3417 (show_strict_type_checking): New function.
3418 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3419 if strict type checking is disabled.
3420 (_initialize_gdbtypes): Add "check type" subcommand.
3421 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3425 * language.h (type_mode): Remove.
3426 (type_check): Remove.
3427 (struct language_defn): Remove la_type_check.
3428 (STRICT_TYPE): Remove unused macro.
3429 (type_error): Remove.
3430 * language.c (set_type_range_case): Renamed to ...
3431 (set_range_case): ... this. Update all callers.
3432 Remove type_mode/type_check.
3433 (type_mode): Remove.
3434 (type_check): Remove.
3435 (show_type_command): Remove.
3436 (set_type_command): Remove.
3437 (language_info): Remove type checking output.
3438 (type_error): Remove unused function.
3439 (range_error): Update comment.
3440 (unknown_language_defn): Remove la_type_check.
3441 (auto_language_defn): Likewise.
3442 (local_language_defn): Likewise.
3443 (_initialize_language): Remove "check type" subcommand.
3444 * ada-lang.c (ada_language_defn): Remove la_type_check.
3445 * c-lang.c (c_language_defn): Likewise.
3446 (cplus_language_defn): Likewise.
3447 (asm_language_defn): Likewise.
3448 (minimal_language_defn): Likewise.
3449 * d-lang.c (d_language_defn): Likewise.
3450 * f-lang.c (f_language_defn): Likewise.
3451 * go-lang.c (go_language_defn): Likewise.
3452 * jv-lang.c (java_language_defn): Likewise.
3453 * m2-lang.c (m2_language_defn): Likewise.
3454 * objc-lang.c (objc_language_defn): Likewise.
3455 * opencl-lang.c (opencl_language_defn): Likewise.
3456 * p-lang.c (pascal_language_defn): Likewise.
3460 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3464 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3466 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3467 using the regache. Use ia64_hpux_get_register_from_save_state_t
3468 to access the bsp and bspstore registers if not.
3472 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3473 * breakpoint.c (detach_breakpoints): Change pid parameter into
3474 a ptid. Adjust code accordingly.
3475 * infrun.c (handle_inferior_event): Delete variable child_pid.
3476 Update call to detach_breakpoints to pass the child ptid for
3478 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3479 assert that inferior_ptid's lwp is zero.
3480 (linux_handle_extended_wait): Update call to detach_breakpoints.
3481 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3486 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3487 parent, only call detach_breakpoints if tts.tts_event ==
3492 * dwarf2-frame.c (dwarf2_frame_cache): Use
3493 get_frame_address_in_block instead of get_frame_pc as
3494 the bound for executing the frame's FDE.
3498 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3499 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3500 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3501 (c_type_print_varspec_suffix): Likewise.
3502 * eval.c (evaluate_subexp_standard): Likewise.
3503 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3504 (f_type_print_varspec_suffix): Likewise.
3505 * gdbtypes.c (is_scalar_type): Likewise.
3506 (recursive_dump_type): Likewise.
3507 * infcall.c (value_arg_coerce): Likewise.
3508 * m2-valprint.c (m2_val_print): Likewise.
3509 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3510 (pascal_type_print_varspec_suffix): Likewise.
3511 (pascal_type_print_base): Likewise.
3512 * p-valprint.c (pascal_val_print): Likewise.
3513 (pascal_val_print): Likewise.
3514 * valops.c (value_slice): Likewise.
3515 * valprint.c (scalar_type_p): Likewise.
3516 * valarith.c (value_bitstring_subscript): Remove.
3517 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3518 Remove comment on TYPE_CODE_BITSTRING.
3520 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3521 TYPE_CODE_BITSTRING.
3523 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3528 * tracepoint.c (trace_find_none_command): Remove.
3529 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3533 * remote.c (handle_notification): Remove parameter 'length'.
3534 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3538 * gdbtypes.c (opaque_type_resolution): Make static.
3539 Add missing comment.
3540 (overload_debug): Add missing comment.
3541 (show_opaque_type_resolution): Likewise.
3542 (show_overload_debug): Likewise.
3543 (print_bit_vector): Remove unnecessary forward declaration.
3544 (print_arg_types): Likewise.
3545 (dump_fn_fieldlists): Likewise.
3546 (print_cplus_stuff): Likewise.
3550 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3551 (gdb_bfd_ref): Initialize new field.
3552 (gdb_bfd_unref): Unref the archive BFD.
3553 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3559 * python/py-bpevent.c (create_breakpoint_event_object): Update
3561 * python/py-event.c (evpy_add_attribute): Update comment.
3562 * python/py-exitedevent.c (create_exited_event_object): Fix
3563 reference counting and error handling.
3564 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3565 Fix reference counting.
3566 * python/py-signalevent.c (create_signal_event_object): Fix
3567 reference counting and error handling.
3568 * python/py-stopevent.c (emit_stop_event): Fix reference
3570 * python/py-threadevent.c (get_event_thread): Return a
3572 * python/py-type.c (convert_field): Fix reference counting.
3576 * dwarf2read.c (dwarf_decode_macro_bytes)
3577 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3582 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3583 stepi, nexti, finish, next, step, jump, and continue commands.
3584 * infrun.c (_initialize_infrun): Update help text for the handle
3589 * gdbtypes.c (struct extra): Delete, unused.
3591 * gdbtypes.c: Whitespace cleanup.
3592 (address_space_name_to_int): Remove "extern" from definition.
3593 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3595 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3596 TYPE_POINTER_TYPE (type).
3600 * solib-svr4.c (svr4_free_library_list): Use free_so.
3604 * .gitignore: Add go-exp.c.
3608 * value.c (show_convenience): Tweak comment.
3609 (_initialize_values): Mention convenience functions in the help text
3610 for "show convenience".
3614 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3615 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3617 * eval.c (evaluate_subexp_standard): Likewise.
3618 * expprint.c (print_subexp_standard): Likewise.
3619 (dump_subexp_body_standard): Likewise.
3620 * parse.c (operator_length_standard): Likewise.
3624 * std-operator.def: Remove OP_BITSTRING.
3625 * breakpoint.c (watchpoint_exp_is_const): Update.
3626 * eval.c (evaluate_subexp_standard): Remove handling to
3628 * expprint.c (print_subexp_standard): Likewise.
3629 (dump_subexp_body_standard): Likewise.
3630 * parse.c (operator_length_standard): Likewise.
3631 * valops.c (value_bitstring): Remove.
3632 * value.h: Remove the declaration of 'value_bitstring'.
3636 * linespec.c (find_methods): Remove unused variables `i1' and
3638 (decode_line_full): Likewise for `arg_start'.
3642 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3643 (zlib_decompress_section): Likewise for `section_data'.
3644 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3648 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3649 * NEWS: Document them.
3650 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3652 * python/py-type.c (typy_array_1): New function.
3653 (typy_array): Call it.
3654 (typy_vector): New function.
3655 (type_object_methods): Add "vector".
3656 * python/lib/gdb/function/__init__.py: New file.
3657 * python/lib/gdb/function/strfns.py: New file.
3661 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3662 for TYPE_FIELD_BITPOS.
3663 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3668 * common/vec.h (VEC_merge): Define.
3669 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3670 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3671 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3672 * completer.c: Include gdb_signals.h.
3673 (signal_completer): Define.
3674 * completer.h (signal_completer): Add prototype.
3675 * infcmd.c (_initialize_infcmd): Assign the command
3676 completer for "signal" to handle_completer.
3677 * infrun.c: Include completer.h.
3678 (handle_completer): Define.
3679 (_initialize_infrun): Declare a new local variable c. Store the
3680 result of add_com("handle") to it. Assign the command
3681 completer for "handle" to handle_completer.
3685 * cli/cli-decode.c (set_cmd_prefix): New.
3686 (lookup_cmd_for_prefixlist): New.
3687 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3688 of each cmd_list_element in *prefixlist.
3689 (add_setshow_cmd_full): set_cmd_prefix.
3690 (add_alias_cmd): Likewise.
3691 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3692 Declare 'auto_boolean_enums'.
3693 * cli/cli-setshow.c: Include "observer.h".
3694 (notify_command_param_changed_p): New.
3695 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3697 (do_setshow_command): Split it to ...
3698 (do_set_command, do_show_command): ... them. New.
3699 (do_set_command): Call observer_notify_command_param_changed if
3700 notify_command_param_changed_p returns true.
3701 (cmd_show_list): Caller update.
3702 * auto-load.c (set_auto_load_cmd): Likewise.
3703 * remote.c (show_remote_cmd): Likewise.
3704 * cli/cli-setshow.h: Update declarations.
3705 * top.c (execute_command): Call do_set_command and do_show_command.
3707 * NEWS: Mention new MI notification.
3708 * mi/mi-interp.c: Declare mi_command_param_changed.
3709 (mi_interpreter_init): Attach mi_command_param_changed to
3710 observer command_param_changed.
3711 (mi_command_param_changed): New.
3712 Remove mi_suppress_breakpoint_notifications.
3713 Define global variable mi_suppress_notification.
3714 (mi_breakpoint_created): Update.
3715 (mi_breakpoint_deleted): Likewise.
3716 (mi_breakpoint_modified): Likewise.
3717 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3718 'gdb-set' and set mi_suppress_notification.
3719 * mi/mi-main.h: (mi_suppress_notification): New struct.
3724 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3728 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3729 (skiplist): Move it to skip.c.
3730 (init_cmd_lists): Remove code setting enablebreaklist and
3732 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3733 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3735 * gdbcmd.h: Likewise.
3736 * skip.c (_initialize_step_skip): Move 'skiplist' from
3741 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3742 * gnu-nat.c, symfile.c: Likewise.
3746 * utils.c (prompt_for_continue_wait_time): New static global.
3747 (make_command_stats_cleanup): Initialize it.
3748 (report_command_stats): Subtract time waiting for user.
3749 (prompt_for_continue): Track time waiting for user.
3750 (defaulted_query): Track time waiting for user.
3754 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3756 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3757 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3758 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3759 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3760 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3761 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3763 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3764 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3765 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3766 (dump_prefix_expression): Handle OP_TYPE.
3770 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3775 * linux-thread-db.c: #include "gdb_vecs.h".
3776 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3778 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3779 (thread_db_load_search): Use a vector to iterate over path elements.
3780 Handle text appearing after "$pdir".
3782 * gdb_string.h: Moved to ...
3783 * common/gdb_string.h: ... here.
3784 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3785 gdb_string.h and gdb_assert.h.
3789 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3790 (tic6x_value_to_register): Likewise.
3791 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3792 and set_gdbarch_value_to_register.
3798 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3799 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3800 * gcore.c (gcore_create_callback): New function comment. Add modified
3801 parameter. Only write modified regions. Set SEC_READONLY exactly
3802 according to MODIFIED.
3803 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3804 the passed modified value to FUNC.
3805 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3806 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3807 first. New variables modified and has_anonymous. Parse the lines of
3808 smaps file. Add the passed MODIFIED value to FUNC.
3809 * procfs.c (find_memory_regions_callback): Add the passed modified
3814 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3815 (dwarf2_frame_cache): Use it.
3816 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3817 cache initialization constraint.
3822 * varobj.c (update_dynamic_varobj_children): Don't call
3828 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3832 * NEWS: New entry for 'cd' default parameters.
3833 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3837 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3842 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3843 to attempting lseek/write.
3844 (inf_child_fileio_pread): Likewise for pread.
3848 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3849 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3850 add_setshow_zinteger_cmd.
3851 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3852 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3853 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3854 instead of add_setshow_zinteger_cmd.
3855 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3856 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3857 instead of add_setshow_zinteger_cmd.
3858 * frame.c (frame_debug): Add 'unsigned'.
3859 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3860 add_setshow_zinteger_cmd.
3861 * frame.h: Update the declaration of 'frame_debug'.
3862 * gdbtypes.c (overload_debug): Add 'unsigned'.
3863 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3864 add_setshow_zinteger_cmd.
3865 * inferior.h: Update declaration of 'debug_infrun'.
3866 * infrun.c (debug_infrun): Add 'unsigned'.
3867 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3868 add_setshow_zinteger_cmd.
3869 * jit.c (jit_debug): Add 'unsigned'.
3870 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3871 add_setshow_zinteger_cmd.
3872 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3873 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3874 instead of add_setshow_zinteger_cmd.
3875 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3876 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3877 add_setshow_zinteger_cmd.
3878 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3879 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3880 instead of add_setshow_zinteger_cmd.
3881 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3882 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3883 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3884 intead of add_setshow_zinteger_cmd.
3885 * mips-tdep.c (mips_debug): Add 'unsigned'.
3886 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3887 instead of add_setshow_zinteger_cmd.
3888 * monitor.c (monitor_debug): Add 'unsigned'.
3889 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3890 add_setshow_zinteger_cmd.
3891 * observer.c (observer_debug): Add 'unsigned'.
3892 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3893 add_setshow_zinteger_cmd.
3894 * parse.c (expressiondebug): Add 'unsigned'.
3895 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3896 add_setshow_zinteger_cmd.
3897 * record.c (record_debug): Add 'unsigned'.
3898 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3899 add_setshow_zinteger_cmd.
3900 * record.h: Update the declaration of 'record_debug'.
3901 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3902 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3903 add_setshow_zinteger_cmd.
3904 * serial.c (global_serial_debug_p): Add 'unsigned'.
3905 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3906 add_setshow_zinteger_cmd.
3907 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3908 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3909 add_setshow_zinteger_cmd.
3910 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3911 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3912 add_setshow_zinteger_cmd.
3913 * target.c (targetdebug): Add 'unsigned'.
3914 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3915 add_setshow_zinteger_cmd.
3916 * valops.c (overload_debug): Add 'unsigned'.
3917 * varobj.c (varobjdebug): Add 'unsigned'.
3918 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3919 add_setshow_zinteger_cmd.
3920 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3921 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3922 instead of add_setshow_zinteger_cmd.
3924 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3925 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3926 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3927 instead of add_setshow_zinteger_cmd.
3928 * gdbarch.c, gdbarch.h: Re-generated.
3932 * nto-tdep.c: Don't include cli/cli-decode.h and
3934 (_initialize_nto_tdep): Remove.
3935 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3937 Remove macro nto_internal_debugging.
3941 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3942 (mep-*-*) [gdb_target_obs]: Likewise.
3946 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3947 linux_get_siginfo_type.
3951 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3953 (call_function_by_hand) <ON_STACK>: Call write_memory with
3954 gdbarch_breakpoint_from_pc, if possible.
3955 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3960 * tracepoint.c: Add 'static' for some variables.
3964 * go32-nat.c: Declare _initialize_go32_nat.
3965 * ser-go32.c: Declare _initialize_ser_dos.
3966 * top.c (do_chdir_cleanup): Add 'static'.
3970 * linespec.c (linespec_lex_number): A number followed
3971 by quotes is a valid number, too.
3975 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3979 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3980 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3984 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3985 invalid or reevaluated to prevent prevent references to possibly
3986 delete'd type objects being left in the varobj.
3991 * copying.awk: Print buffer-read-only and vi ro markers.
3992 * copying.c: Rebuild.
3993 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3994 * gdbarch.c, gdbarch.h: Rebuild.
3995 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3996 buffer-read-only and vi ro markers.
3997 * features/arm-with-iwmmxt.c: Rebuild.
3998 * features/arm-with-m-fpa-layout.c: Rebuild.
3999 * features/arm-with-m-vfp-d16.c: Rebuild.
4000 * features/arm-with-m.c: Rebuild.
4001 * features/arm-with-neon.c: Rebuild.
4002 * features/arm-with-vfpv2.c: Rebuild.
4003 * features/arm-with-vfpv3.c: Rebuild.
4004 * features/i386/amd64-avx-linux.c: Rebuild.
4005 * features/i386/amd64-avx.c: Rebuild.
4006 * features/i386/amd64-linux.c: Rebuild.
4007 * features/i386/amd64.c: Rebuild.
4008 * features/i386/i386-avx-linux.c: Rebuild.
4009 * features/i386/i386-avx.c: Rebuild.
4010 * features/i386/i386-linux.c: Rebuild.
4011 * features/i386/i386-mmx-linux.c: Rebuild.
4012 * features/i386/i386-mmx.c: Rebuild.
4013 * features/i386/i386.c: Rebuild.
4014 * features/i386/x32-avx-linux.c: Rebuild.
4015 * features/i386/x32-avx.c: Rebuild.
4016 * features/i386/x32-linux.c: Rebuild.
4017 * features/i386/x32.c: Rebuild.
4018 * features/mips-dsp-linux.c: Rebuild.
4019 * features/mips-linux.c: Rebuild.
4020 * features/mips64-dsp-linux.c: Rebuild.
4021 * features/mips64-linux.c: Rebuild.
4022 * features/rs6000/powerpc-32.c: Rebuild.
4023 * features/rs6000/powerpc-32l.c: Rebuild.
4024 * features/rs6000/powerpc-403.c: Rebuild.
4025 * features/rs6000/powerpc-403gc.c: Rebuild.
4026 * features/rs6000/powerpc-405.c: Rebuild.
4027 * features/rs6000/powerpc-505.c: Rebuild.
4028 * features/rs6000/powerpc-601.c: Rebuild.
4029 * features/rs6000/powerpc-602.c: Rebuild.
4030 * features/rs6000/powerpc-603.c: Rebuild.
4031 * features/rs6000/powerpc-604.c: Rebuild.
4032 * features/rs6000/powerpc-64.c: Rebuild.
4033 * features/rs6000/powerpc-64l.c: Rebuild.
4034 * features/rs6000/powerpc-7400.c: Rebuild.
4035 * features/rs6000/powerpc-750.c: Rebuild.
4036 * features/rs6000/powerpc-860.c: Rebuild.
4037 * features/rs6000/powerpc-altivec32.c: Rebuild.
4038 * features/rs6000/powerpc-altivec32l.c: Rebuild.
4039 * features/rs6000/powerpc-altivec64.c: Rebuild.
4040 * features/rs6000/powerpc-altivec64l.c: Rebuild.
4041 * features/rs6000/powerpc-cell32l.c: Rebuild.
4042 * features/rs6000/powerpc-cell64l.c: Rebuild.
4043 * features/rs6000/powerpc-e500.c: Rebuild.
4044 * features/rs6000/powerpc-e500l.c: Rebuild.
4045 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
4046 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
4047 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
4048 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
4049 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
4050 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
4051 * features/rs6000/powerpc-vsx32.c: Rebuild.
4052 * features/rs6000/powerpc-vsx32l.c: Rebuild.
4053 * features/rs6000/powerpc-vsx64.c: Rebuild.
4054 * features/rs6000/powerpc-vsx64l.c: Rebuild.
4055 * features/rs6000/rs6000.c: Rebuild.
4056 * features/s390-linux32.c: Rebuild.
4057 * features/s390-linux32v1.c: Rebuild.
4058 * features/s390-linux32v2.c: Rebuild.
4059 * features/s390-linux64.c: Rebuild.
4060 * features/s390-linux64v1.c: Rebuild.
4061 * features/s390-linux64v2.c: Rebuild.
4062 * features/s390x-linux64.c: Rebuild.
4063 * features/s390x-linux64v1.c: Rebuild.
4064 * features/s390x-linux64v2.c: Rebuild.
4065 * features/tic6x-c62x-linux.c: Rebuild.
4066 * features/tic6x-c62x.c: Rebuild.
4067 * features/tic6x-c64x-linux.c: Rebuild.
4068 * features/tic6x-c64x.c: Rebuild.
4069 * features/tic6x-c64xp-linux.c: Rebuild.
4070 * features/tic6x-c64xp.c: Rebuild.
4074 * c-exp.y (classify_name): Avoid assignment in condition.
4078 * amd64-windows-tdep.c: Include "frame.h".
4079 (amd64_windows_skip_trampoline_code): New function.
4080 (amd64_windows_init_abi): Add trampoline registration.
4084 * tracepoint.c (cur_traceframe_number): Remove.
4085 (set_tfile_traceframe): Remove.
4086 (tfile_trace_find, tfile_fetch_registers): Update callers.
4087 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4088 (tfile_open, tfile_trace_find): Likewise.
4092 * thread.c (switch_to_thread): Don't call registers_changed.
4096 * Makefile.in (SFILES): Remove objc-exp.y.
4097 (YYFILES): Remove objc-exp.c.
4098 (YYOBJ): Remove objc-exp.o.
4099 (local-maintainer-clean): Don't mention objc-exp.c.
4100 * c-exp.y: Include objc-lang.h.
4101 (%union) <class>: New field.
4102 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4103 (exp): Clone subscript production for OBJC_LBRAC. Add various
4104 Objective C productions.
4105 (msglist, msgarglist, msgarg): New productions.
4106 (array_mod, func_mod, operator): Clone productions for
4108 (parse_string_or_char): Handle '@' strings.
4109 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4110 (classify_name): Check la_name_of_this. Recognize ObjC class
4112 * objc-exp.y: Remove.
4113 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4114 * objc-lang.h (objc_parse, objc_error): Don't declare.
4118 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4122 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4127 * copying.c: Rebuild.
4128 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4133 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4135 (print_objfile_statistics): Likewise.
4136 (maintenance_print_symbols): Likewise.
4137 (maintenance_print_msymbols): Likewise.
4138 (maintenance_print_objfiles): Likewise.
4139 * psymtab.c (print_partial_symbols): Call QUIT.
4140 (maintenance_print_psymbols): Likewise. Don't modify
4142 * copying.c (show_copying_command): Don't modify immediate_quit.
4143 (show_warranty_command): Likewise.
4144 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4148 * linespec.c (linespec_lexer_lex_number): The input
4149 is also a valid number if the next character is a comma
4154 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4159 * machoread.c: Include gdb_bfd.h.
4163 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4168 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4170 (dwarf2_evaluate_loc_desc): Likewise.
4171 (dwarf2_loc_desc_needs_frame): Likewise.
4172 (locexpr_describe_location_1): Likewise.
4173 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4175 (struct dwarf2_loclist_baton): Likewise.
4176 * dwarf2read.c (struct dwarf_block): Likewise.
4177 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4178 (decode_locdesc): Expand SIZE and I to size_t.
4182 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4186 * doublest.c (convert_doublest_to_floatformat): If the exponent
4187 is too small, treat the value as zero. If the exponent is too
4188 large, treat the value as infinity.
4192 * configure.ac: Add --enable-lmcheck configure option.
4193 * configure: Regenerate.
4197 * NEWS: Mention maint info bfds.
4198 * gdb_bfd.c (all_bfds): New global.
4199 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4200 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4205 * configure.tgt: Add v850*-*-rtems*.
4209 * macrotab.c (macro_bcache_str): Remove cast.
4213 * linespec.c (linespec_lexer_lex_number): Update comments,
4214 change the return and add check to make sure the input is
4215 the decimal numbers.
4216 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4217 false, call linespec_lexer_lex_string.
4221 * symfile.c (symbol_file_add): Don't open BFD twice.
4225 * breakpoint.c (create_breakpoint): Store condition for pending
4230 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4231 (m68k_return_value): Handle complex types like structures.
4232 (m68k_svr4_return_value): Likewise.
4236 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4237 parameters to bfd_get_section_name.
4241 * cli/cli-setshow.c: Handle case 'var_uinteger'
4242 and 'var_zuninteger' together. Handle case 'var_integer' and
4243 'var_zinteger' together.
4247 * linespec.c (convert_linespec_to_sal): Don't add
4248 any symbols to the result vector if symbol_to_sal
4253 * linespec.c (decode_objc): Record the function name
4258 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4260 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4261 (map_vmap): Acquire a reference to the BFD.
4265 * p-valprint.c (pascal_object_print_value): Replace potentially
4266 unsafe alloca with xmalloc/xfree.
4267 * valops.c (search_struct_method): Likewise.
4271 * solib-svr4.c (enable_break): Update.
4272 * bfd-target.h (target_bfd_reopen): Update documentation.
4276 * symfile.c (separate_debug_file_exists): Update.
4277 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4278 (reread_symbols): Update.
4279 * elfread.c (build_id_verify): Update.
4280 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4281 bfd_open_maybe_remote.
4285 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4289 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4291 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4293 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4294 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4296 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4297 * objfiles.c (allocate_objfile): Acquire a new reference.
4298 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4299 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4300 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4301 a cleanup for 'nbfd'.
4302 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4304 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4305 make a cleanup for 'abfd'.
4306 (symbol_file_add): Make a BFD cleanup.
4310 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4311 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4312 * corelow.c (core_open): Use gdb_bfd_fopen.
4313 * dsrec.c (load_srec): Use gdb_bfd_openr.
4314 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4315 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4316 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4317 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4318 (gdb_bfd_fdopenr): New functions.
4319 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4320 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4321 (gdb_bfd_fdopenr): Declare.
4322 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4323 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4324 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4325 gdb_bfd_openr_next_archived_file.
4326 (macho_check_dsym): Use gdb_bfd_openr.
4327 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4328 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4329 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4330 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4332 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4333 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4334 gdb_bfd_openr_next_archived_file.
4335 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4337 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4339 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4340 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4341 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4342 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4343 (symfile_bfd_open): Use gdb_bfd_fopen.
4344 (generic_load): Use gdb_bfd_openr.
4345 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4349 * bfd-target.c (target_bfd_reopen): Update.
4350 * cli/cli-dump.c (bfd_openr_with_cleanup)
4351 (bfd_openw_with_cleanup): Update.
4352 * corelow.c (core_open): Update.
4353 * dsrec.c (load_srec): Update.
4354 * exec.c (exec_file_attach): Update.
4355 * gcore.c (create_gcore_bfd): Update.
4356 * gdb_bfd.c (gdb_bfd_ref): Return void.
4357 (gdb_bfd_open): Update.
4358 * gdb_bfd.h (gdb_bfd_ref): Return void.
4360 * jit.c (jit_bfd_try_read_symtab): Update.
4361 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4362 * machoread.c (macho_symfile_read_all_oso): Update.
4363 (macho_check_dsym): Update.
4364 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4365 * remote-m32r-sdi.c (m32r_load): Update.
4366 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4367 * rs6000-nat.c (add_vmap): Update.
4368 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4370 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4371 * solib-spu.c (spu_bfd_open): Update.
4372 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4373 * spu-linux-nat.c (spu_bfd_open): Update.
4374 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4375 (generic_load): Update.
4376 * windows-nat.c (windows_make_so): Update.
4380 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4384 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4385 SIGTRAMP_FRAME unwinding.
4389 * NEWS: Document new options "set/show use-deprecated-index-sections",
4390 and delete reference to --use-deprecated-index-sections.
4391 * symfile.h (use_deprecated_index_sections): Delete.
4392 * dwarf2read.c (use_deprecated_index_sections): Make static.
4393 (read_index_from_section): Update wording of how to load
4394 deprecated index sections.
4395 (_initialize_dwarf2_read): New options
4396 "set/show use-deprecated-index-sections".
4397 * main.c (captured_main): Delete --use-deprecated-index-sections.
4404 * infrun.c (handle_inferior_event) <new thread>: Don't special
4405 case minus_one_ptid.
4406 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4407 * linux-thread-db.c (thread_get_info_callback): Don't return early
4408 if the thread is zombie.
4409 (thread_from_lwp): Change return type to void. Rewrite stale
4411 (attach_thread): Don't return early if the thread is zombie,
4412 instead set its "dying" flag.
4413 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4414 (find_new_threads_callback): Don't return early if the thread is
4419 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4420 * target.c (target_wait): Likewise.
4421 (str_comma_list_concat_elem, do_option, target_options_to_string):
4423 * target.h (target_options_to_string): Declare.
4428 * dwarf2read.c (dwarf_decode_macros)
4429 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4430 DW_MACRO_GNU_transparent_include_alt>: New cases.
4431 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4432 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4436 * dwarf2read.c (try_open_dwo_file): Don't call
4437 gdb_bfd_stash_filename.
4441 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4442 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4443 (i386_process_record): Tweak description comments.
4447 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4448 (i386_process_record): Use record_read_memory.
4449 * record.c (record_read_memory): New function.
4450 (record_arch_list_add_mem, record_exec_insn): Use
4452 * record.h (record_read_memory): Declare.
4456 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4461 * record.c (record_resume): Ask the target beneath to report all
4466 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4467 there's no section at address zero.
4468 (dwarf2_record_block_ranges): Ditto.
4472 * command.h, remote.c: Fix a typo in comment.
4477 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4478 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4479 OP_DECLTYPE>: New cases.
4480 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4481 (type_exp): Add new productions.
4482 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4484 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4486 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4487 OP_DECLTYPE>: New case.
4488 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4490 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4491 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4495 * c-exp.y (enum token_flags): New.
4496 (struct token) <cxx_only>: Remove.
4498 (tokentab3, tokentab2, ident_tokens): Update.
4499 (lex_one_token): Update. Handle FLAG_SHADOW.
4503 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4504 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4505 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4506 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4507 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4508 type_exp production where appropriate.
4509 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4510 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4511 <UNOP_MEMVAL_TYPE>: New case.
4512 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4513 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4514 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4515 <UNOP_MEMVAL_TYPE>: New case.
4516 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4517 UNOP_REINTERPRET_CAST>: Update.
4518 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4519 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4520 UNOP_REINTERPRET_CAST>: Update.
4521 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4522 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4523 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4529 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4530 and case 'var_optional_filename' together.
4531 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4532 instead of add_setshow_optional_filename_cmd for setshow command
4533 'args'. Set completer for 'set args'.
4537 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4538 * common/gdb_vecs.c: New file, contents from utils.c.
4539 * common/host-defs.h: New file, contents from defs.h.
4540 * utils.h: New file, contents from defs.h.
4541 * defs.h: Move all declarations of objects defined in utils.c
4542 to utils.h (except QUIT() and related).
4543 #include "utils.h", "host-defs.h".
4544 * probe.h (probe_p): Move here from gdb_vecs.h.
4545 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4546 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4547 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4548 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4549 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4550 (COMMON_OBS): Add gdb_vecs.o.
4551 (gdb_vecs.o): New rule.
4555 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4556 parameter. If non-zero, use SYMNAME as the canonical name
4559 (convert_linespec_to_sals): Use add_sal_to_sals for
4561 (decode_line_full): No need to "fill in missing canonical names"
4562 anymore. Simply make cleanups for the allocated names.
4566 * linespec.c (struct linespec): Constify expression,
4567 source_filename, function_name, and label_name.
4568 (symbol_not_found_error): Make all parameters const.
4569 (linespec_parser_delete): No need to check for NULL
4570 when using xfree. Cast const char * to char * for xfree.
4574 * breakpoint.c (invalid_thread_id_error): New function.
4575 (find_condition_and_thread): Use invalid_thread_id_error.
4576 (watch_command_1): Likewise.
4580 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4581 * contrib/cc-with-tweaks.sh: New file.
4585 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4586 (locate_dwz_sections): Recognize .gdb_index.
4587 (create_cus_from_index_list): New function.
4588 (create_cus_from_index): Use it. Handle .dwz data.
4589 (read_index_from_section): New function, extracted from
4591 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4596 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4597 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4598 <is_dwz>: New field.
4599 (struct dwz_file): New.
4600 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4601 (locate_dwz_sections, dwarf2_get_dwz_file)
4602 (get_abbrev_section_for_cu): New functions.
4603 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4604 (read_and_check_type_unit_head): Add abbrev_section argument.
4605 (create_debug_types_hash_table): Update.
4606 (init_cutu_and_read_dies): Use proper abbrev section.
4607 (init_cutu_and_read_dies_no_follow): Likewise.
4608 (set_partial_user): Do nothing if PST==NULL.
4609 (read_comp_units_from_section): New function.
4610 (create_all_comp_units): Use it.
4611 (scan_partial_symbols, partial_die_parent_scope): Update.
4612 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4613 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4614 (find_partial_die): Add offset_in_dwz argument. Update.
4615 (guess_partial_die_structure_name, fixup_partial_die): Update.
4616 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4617 DW_FORM_GNU_strp_alt.
4618 (read_indirect_string_from_dwz): New function.
4619 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4620 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4621 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4622 (follow_die_offset): Add offset_in_dwz argument.
4623 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4624 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4625 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4626 Handle new macro forms.
4627 (dwarf_decode_macros): Update.
4628 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4629 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4630 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4631 (create_debug_types_hash_table): Use correct abbrev section.
4632 (get_debug_line_section): New function.
4633 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4634 (process_full_comp_unit): Pass 'required' argument to
4635 end_symtab_get_static_block.
4636 * buildsym.h (end_symtab_get_static_block): Update.
4637 * buildsym.c (end_symtab_get_static_block): Add 'required'
4639 (end_symtab, end_expandable_symtab): Update.
4643 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4645 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4646 (zlib_decompress_section): Remove.
4647 (dwarf2_read_section): Use gdb_bfd_map_section.
4648 (munmap_section_buffer): Remove.
4649 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4650 munmap_section_buffer.
4651 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4652 (struct gdb_bfd_section_data): New.
4653 (free_one_bfd_section): New function.
4654 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4655 (get_section_descriptor, zlib_decompress_section)
4656 (gdb_bfd_map_section): New functions.
4657 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4661 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4665 * gdb_bfd.c (struct gdb_bfd_data): New.
4666 (gdb_bfd_cache): New global.
4667 (struct gdb_bfd_cache_search): New.
4668 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4669 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4670 * gdb_bfd.h (gdb_bfd_open): Declare.
4674 * utils.c (make_cleanup_bfd_unref): Rename from
4675 make_cleanup_bfd_close.
4676 * defs.h (make_cleanup_bfd_unref): Rename from
4677 make_cleanup_bfd_close.
4678 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4679 (bfd_openw_with_cleanup): Update.
4680 * corelow.c (core_open): Update.
4681 * dsrec.c (load_srec): Update.
4682 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4683 * remote-m32r-sdi.c (m32r_load): Update.
4684 * remote-mips.c (mips_load_srec): Update.
4685 (pmon_load_fast): Update.
4686 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4688 (darwin_bfd_open): Update.
4689 * solib.c (solib_bfd_fopen): Update.
4690 * symfile-mem.c (symbol_file_add_from_memory): Update.
4691 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4692 (symfile_bfd_open): Update.
4693 (generic_load): Update.
4697 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4698 (pmon_load_fast): Likewise.
4699 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4700 (m32r_upload_command): Likewise.
4701 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4702 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4703 Use make_cleanup_bfd_close.
4707 * symfile.c (symfile_bfd_open): Don't copy name. Call
4708 gdb_bfd_stash_filename.
4709 (load_command): Open the new BFD before freeing the old.
4710 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4711 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4712 Call gdb_bfd_stash_filename.
4713 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4714 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4715 gdb_bfd_stash_filename.
4716 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4717 Free found_pathname.
4718 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4719 gdb_bfd_stash_filename.
4720 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4721 * machoread.c (macho_add_oso_symfile): Call
4722 gdb_bfd_stash_filename.
4723 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4724 gdb_bfd_stash_filename.
4725 (macho_check_dsym): Don't copy filename. Call
4726 gdb_bfd_stash_filename.
4727 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4728 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4729 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4730 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4731 * exec.c (exec_close): Don't free the BFD's filename.
4732 (exec_file_attach): Don't copy the filename. Call
4733 gdb_bfd_stash_filename.
4734 * corelow.c (core_close): Don't free the BFD's filename.
4735 (core_open): Call gdb_bfd_stash_filename.
4736 * corefile.c (reopen_exec_file): Remove #if 0 code.
4737 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4739 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4743 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4745 (free_dwo_file): Use gdb_bfd_unref.
4746 * cli/cli-dump.c: Include gdb_bfd.h.
4747 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4748 (bfd_openr_with_cleanup): Likewise.
4749 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4751 * utils.c: Include gdb_bfd.h.
4752 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4753 * symfile.c: Include gdb_bfd.h.
4754 (separate_debug_file_exists): Use gdb_bfd_unref.
4755 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4756 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4757 (generic_load): Use gdb_bfd_ref.
4758 (reread_symbols): Use gdb_bfd_unref.
4759 * symfile-mem.c: Include gdb_bfd.h.
4760 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4761 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4762 * solib.c: Include gdb_bfd.h.
4763 (solib_bfd_fopen): Use gdb_bfd_ref.
4764 (solib_bfd_open): Use gdb_bfd_unref.
4765 (free_so_symbols): Use gdb_bfd_unref.
4766 (reload_shared_libraries_1): Use gdb_bfd_unref.
4767 * solib-spu.c: Include gdb_bfd.h.
4768 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4769 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4771 * solib-frv.c: Include gdb_bfd.h.
4772 (enable_break2): Use gdb_bfd_unref.
4773 * solib-dsbt.c: Include gdb_bfd.h.
4774 (enable_break2): Use gdb_bfd_unref.
4775 * solib-darwin.c: Include gdb_bfd.h.
4776 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4778 (darwin_bfd_open): Use gdb_bfd_unref.
4779 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4780 * remote-mips.c: Include gdb_bfd.h.
4781 (mips_load_srec): Use gdb_bfd_ref.
4782 (pmon_load_fast): Use gdb_bfd_ref.
4783 * remote-m32r-sdi.c: Include gdb_bfd.h.
4784 (m32r_load): Use gdb_bfd_ref.
4785 * record.c: Include gdb_bfd.h.
4786 (record_save_cleanups): Use gdb_bfd_unref.
4787 (cmd_record_save): Use gdb_bfd_unref.
4788 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4790 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4791 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4792 * objfiles.c: Include gdb_bfd.h.
4793 (free_objfile): Use gdb_bfd_unref.
4794 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4796 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4797 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4798 (macho_check_dsym): Likewise.
4799 * m32r-rom.c: Include gdb_bfd.h.
4800 (m32r_load): Use gdb_bfd_ref.
4801 (m32r_upload_command): Use gdb_bfd_ref.
4802 * jit.c: Include gdb_bfd.h.
4803 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4804 * gdb_bfd.h: New file.
4805 * gdb_bfd.c: New file.
4806 * gcore.c: Include gdb_bfd.h.
4807 (create_gcore_bfd): Use gdb_bfd_ref.
4808 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4809 (gcore_command): Use gdb_bfd_unref.
4810 * exec.c: Include gdb_bfd.h.
4811 (exec_close): Use gdb_bfd_unref.
4812 (exec_close_1): Use gdb_bfd_unref.
4813 (exec_file_attach): Use gdb_bfd_ref.
4814 * elfread.c: Include gdb_bfd.h.
4815 (build_id_verify): Use gdb_bfd_unref.
4816 * dsrec.c: Include gdb_bfd.h.
4817 (load_srec): Use gdb_bfd_ref.
4818 * corelow.c: Include gdb_bfd.h.
4819 (core_close): Use gdb_bfd_unref.
4820 (core_open): Use gdb_bfd_ref.
4821 * bfd-target.c: Include gdb_bfd.h.
4822 (target_bfd_xclose): Use gdb_bfd_unref.
4823 (target_bfd_reopen): Use gdb_bfd_ref.
4824 * Makefile.in (SFILES): Add gdb_bfd.c.
4825 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4826 (COMMON_OBS): Add gdb_bfd.o.
4830 * breakpoint.c (find_condition_and_thread): Initialize
4832 (create_breakpiont): find_condition_and_thread will now
4833 initialize COND_STRING, THREAD, and REST (and TASK).
4834 (addr_string_to_sals): Likewise.
4838 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4839 Pull the single step breakpoints out of the target.
4843 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4844 * stap-probe.c (compile_probe_arg): Likewise.
4848 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4849 (elf_compile_to_ax): Likewise.
4850 * infrun.c (insert_exception_resume_from_probe): Likewise.
4851 (check_exception_resume): Remove `objfile' variable.
4852 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4853 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4854 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4855 (compare_entries): Rename to...
4856 (compare_probes): ...this. Adjust function to work with
4857 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4859 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4861 (print_ui_out_info): Adjust argument to be `struct probe *'.
4862 (info_probes_for_ops): Adjust internal computations to use
4864 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4865 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4866 gen_info_probes_table_values>: Remove `objfile' argument.
4867 (struct probe) <objfile>: New field.
4868 (find_probe_by_pc): Remove `objfile' argument.
4869 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4870 (stap_get_probe_argument_count): Likewise.
4871 (stap_get_arg): Likewise.
4872 (stap_evaluate_probe_argument): Likewise.
4873 (stap_compile_to_ax): Likewise.
4874 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4875 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4876 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4877 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4878 sym_compile_to_ax>: Likewise.
4883 * defs.h (GDB_MI_MSG_WIDTH): New.
4884 * ser_base (ser_base_read_error_fd): New function.
4885 (do_ser_base_readchar): Poll error file descriptor as well as
4887 (generic_readchar): Refactor error handling.
4891 * NEWS: Create a new section for the next release branch.
4892 Rename the section of the current branch, now that it has
4897 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4898 * version.in: Bump version to 7.5.50.20120718-cvs.
4902 * linespec.c (linespec_parse_line_offset): Make parameter
4908 * f-valprint.c (info_common_command): New variable frame_id.
4909 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4910 * printcmd.c (print_variable_and_value): Extend function comment.
4911 Add comment for invalidated FRAME.
4912 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4913 FI form FRAME_ID after each print_frame_local_vars.
4914 (struct print_variable_and_value_data): Change frame to frame_id.
4915 (do_print_variable_and_value): New variable frame, initialize it from
4916 p->frame_id. Add comment for invalidated FRAME.
4917 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4918 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4919 for invalidated FRAME.
4924 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4929 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4933 * dwarf2read.c (stmt_list_hash): New struct.
4934 (type_unit_group): Embed "per_cu" member, remove pointer.
4935 New union member "t", move member "tus" into it, all uses updated.
4936 New member "hash", replaces member "line_offset, all uses updated.
4937 (quick_file_names): Replace member "offset" with "hash", all uses
4939 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4940 (hash_file_name_entry, eq_file_name_entry): Call them.
4941 (hash_type_unit_group, eq_type_unit_group): Ditto.
4942 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4943 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4944 (dw2_get_file_names): Update.
4945 (create_type_unit_group): Replace "per_cu" arg with "cu".
4946 All callers updated. Fix "quick" (.gdb_index) handling.
4947 (get_type_unit_group): Replace "per_cu" arg with "cu".
4948 All callers updated.
4949 (build_type_unit_groups): Don't reset tu_stats.
4951 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4952 "tab_cur_size". Change member "tab" to be a htab_t.
4953 (create_filename_seen_cache): Update.
4954 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4955 (filename_seen): Update.
4959 * symtab.c (filename_seen): Update comment.
4964 * buildsym.c (end_symtab_1): Split it to ...
4965 (end_symtab_get_static_block): ... this ...
4966 (end_symtab_from_static_block): ... and this function.
4967 (end_symtab, end_expandable_symtab): Call them.
4968 * buildsym.h (end_symtab_get_static_block)
4969 (end_symtab_from_static_block): New declarations.
4970 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4971 Set its valid CU ranges.
4975 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4976 DW_OP_GNU_parameter_ref.
4980 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4981 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4985 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4986 (filename_seen_cache): New struct.
4987 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4988 (create_filename_seen_cache): New function.
4989 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4990 (filename_seen): Delete arg "first". New arg "cache". All callers
4992 (output_source_filename_data): New struct.
4993 (output_source_filename): Delete arg "first". New arg "data".
4994 All callers updated.
4995 (sources_info): Delete local "first". New locals "data", "cleanups".
4996 Rewrite to use filename_seen_cache.
4997 (add_partial_filename_data): Delete member "first". New member
4998 "filename_seen_cache". All uses updated.
4999 (make_source_files_completion_list): Rewrite to use
5000 filename_seen_cache.
5004 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
5009 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
5010 all_type_unit_groups, type_unit_groups, tu_stats.
5011 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
5012 All uses updated. Add type_unit_group to union "s".
5013 (type_unit_group): New struct.
5014 (IS_TYPE_UNIT_GROUP): New macro.
5015 (abbrev_table): Delete unused member "section".
5016 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
5017 (dw2_get_cu): Assert not used with type_unit_group.
5018 (dw2_get_primary_cu): New function.
5019 (dw2_build_type_unit_groups_reader): New function.
5020 (dw2_build_type_unit_groups): New function.
5021 (dw2_get_file_names): Assert not called on type units.
5022 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
5023 Redo loop to iterate over type unit groups instead of type units.
5024 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
5025 (read_abbrev_offset): New function.
5026 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
5028 (create_partial_symtab): New function.
5029 (process_psymtab_comp_unit_reader): Assert not used with type units.
5030 Call create_partial_symtab.
5031 (process_psymtab_type_unit): Delete.
5032 (hash_type_unit_group, eq_type_unit_group): New functions.
5033 (allocate_type_unit_groups_table): New function.
5034 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
5035 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
5036 (create_type_unit_group, get_type_unit_group): New functions.
5037 (tu_abbrev_offset): New struct.
5038 (sort_tu_by_abbrev_offset): New function.
5039 (add_type_unit_group_to_table): New function.
5040 (build_type_unit_groups): New function.
5041 (build_type_psymtabs_reader): New function.
5042 (build_type_psymtab_dependencies): New function.
5043 (build_type_psymtabs): Rewrite.
5044 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
5045 is seen in a type unit.
5046 (process_queue): Move symtab expansion debugging printfs here.
5047 Call process_full_type_unit for type units.
5048 (compute_symtab_includes): Assert not called for type units.
5049 (process_cu_includes): Don't call compute_symtab_includes for
5051 (process_full_type_unit): New function.
5052 (process_imported_unit_die): Flag an error if called for type units.
5053 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
5054 updated. Assert not called for type units.
5055 (read_file_scope): Call dwarf2_start_symtab.
5056 (setup_type_unit_groups): New function.
5057 (read_type_unit_scope): Rewrite.
5058 (abbrev_table_read_table): Initialize abbrev_table->offset.
5059 (abbrev_table_free_cleanup): New function.
5060 (dwarf2_start_symtab): New function.
5061 (load_full_type_unit): Assert not called for type unit groups.
5062 * buildsym.c (finish_block_internal): New arg "expandable".
5063 All callers updated.
5064 (start_symtab): Move most contents to ...
5065 (restart_symtab): ... here. New function.
5066 (reset_symtab_globals): New function.
5067 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
5068 Call reset_symtab_globals.
5069 (end_symtab, end_expandable_symtab): New functions.
5070 (set_missing_symtab, augment_type_symtab): New functions.
5071 * buildsym.h (end_expandable_symtab): Declare.
5072 (augment_type_symtab, restart_symtab): Declare.
5073 * psympriv.h (struct partial_symtab): New member "anonymous".
5074 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5076 (read_psymtabs_with_filename): Ditto.
5077 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5078 (expand_symtabs_matching_via_partial): Ditto.
5079 (dump_psymtab): Update.
5080 * dictionary.c (dict_add_pending): New function.
5081 * dictionary.h (dict_add_pending): Declare.
5085 * buildsym.c (start_subfile): Remove unnecessary check for
5088 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5090 * dwarf2read.c (load_full_type_unit): Simplify.
5092 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5093 to struct signatured_type **. All uses updated.
5095 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5096 All callers updated.
5100 * c-exp.y (check_parameter_typelist): New function.
5101 (parameter_typelist): Call it.
5102 * eval.c (make_params): Handle '(void)' case.
5103 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5108 * common/linux-ptrace.c: Include gdb_assert.h.
5109 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5110 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5112 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5114 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5115 * linux-nat.c (linux_child_post_attach)
5116 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5120 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5121 nptl <2.7 bug workaround for core files.
5125 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5127 (save_siginfo): Remove.
5128 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5130 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5131 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5132 * linux-nat.h (struct lwp_info): Remove field siginfo.
5136 Code cleanup for the next patch.
5137 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5138 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5140 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5141 (ia64_linux_stopped_data_address):
5142 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5144 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5145 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5146 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5152 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5153 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5157 * c-exp.y (DOTDOTDOT): New token.
5158 (func_mod, exp): Use parameter_typelist.
5159 (parameter_typelist): New production.
5160 (tokentab3): Add "..." token.
5161 * eval.c (make_params): Handle varargs.
5162 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5168 * c-exp.y (%union) <tvec>: Change type.
5169 (func_mod): Now uses <tvec> type.
5170 (exp): Update for tvec change.
5171 (direct_abs_decl): Push the typelist.
5172 (func_mod): Return a typelist.
5173 (nonempty_typelist): Update for tvec change.
5174 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5175 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5176 * parse.c (pop_type_list): New function.
5177 (push_typelist): New function.
5178 (follow_types): Handle tp_function_with_arguments.
5179 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5180 (enum type_pieces) <tp_function_with_arguments>: New constant.
5181 (union type_stack_elt) <typelist_val>: New field.
5182 (push_typelist): Declare.
5186 * c-exp.y (%union) <type_stack>: New field.
5187 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5188 (ptr_operator_ts): New production.
5190 * parse.c (type_stack_reserve): New function.
5191 (check_type_stack_depth): Use it.
5192 (pop_type_stack, append_type_stack, push_type_stack)
5193 (get_type_stack, type_stack_cleanup): New functions.
5194 (follow_types): Handle tp_type_stack.
5195 (_initialize_parse): Simplify initialization.
5196 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5198 (union type_stack_elt) <stack_val>: New field.
5199 (get_type_stack, append_type_stack, push_type_stack)
5200 (type_stack_cleanup): Declare.
5204 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5206 (struct type_stack): New.
5207 * parse.c (type_stack, type_stack_size, type_stack_depth):
5209 (type_stack): New global.
5210 (parse_exp_in_context, check_type_stack_depth)
5211 (insert_into_type_stack, insert_type, push_type, push_type_int)
5212 (insert_type_address_space, pop_type, pop_type_int)
5213 (_initialize_parse): Update.
5217 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5222 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5227 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5228 alloca with xmalloc/xfree.
5232 * MAINTAINERS (Write After Approval): Add myself to the list.
5236 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5240 * ax-gdb.c (cli/cli-utils.h): New include.
5241 (linespec.h): Ditto.
5242 (agent_eval_command_one): New function.
5243 (agent_command_1): Ditto.
5244 (agent_command): Call function agent_command_1.
5245 (agent_eval_command): Ditto.
5246 (_initialize_ax_gdb): Change help for "maint agent"
5247 and "maint agent-eval".
5251 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5252 * cli/cli-utils.c (check_for_argument): New function.
5253 * cli/cli-utils.h (check_for_argument): Ditto.
5257 * NEWS: Mention x32 ABI support.
5261 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5262 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5264 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5265 and pc_regnum_from_eax to -1. Update SP regnum from
5266 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5269 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5274 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5275 * dwarf2expr.h: Include gdbtypes.h.
5276 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5277 these forward declarations.
5278 (cu_offset, sect_offset): Move these ...
5279 * gdbtypes.h: Remove include dwarf2expr.h.
5280 (cu_offset, sect_offset): ... here.
5284 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5285 (amd64_linux_sigtramp_code): This.
5286 (amd64_x32_linux_sigtramp_code): New.
5287 (LINUX_SIGTRAMP_LEN): Updated.
5288 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5292 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5296 * config.in: Regenerate.
5297 * configure: Regenerate.
5298 * configure.ac: Remove check for gnu/libc-version.h.
5299 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5301 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5302 variables libc_version, libc_major and libc_minor. Replace sscanf by
5303 inferior_has_bug. Extend the comment.
5307 * linux-thread-db.c (inferior_has_bug): New function.
5308 (thread_db_find_new_threads_silently): Return boolean as checked by
5309 inferior_has_bug, describe it in the comments.
5310 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5311 earlier. Abort the initialization if it returned non-zero.
5312 (thread_db_new_objfile): Exclude debug files.
5313 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5318 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5319 related to queue management.
5321 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5322 instead of "debug dwarf2-die" in debugging printfs.
5323 (create_debug_info_hash_table_reader): Ditto.
5324 (create_debug_info_hash_table): Ditto.
5325 (init_dwo_file): Ditto.
5326 (init_cutu_and_read_dies): Add debugging printf.
5327 (init_cutu_and_read_dies_no_follow): Ditto.
5328 (process_psymtab_comp_unit_reader): Ditto.
5332 Add target-side support for dynamic printf.
5333 * NEWS: Mention the additional style.
5334 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5335 (struct bp_location): New field cmd_bytecode.
5336 * breakpoint.c: Include format.h.
5337 (disconnected_dprintf): New global.
5338 (parse_cmd_to_aexpr): New function.
5339 (build_target_command_list): New function.
5340 (insert_bp_location): Call it.
5341 (remove_breakpoints_pid): Skip dprintf breakpoints.
5342 (print_one_breakpoint_location): Ditto.
5343 (dprintf_style_agent): New global.
5344 (dprintf_style_enums): Add dprintf_style_agent.
5345 (update_dprintf_command_list): Add agent case.
5346 (agent_printf_command): New function.
5347 (_initialize_breakpoint): Add new commands.
5348 * common/ax.def (printf): New bytecode.
5349 * ax.h (ax_string): Declare.
5350 * ax-gdb.h (gen_printf): Declare.
5351 * ax-gdb.c: Include cli-utils.h, format.h.
5352 (gen_printf): New function.
5353 (maint_agent_print_command): New function.
5354 (_initialize_ax_gdb): Add maint agent-printf command.
5355 * ax-general.c (ax_string): New function.
5356 (ax_print): Add printf disassembly.
5357 * Makefile.in (SFILES): Add format.c
5358 (COMMON_OBS): Add format.o.
5359 * common/format.h: New file.
5360 * common/format.c: New file.
5361 * printcmd.c: Include format.h.
5362 (ui_printf): Call parse_format_string.
5363 * remote.c (remote_state): New field breakpoint_commands.
5364 (PACKET_BreakpointCommands): New enum.
5365 (remote_breakpoint_commands_feature): New function.
5366 (remote_protocol_features): Add new BreakpointCommands entry.
5367 (remote_can_run_breakpoint_commands): New function.
5368 (remote_add_target_side_commands): New function.
5369 (remote_insert_breakpoint): Call it.
5370 (remote_insert_hw_breakpoint): Ditto.
5371 (_initialize_remote): Add new packet configuration for
5372 target-side breakpoint commands.
5373 * target.h (struct target_ops): New field
5374 to_can_run_breakpoint_commands.
5375 (target_can_run_breakpoint_commands): New macro.
5376 * target.c (update_current_target): Handle
5377 to_can_run_breakpoint_commands.
5381 Execute -ix and -iex only after system and user gdbinit files.
5382 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5383 processing down after gdbinit files.
5387 Add fnmatch-gnu module.
5388 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5389 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5390 * gnulib/aclocal.m4: Regenerate.
5391 * gnulib/config.in: Regenerate.
5392 * gnulib/configure: Regenerate.
5393 * gnulib/import/dummy.c: Remove.
5394 * gnulib/import/Makefile.am: Regenerate.
5395 * gnulib/import/Makefile.in: Likewise.
5396 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5397 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5398 * gnulib/import/alloca.c: New file.
5399 * gnulib/import/alloca.in.h: Likewise.
5400 * gnulib/import/config.charset: Likewise.
5401 * gnulib/import/fnmatch.c: Likewise.
5402 * gnulib/import/fnmatch.in.h: Likewise.
5403 * gnulib/import/fnmatch_loop.c: Likewise.
5404 * gnulib/import/localcharset.c: Likewise.
5405 * gnulib/import/localcharset.h: Likewise.
5406 * gnulib/import/m4/alloca.m4: Likewise.
5407 * gnulib/import/m4/codeset.m4: Likewise.
5408 * gnulib/import/m4/configmake.m4: Likewise.
5409 * gnulib/import/m4/fcntl-o.m4: Likewise.
5410 * gnulib/import/m4/fnmatch.m4: Likewise.
5411 * gnulib/import/m4/glibc21.m4: Likewise.
5412 * gnulib/import/m4/localcharset.m4: Likewise.
5413 * gnulib/import/m4/locale-fr.m4: Likewise.
5414 * gnulib/import/m4/locale-ja.m4: Likewise.
5415 * gnulib/import/m4/locale-zh.m4: Likewise.
5416 * gnulib/import/m4/mbrtowc.m4: Likewise.
5417 * gnulib/import/m4/mbsinit.m4: Likewise.
5418 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5419 * gnulib/import/m4/mbstate_t.m4: Likewise.
5420 * gnulib/import/m4/stdbool.m4: Likewise.
5421 * gnulib/import/m4/wchar_h.m4: Likewise.
5422 * gnulib/import/m4/wctype_h.m4: Likewise.
5423 * gnulib/import/m4/wint_t.m4: Likewise.
5424 * gnulib/import/mbrtowc.c: Likewise.
5425 * gnulib/import/mbsinit.c: Likewise.
5426 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5427 * gnulib/import/mbsrtowcs-state.c: Likewise.
5428 * gnulib/import/mbsrtowcs.c: Likewise.
5429 * gnulib/import/ref-add.sin: Likewise.
5430 * gnulib/import/ref-del.sin: Likewise.
5431 * gnulib/import/stdbool.in.h: Likewise.
5432 * gnulib/import/streq.h: Likewise.
5433 * gnulib/import/strnlen1.c: Likewise.
5434 * gnulib/import/strnlen1.h: Likewise.
5435 * gnulib/import/verify.h: Likewise.
5436 * gnulib/import/wchar.in.h: Likewise.
5437 * gnulib/import/wctype.in.h: Likewise.
5441 Support shell wildcards for 'set auto-load safe-path'.
5442 * auto-load.c: Include fnmatch.h.
5443 (filename_is_in_dir): Rename to ...
5444 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5445 it. Update function comment. Rename dir_len to pattern_len. New
5446 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5447 messages. Use gdb_filename_fnmatch.
5448 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5450 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5451 * defs.h (gdb_filename_fnmatch): New declaration.
5452 * utils.c: Include fnmatch.h.
5453 (gdb_filename_fnmatch): New function.
5457 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5458 `-probe' and `-probe-stap' options.
5462 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5463 always_inserted_off, and always_inserted_enums.
5464 Change always_inserted_mode's type to 'enum auto_boolean'.
5465 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5467 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5468 of add_setshow_enum_cmd.
5469 * infrun.c: Remove can_use_displaced_stepping_auto,
5470 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5471 can_use_displaced_stepping_enum.
5472 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5473 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5475 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5476 add_setshow_enum_cmd.
5480 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5481 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5482 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5486 * linespec.c: #include "stack.h".
5487 (decode_line_with_current_source): Moved here from symtab.c and
5488 renamed from decode_line_spec. All callers updated.
5489 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5490 renamed from decode_line_spec_1. All callers updated.
5491 * linespec.h (decode_line_with_current_source): Move declaration here
5492 from symtab.h and renamed from decode_line_spec.
5493 (decode_line_with_last_displayed): Move declaration here from symtab.h
5494 and renamed from decode_line_spec_1.
5495 * macrocmd.c: #include "linespec.h".
5496 * symtab.c: Remove #include "linespec.h".
5500 * dwarf2read.c (get_cu_length): New function.
5501 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5502 (create_debug_types_hash_table): Ditto.
5503 (init_cutu_and_read_dies): Ditto.
5504 (init_cutu_and_read_dies_no_follow): Ditto.
5506 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5508 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5509 (struct abbrev_table): Define.
5510 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5512 (init_cutu_and_read_dies): Update.
5513 (abbrev_table_alloc_abbrev): New function. Replaces
5514 dwarf_alloc_abbrev. All callers updated.
5515 (abbrev_table_add_abbrev): New function.
5516 (abbrev_table_lookup_abbrev): New function. Replaces
5517 dwarf2_lookup_abbrev. All callers updated.
5518 (abbrev_table_read_table): New function. Contents moved here from
5519 dwarf2_read_abbrevs.
5520 (dwarf2_read_abbrevs): Call it.
5521 (abbrev_table_free): New function.
5522 (dwarf2_free_abbrev_table): Call it.
5526 * osdata.c (info_osdata_command): Filter out "Title" columns
5528 * common/linux-osdata.c (struct osdata_type): Add title field.
5529 (osdata_table): Add titles to each entry.
5530 (linux_command_xfer_osdata): Add a column for title data.
5534 Make logging work for MI.
5536 * interps.h (interp_set_logging_ftype): New typedef.
5537 (struct interp_procs): New field set_logging_proc.
5538 (current_interp_set_logging): Declare.
5539 * interps.c (current_interp_set_logging): New function.
5540 * cli/cli-logging.c: Include interps.h.
5541 (set_logging_redirect): Call current_interp_set_logging.
5542 (pop_output_files): Ditto.
5543 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5544 * mi/mi-console.h (mi_console_set_raw): Declare.
5545 * mi/mi-console.c (mi_console_set_raw): New function.
5546 * mi/mi-interp.c (saved_raw_stdout): New global.
5547 (mi_set_logging): New function.
5548 (_initialize_mi_interp): Add it to interp procs.
5552 * symtab.c (lookup_symbol_aux_objfile): Use
5553 ALL_OBJFILE_PRIMARY_SYMTABS.
5555 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5559 * common/buffer.c: Include inttypes.h and stdint.h.
5560 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5565 * gdbthread.h (ALL_THREADS): New macro.
5566 (thread_list): Declare.
5567 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5568 going, but instead fall through to the stepping handling.
5569 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5570 the passed in signal. Adjust debug output.
5571 (resume_callback): Rename to ...
5572 (linux_nat_resume_callback): ... this. Pass the thread's last
5573 stop signal, if in "pass" state.
5574 (linux_nat_resume): Adjust to rename.
5575 (stop_wait_callback): New assertion. Don't respawn signals;
5576 instead let the LWP remain with SIGNALLED set.
5577 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5578 * remote.c (append_pending_thread_resumptions): New.
5579 (remote_vcont_resume): Call it.
5580 * target.h (target_resume): Extend comment.
5584 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5588 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5589 Delete have_addr_base, unused. All uses updated.
5590 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5591 (dwarf2_get_pc_bounds): Add ranges_base.
5592 (dwarf2_record_block_ranges): Ditto.
5597 * varobj.c (varobj_create): Update.
5598 (varobj_set_value): Update.
5599 * tracepoint.c (validate_actionline): Update.
5600 (encode_actions_1): Update.
5601 * parse.c (parse_exp_1): Add 'pc' argument.
5602 (parse_exp_in_context): Add 'pc' argument. Change how
5603 expression_context_pc is set.
5604 (parse_expression): Update.
5605 (parse_field_expression): Update.
5606 * expression.h (parse_exp_1): Update.
5607 * eval.c (parse_to_comma_and_eval): Update.
5608 * breakpoint.c (set_breakpoint_condition): Update.
5609 (update_watchpoint): Update.
5610 (init_breakpoint_sal): Update
5611 (find_condition_and_thread): Update.
5612 (watch_command_1): Update.
5613 (update_breakpoint_locations): Update.
5614 * ada-lang.c (ada_read_renaming_var_value): Update.
5615 (create_excep_cond_exprs): Update.
5619 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5624 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5626 (error_check_comp_unit_head): New arg abbrev_section. All callers
5628 (read_and_check_comp_unit_head): Ditto.
5629 (read_and_check_type_unit_head): Ditto.
5633 New attribute 'last' for gdb.Symtab_and_line.
5634 * NEWS (Python Scripting): Add entry about the new attribute.
5635 * python/py-symtab.c (salpy_get_last): New function which
5636 implements the get method for the 'last' attribute of
5637 gdb.Symtab_and_line.
5638 (sal_object_getset): Add entry for the 'last' attribute.
5642 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5643 (dwo_sections): Add macinfo, macro.
5644 (dwarf2_locate_dwo_sections): Watch for macro sections.
5645 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5646 All callers updated. Handle DWO files.
5648 * NEWS: Mention new options "set debug dwarf2-read" and
5649 "set debug symtab-create".
5650 * dwarf2read.c (dwarf2_read_debug): New static global.
5651 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5652 (process_queue): Ditto.
5653 (process_full_comp_unit): Ditto.
5654 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5655 * elfread.c (elf_symfile_read): Add debugging printf.
5656 * minsyms.c (install_minimal_symbols): Ditto.
5657 * psymtab.c (allocate_psymtab): Ditto.
5658 * symfile.c (allocate_symtab): Ditto.
5659 * symtab.c (symtab_create_debug): New global.
5660 (_initialize_symtab): Add new option "set debug symtab-create".
5661 * symtab.h (symtab_create_debug): Declare.
5663 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5664 (lookup_dwo_type_unit): Ditto.
5669 * amd64-linux-nat.c: Include <sys/user.h>.
5670 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5671 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5672 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5674 * configure.ac: Check if the fs_base and gs_base members of
5675 `struct user_regs_struct' exist.
5676 * config.in: Regenerated.
5677 * configure: Likewise.
5682 * python/python.c (gdbpy_write): Check for interrupted output.
5686 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5687 register as a stack alignment in ARM mode.
5691 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5692 * gnulib/config.in: Regenerate.
5693 * gnulib/configure: Likewise.
5694 * gnulib/import/m4/extensions.m4: Update it.
5695 * gnulib/import/m4/gnulib-common.m4: Likewise.
5696 * gnulib/import/m4/memmem.m4: Likewise.
5697 * gnulib/import/m4/mmap-anon.m4: Likewise.
5698 * gnulib/import/m4/multiarch.m4: Likewise.
5699 * gnulib/import/stdint.in.h: Likewise.
5703 * corefile.c (write_memory_with_notification): New.
5704 * gdbcore.h: Declare write_memory_with_notification.
5705 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5706 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5707 * valops.c (value_assign): Likewise.
5708 * python/py-inferior.c (infpy_write_memory): Call
5709 'write_memory_with_notification'.
5713 * cc-with-index.sh: Use also -ex "set auto-load no".
5718 * NEWS: Document additions to .gdb_index.
5719 * dwarf2read.c: #include "gdb/gdb-index.h".
5720 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5721 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5722 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5723 (dwarf2_read_index): Recognize version 7.
5724 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5725 block_kind, domain): All callers updated.
5726 (dw2_find_symbol_file): Handle new index CU values.
5727 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5728 (add_index_entry): New args is_static, kind. All callers updated.
5729 (offset_type_compare, uniquify_cu_indices): New functions
5730 (symbol_kind): New function.
5731 (write_psymtabs_to_index): Remove duplicate CU values.
5732 (write_psymtabs_to_index): Write .gdb_index version 7.
5736 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5737 * configure: Regenerate.
5741 * python/py-inferior.c: Update comments of infpy_read_memory
5742 and infpy_write_memory.
5747 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5748 (push_type_address_space): Remove.
5749 * parse.c (insert_into_type_stack): New function.
5750 (insert_type): Likewise.
5751 (insert_type_address_space): Rename from push_type_address_space.
5752 Insert tp_space_identifier.
5753 * c-exp.y (ptr_operator): New production.
5754 (abs_decl): Use ptr_operator.
5755 (space_identifier): Call insert_type_address_space.
5756 (ptype): Don't use const_or_volatile_or_space_identifier.
5757 (const_or_volatile_noopt): Call insert_type.
5758 (conversion_type_id, conversion_declarator): New productions.
5759 (operator): Use conversion_type_id.
5763 * symtab.h (minimal_symbol): New member created_by_gdb.
5764 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5766 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5767 (search_symbols): Call it instead of lookup_symbol.
5768 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5770 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5771 Adjust address for DW_OP_GNU_addr_index.
5772 * dwarf2expr.h (dwarf_expr_context): Update comment.
5773 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5774 all callers updated. Handle TLS vars described with
5775 DW_OP_GNU_const_index.
5776 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5777 and DW_OP_GNU_const_index.
5778 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5780 * block.c (find_block_in_blockvector): Make explicit the fact that we
5781 ignore GLOBAL_BLOCK.
5785 * c-exp.y (operator): Remove trailing space after "delete" and
5791 Switch i386 and derived targets to ON_STACK.
5792 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5793 (amd64_dicos_init_abi): Remove its installment.
5794 * dicos-tdep.c (dicos_init_abi): Remove the
5795 set_gdbarch_call_dummy_location call. Update the comment here.
5796 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5797 (i386_dicos_init_abi): Remove its installment.
5798 * i386-tdep.c (i386_push_dummy_code): New function.
5799 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5800 i386_push_dummy_code.
5804 Remove stale dummy frames.
5805 * breakpoint.c: Include dummy-frame.h.
5806 (longjmp_breakpoint_ops): New variable.
5807 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5808 bp_longjmp_call_dummy.
5809 (bpstat_what, bptype_string, print_one_breakpoint_location)
5810 (init_bp_location): Support bp_longjmp_call_dummy.
5811 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5812 (set_longjmp_breakpoint_for_call_dummy)
5813 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5815 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5816 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5817 FIXME comment and extend the other comment for bp_call_dummy.
5818 (set_longjmp_breakpoint_for_call_dummy)
5819 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5820 * dummy-frame.c: Include gdbthread.h.
5821 (pop_dummy_frame_bpt): New function.
5822 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5823 (dummy_frame_discard): New function.
5824 (cleanup_dummy_frames): Update the comment about longjmps.
5825 * dummy-frame.h (dummy_frame_discard): New declaration.
5826 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5827 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5828 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5829 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5830 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5831 keep_going if IS_LONGJMP and there is no other reason to stop.
5835 * remote-sim.c (sim_command_completer): Initialize
5840 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5841 * dwarf2loc.c (call_site_parameter_matches): Support
5842 CALL_SITE_PARAMETER_PARAM_OFFSET.
5843 (needs_dwarf_reg_entry_value): Push stub value.
5844 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5845 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5846 * gdbtypes.h (enum call_site_parameter_kind): New item
5847 CALL_SITE_PARAMETER_PARAM_OFFSET.
5848 (struct call_site.parameter.u): New field param_offset.
5852 Code cleanup: Generalize call_site.parameter key.
5853 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5854 variable dwarf_reg. New variable kind_u. Update parameters to
5855 push_dwarf_reg_entry_value.
5856 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5857 * dwarf2expr.h (enum call_site_parameter_kind)
5858 (union call_site_parameter_u): Forward declarations.
5859 (struct dwarf_expr_context_funcs): Update parameters and their
5860 description for push_dwarf_reg_entry_value.
5861 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5862 * dwarf2loc.c (call_site_parameter_matches): New function.
5863 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5864 description. Use call_site_parameter_matches.
5865 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5866 Update parameters and their description.
5867 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5868 New variable kind_u. Adjust the caller for updated parameters.
5869 (needs_dwarf_reg_entry_value): Update parameters.
5870 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5871 instead of attr. Update for the changed fields of struct
5872 call_site_parameter.
5873 * gdbtypes.h: Include dwarf2expr.h.
5874 (enum call_site_parameter_kind): New.
5875 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5876 fb_offset into new union u.
5880 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5881 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5886 * amd64-linux-nat.c (compat_x32_clock_t): New.
5887 (compat_x32_siginfo_t): Likewise.
5888 (compat_x32_siginfo_from_siginfo): Likewise.
5889 (siginfo_from_compat_x32_siginfo): Likewise.
5890 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5891 and siginfo_from_compat_x32_siginfo for x32.
5895 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5899 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5900 instead of gdbarch_ptr_bit.
5901 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5902 (amd64_supply_native_gregset): Likewise.
5903 (amd64_collect_native_gregset): Likewise.
5904 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5905 (amd64_supply_xsave): Likewise.
5906 (amd64_collect_fxsave): Likewise.
5907 (amd64_collect_xsave): Likewise.
5911 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5912 (amd64_linux_read_description): Check DS segment register for
5917 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5918 init_cutu_and_read_dies.
5922 * MAINTAINERS (Write After Approval): Add myself to the list.
5926 * valops.c (value_find_oload_method_list): Now static.
5927 * value.h (value_find_oload_method_list): Don't declare.
5931 * valops.c (find_overload_match): Use value_ind.
5935 * infrun.c (handle_inferior_event): Correct indentation.
5939 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5940 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5942 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5943 updated. Handle DEBUG_LOC_START_LENGTH.
5944 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5945 (loclist_describe_location): Ditto.
5950 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5951 after hiding inline functions.
5955 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5956 _initialize_inf_ttrace.
5960 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5961 _initialize_hppa_hpux_nat.
5965 * remote-sim.c (sim_command_completer): Change type of return
5966 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5972 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5973 stack on a 16-byte boundary.
5977 * jit.c (finalize_symtab): Set function's return type to 'void' by
5983 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5984 Move bits common to both the classic LP64 and the new x32 ILP32
5986 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5987 (amd64_x32_linux_init_abi): New function.
5988 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5991 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5992 * i386-tdep.c (i386_pseudo_register_name): Make public.
5993 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5994 * amd64-tdep.c (amd64_dword_names): Add "eip".
5995 (amd64_x32_pseudo_register_type): New function
5996 (amd64_x32_init_abi): New function.
6001 * inferior.h (struct inferior_suspend_state): Comment out.
6002 (struct inferior): Comment out the field suspend.
6003 * infrun.c (struct infcall_suspend_state): Comment out the field
6005 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
6010 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
6011 * c-exp.y (classify_inner_name): Remove caller assumptions in the
6012 function comment. Return ERROR for unresolved cases. Implement
6013 returning proper NAME.
6014 (yylex): Accept also NAME from classify_inner_name.
6015 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
6016 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
6018 * cp-support.h (cp_lookup_nested_type): Update its declaration.
6022 * breakpoint.c (condition_completer): New function.
6023 (_initialize_breakpoint): Use it.
6024 * value.c (complete_internalvar): New function.
6025 * value.h (complete_internalvar): Declare.
6029 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
6030 * breakpoint.c (catch_syscall_completer): Return a VEC.
6031 * cli/cli-cmds.c (complete_command): Update.
6032 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
6033 (complete_on_enum): Likewise.
6034 * command.h: Include gdb_vecs.h.
6035 (completer_ftype): Change return type.
6036 (complete_on_cmdlist, complete_on_enum): Likewise.
6037 * completer.c (noop_completer, filename_completer)
6038 (location_completer): Return a VEC.
6039 (add_struct_fields): Remove 'nextp' argument. Change 'output'
6041 (expression_completer, complete_line_internal, complete_line)
6042 (command_completer): Return a VEC.
6043 (gdb_completion_word_break_characters, line_completion_function):
6045 * completer.h: Include gdb_vecs.h.
6046 (complete_line, noop_completer, filename_completer)
6047 (expression_completer, location_completer, command_completer):
6049 * f-lang.c (f_word_break_characters): Return a VEC.
6050 * interps.c (interpreter_completer): Return a VEC.
6051 * language.h (struct language_defn)
6052 <la_make_symbol_completion_list>: Return a VEC.
6053 * python/py-cmd.c (cmdpy_completer): Return a VEC.
6054 * symtab.c (free_completion_list): Take a VEC.
6055 (return_val_size, return_val_index): Remove.
6056 (return_val): Now a VEC.
6057 (completion_list_add_name): Update.
6058 (default_make_symbol_completion_list_break_on)
6059 (default_make_symbol_completion_list, make_symbol_completion_list)
6060 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
6062 (add_filename_to_list): Update.
6063 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
6065 (maybe_add_partial_symtab_filename): Update.
6066 (make_source_files_completion_list): Return a VEC.
6067 * symtab.h (default_make_symbol_completion_list_break_on)
6068 (default_make_symbol_completion_list, make_symbol_completion_list)
6069 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6070 (make_source_files_completion_list): Update.
6074 * breakpoint.c (add_catch_command): Use completer_ftype.
6075 * breakpoint.h: Include command.h.
6076 (add_catch_command): Use completer_ftype.
6077 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6078 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6079 Use completer_ftype.
6080 * command.h (completer_ftype): New typedef.
6081 (set_cmd_completer): Use it.
6082 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6087 Partial revert of previous change.
6089 * serial.c (scb_base): New global.
6090 (serial_for_fd): New.
6091 (serial_open, serial_fdopen_ops): Link new serial in open serials
6093 (do_serial_close): Unlink serial from the open serials chain.
6097 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6099 (prepare_for_detach): No longer context switch here in non-stop
6101 (fetch_inferior_event): Ditto.
6102 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6103 to the event thread before removing breakpoints. Switch to the
6104 event thread before inserting breakpoints and resuming.
6105 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6106 event thread before resuming.
6107 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6108 Switch to the event thread before removing breakpoints.
6112 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6113 special characters correctly for the Windows shells. See
6114 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6116 [!__MINGW32__]: Remove extra double quote character from special
6121 * ui-out.h: Remove #if 0 declarations.
6122 * ui-out.c: Remove #if 0 functions.
6126 * ser-base.c (run_async_handler_and_reschedule): New.
6127 (fd_event, push_event): Use it.
6128 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6129 reference count to 1.
6130 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6132 (serial_is_open, serial_ref, serial_unref): New.
6133 * serial.h (serial_open): Adjust comment.
6134 (serial_is_open): Declare.
6135 (serial_close): Adjust comment.
6136 (serial_ref, serial_unref) Declare.
6137 (struct serial): New field 'refcnt'.
6141 Remove #if 0'd "connect" command, and unnecessary associated
6142 refcounting and serial reuse bits.
6144 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6145 * serial.c (last_serial_opened): Delete.
6147 (serial_open): Adjust.
6148 (serial_for_fd): Delete.
6149 (serial_fdopen_ops, do_serial_close): Adjust.
6150 (serial_fdopen_ops): Adjust.
6154 * serial.c (do_serial_close): Remove early return when SCB is
6159 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6163 Fix regression by the "ambiguous linespec" series.
6164 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6165 get_last_displayed_symtab and get_last_displayed_line and depending
6170 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6171 (dw2_find_symbol_file): Use it.
6175 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6176 * mips-linux-tdep.h (mips_signals): New
6180 * infrun.c (handle_inferior_event)
6181 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6183 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6184 exception logic in all cases. Update comments.
6185 (insert_longjmp_resume_breakpoint): Set the exception resume
6190 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6194 * valarith.c (binop_types_user_defined_p): Fix a typo.
6199 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6200 * arch-utils.h: Declare.
6201 * gdbarch.sh: Add return_in_first_hidden_param_p.
6202 * gdbarch.c, gdbarch.h: Regenerated.
6203 * infcall.c (call_function_by_hand): Call
6204 gdbarch_return_in_first_hidden_param_p instead of
6205 language_pass_by_reference.
6207 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6208 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6209 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6210 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6211 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6212 `cplus_return_struct_by_reference'.
6213 (tic6x_return_value): Handle language cplusplus.
6214 (tic6x_return_in_first_hidden_param_p): New.
6215 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6219 * dwarf2read.c (dwarf2_cu): Add comment.
6223 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6225 (mips_eabi_push_dummy_call): Likewise.
6226 (mips_n32n64_push_dummy_call): Likewise.
6227 (mips_o32_push_dummy_call): Likewise.
6228 (mips_o64_push_dummy_call): Likewise.
6232 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6236 * mips-tdep.c (mips_pseudo_register_type): Use
6237 mips_float_register_p.
6241 * infrun.c (handle_inferior_event): Remove calls to
6242 reinit_frame_cache that follow a context_switch call.
6246 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6247 context_switch and remove stale comment.
6251 * infrun.c (struct execution_control_state): Remove
6252 `new_thread_event' field.
6253 (handle_inferior_event): Simplify new threads handling; don't
6254 resume the inferior if we find a new thread.
6258 * NEWS: Document the deprecation of SH's 'regs' command.
6259 * inferior.h (all_registers_info): Add function declaration.
6260 * sh-tdep.c (sh_show_regs): Remove variable.
6261 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6262 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6263 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6264 (sh_show_regs_command): Remove functions.
6265 (sh_gdbarch_init): Don't set sh_show_regs.
6266 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6267 'info all-registers'.
6268 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6269 (sh64_show_regs): Remove functions.
6270 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6274 * configure.ac: Move development=true below AC_INIT.
6275 * configure: Regenerate.
6279 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6284 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6285 argument as ssize_t.
6286 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6287 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6288 * target.c (target_read_stack, target_write_memory)
6289 (target_write_raw_memory): Likewise.
6290 * target.h (target_read_stack, target_write_memory)
6291 (target_write_raw_memory): Likewise.
6295 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6296 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6297 * target.c (target_read_memory): Change LEN to ssize_t.
6298 * target.h (target_read_memory): Change LEN to ssize_t.
6304 * breakpoint.c (until_break_command): Only fetch the selected
6305 frame after decode_line_1.
6309 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6310 event breakpoint at _start, __start or main if a program
6311 interpreter is not found.
6315 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6317 * windows-tdep.c: #include "objfiles.h".
6318 (windows_iterate_over_objfiles_in_search_order): New function.
6319 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6320 iterate_over_objfiles_in_search_order gdbarch method to
6321 windows_iterate_over_objfiles_in_search_order.
6322 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6326 * gdbarch.sh: Add generation of
6327 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6328 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6329 (iterate_over_objfiles_in_search_order): New gdbarch method.
6330 * gdbarch.h, gdbarch.c: Regenerate.
6331 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6333 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6335 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6336 out of lookup_symbol_aux_symtabs.
6337 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6338 call to lookup_symbol_aux_objfile.
6339 (struct global_sym_lookup_data): New type.
6340 (lookup_symbol_global_iterator_cb): New function.
6341 (lookup_symbol_global): Search for symbol using
6342 gdbarch_iterate_over_objfiles_in_search_order and
6343 lookup_symbol_global_iterator_cb.
6344 * findvar.c (struct minsym_lookup_data): New type.
6345 (minsym_lookup_iterator_cb): New function.
6346 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6347 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6348 and minsym_lookup_iterator_cb.
6352 Revert the following patch:
6353 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6354 try locating the symbol in the symbol's own objfile first, before
6355 extending the search to all objfiles.
6356 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6357 out of lookup_symbol_aux_symtabs.
6358 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6359 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6360 Do not search EXCLUDE_OBJFILE.
6361 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6362 (lookup_symbol_global): Search for matches in the block's objfile
6363 first, before searching all other objfiles.
6367 * breakpoint.c (find_condition_and_thread): Stop parsing
6368 as soon as the first invalid keyword is found.
6372 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6376 * config/djgpp/djcheck.sh: Add copyright header.
6380 * copyright.py (update_files, main): Fix path to update-copyright
6385 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6386 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6387 for which a reminder to update by hand is printed.
6391 * buildsym.c (make_blockvector): Add comment.
6395 * arch-utils.c (default_gdb_signal_from_target): Delete.
6396 * arch-utils.h (default_gdb_signal_from_target): Delete.
6397 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6398 gdbarch_gdb_signal_from_target_p.
6399 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6401 * gdbarch.h: Regenerate.
6402 * gdbarch.c: Regenerate.
6406 * gdbarch.sh (gdb_signal_from_target): Mention that the
6407 implementation of the method must be host independent.
6408 * gdbarch.h: Regenerate.
6412 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6414 (target_read_memory_bfd): New function.
6415 (symbol_file_add_from_memory): Use it.
6419 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6421 (basic_lookup_transparent_type): Ditto.
6423 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6424 (ALL_PRIMARY_SYMTABS): Use it.
6425 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6426 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6427 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6428 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6429 (basic_lookup_transparent_type): Ditto.
6433 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6434 it to optimize resolution of demangled name.
6438 * configure.ac (development): Define new variable.
6439 Call AC_CHECK_LIB for mcheck if $development.
6440 (ERROR_ON_WARNING): Enable it by default only if $development.
6441 * config.in: Regenerate.
6442 * configure: Regenerate.
6446 * target.c (target_read_memory): Make LEN argument as size_t.
6447 * target.h (target_read_memory): Likewise.
6451 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6455 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6456 BookE interface for PowerPC server processors if not available
6457 in the Linux Kernel.
6461 * linespec.c (decode_objc): Add cleanup to free
6463 (find_linespec_symbols): Add cleanup to free CLASSES.
6464 * symfile.c (find_separate_debug_file_by_debuglink): Add
6465 cleanup to free DEBUGLINK.
6466 * ui-out.c (clear_header_list): No need to check if
6467 HEADER_NEXT.COLHDR is NULL.
6468 Free HEADER_NEXT.COL_NAME.
6472 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6477 * configure.host (gdb_host_cpu): Handle tilegx*.
6478 (gdb_host): Handle tilegx-*-linux*.
6479 * tilegx-linux-nat.c: New file.
6480 * config/tilegx/linux.mh: New file.
6484 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6485 tilegx-linux-tdep.o.
6486 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6487 tilegx-linux-tdep.c.
6488 * configure.tgt: Handle tilegx-*-linux*.
6489 * tilegx-tdep.h: New file.
6490 * tilegx-tdep.c: New file.
6491 * tilegx-linux-tdep.c: New file.
6492 * regformats/reg-tilegx.dat: New file.
6496 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6497 accounting of hw watchpoints on ppc.
6501 * source.c (openp): Expand tilde in path entries.
6505 * buildsym.c (block_compar): Fix comment.
6506 (end_symtab): Fix and clarify some comments.
6508 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6509 cleanup_undefined_types.
6510 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6511 All callers updated.
6515 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6517 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6518 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6520 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6525 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6526 (struct darwin_info): ... New struct.
6527 (solib_darwin_pspace_data): New variable.
6528 (darwin_pspace_data_cleanup): New function.
6529 (get_darwin_info): Likewise.
6530 (darwin_dyld_version_ok, darwin_load_image_infos)
6531 (darwin_solib_get_all_image_info_addr_at_init)
6532 (darwin_solib_read_all_image_info_addr): Add info argument.
6534 (darwin_current_sos): Use per pspace structure.
6535 (darwin_solib_create_inferior_hook): Likewise.
6536 (darwin_clear_solib): Likewise.
6537 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6541 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6542 block that uses them. Clear ecss before handling each event.
6546 * solib-svr4.c (svr4_current_sos): New comment on
6547 svr4_current_sos_via_xfer_libraries fall back.
6551 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6552 it as a fallback for TYPE_IS_OPAQUE.
6553 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6554 symbols for lookup_symbol.
6558 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6559 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6560 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6561 (check_producer): ... this new function, which also checks for ICC
6562 and caches the result.
6563 (producer_is_icc): New function.
6564 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6571 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6572 (default_gdb_signal_to_target): ... this. Add comment.
6573 (default_gdb_signal_from_host): Rename to ...
6574 (default_gdb_signal_from_target): ... this. Add comment.
6575 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6576 (default_gdb_signal_to_target): ... this.
6577 (default_gdb_signal_from_host): Rename to ...
6578 (default_gdb_signal_from_target): ... this.
6579 * corelow.c (core_open): Adjust to naming change. Replace comment.
6580 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6581 (gdb_signal_from_target): ... this. Adjust to
6582 default_gdb_signal_from_host naming change. Extend comment.
6583 (gdb_signal_to_host): Rename to ...
6584 (gdb_signal_to_target): ... this. Adjust to
6585 default_gdb_signal_to_host naming change.
6586 * gdbarch.h, gdbarch.c: Renegerate.
6592 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6598 Replace target_signal with gdb_signal throughout.
6604 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6605 string, instead of reusing the va_list argument.
6609 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6614 * symtab.c (search_symbols): Formatting fixes.
6615 (print_symbol_info): Formatting fixes.
6617 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6618 int64_t change to leb128 API.
6619 (read_encoded_value, decode_frame_entry_1): Ditto.
6620 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6621 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6622 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6623 (execute_stack_op): Ditto.
6624 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6625 (safe_read_uleb128, safe_read_sleb128): Ditto.
6626 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6627 (dwarf2_compile_expr_to_ax): Ditto.
6628 (locexpr_describe_location_piece): Ditto.
6629 (disassemble_dwarf_expression): Ditto.
6630 (locexpr_describe_location_1): Ditto.
6635 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6636 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6637 (mi-cmd-info.o): New rule.
6638 * osdata.h (info_osdata_command): New declaration.
6639 * osdata.c (info_osdata_command): Change to non-static.
6640 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6641 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6642 * mi/mi-cmd-info.c: New file.
6646 * symtab.c (search_symbols): Pass NULL for file_matcher to
6647 expand_symtabs_matching if there are no files to match.
6649 * gdbtypes.c (lookup_typename): Simplify.
6653 * arch-utils.h (default_target_signal_to_host): Delete.
6654 * arch-utils.c (default_target_signal_to_host): Delete.
6655 * gdbarch.sh (target_signal_to_host): Remove.
6656 * gdbarch.h, gdbarch.c: Regenerate.
6660 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6662 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6663 (execute_cfa_program): Update to match API of leb128 functions.
6664 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6666 (read_unsigned_leb128, read_signed_leb128): Delete.
6667 (read_initial_length): Change type of buf argument to
6669 (read_encoded_value): Update to match API of leb128 functions.
6670 (decode_frame_entry): Change result to "const gdb_byte *", and
6671 similarly for "start" parameter.
6672 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6673 (dwarf2_build_frame_info): Change local frame_ptr to
6675 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6676 read_uleb128, read_sleb128. All callers updated.
6677 (safe_skip_leb128): New function.
6678 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6679 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6680 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6681 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6682 read_uleb128, read_sleb128.
6683 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6684 (execute_stack_op): Update to match API of leb128 functions.
6685 * dwarf2expr.h: #include "leb128.h".
6686 (read_uleb128, read_sleb128): Delete.
6687 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6688 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6689 * dwarf2loc.c (debug_loc_kind): New enum.
6690 (decode_debug_loc_addresses): New function.
6691 (decode_debug_loc_dwo_addresses): New function.
6692 (dwarf2_find_location_expression): Rewrite.
6693 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6694 (locexpr_describe_location_piece): Ditto.
6695 (disassemble_dwarf_expression): Ditto.
6696 (locexpr_describe_location_1): Ditto.
6697 (loclist_describe_location): Rewrite.
6698 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6699 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6700 (dwarf2_section_buffer_overflow_complaint): Renamed from
6701 dwarf2_macros_too_long_complaint. All callers updated.
6702 (skip_leb128): Delete.
6703 (init_cu_die_reader): Initialize reader->buffer_end.
6704 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6705 (skip_form_bytes): New arg buffer_end. All callers updated.
6706 Replace call to skip_leb128 with gdb_skip_leb128.
6707 (skip_unknown_opcode): New arg mac_end. All callers updated.
6708 (fill_in_loclist_baton): Initialize baton->from_dwo.
6712 * mips-linux-nat.c (mips_linux_read_description): Use a more
6713 verbose error message.
6717 * NEWS: Add MIPS/Linux DSP support.
6718 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6719 (SIGCONTEXT_DSPCTL): New macro.
6720 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6721 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6722 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6723 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6724 (N64_SIGCONTEXT_HI3): Likewise.
6725 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6726 (N64_SIGCONTEXT_LO3): Likewise.
6727 (N64_SIGCONTEXT_DSPCTL): Likewise.
6728 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6729 (mips_linux_o32_sigframe_init): Handle DSP registers.
6730 (mips_linux_n32n64_sigframe_init): Likewise.
6734 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6739 * target.h (store_waitstatus): Move declaration ...
6740 * inf-child.h (store_waitstatus): ... here.
6741 * target.c: Move inclusion of gdb_wait.h, and ...
6742 (store_waitstatus): ... this ...
6743 * inf-child.c: ... here.
6744 * linux-nat.c: Include inf-child.h.
6745 * rs6000-nat.c: Include inf-child.h.
6746 * spu-linux-nat.c: Include inf-child.h.
6750 * tracepoint.c (start_tracing): Add missing i18n markup.
6751 (stop_tracing, set_trace_user): Ditto.
6752 (set_trace_notes, set_trace_stop_notes): Ditto.
6757 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6759 * value.h (value_cast_pointers): Update.
6760 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6761 (value_cast): Update.
6762 (update_search_result): New function.
6763 (do_search_struct_field): New, from search_struct_field. Check
6764 for ambiguous results.
6765 (search_struct_field): Rewrite.
6766 * infcall.c (value_arg_coerce): Update.
6767 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6768 value_cast_pointers.
6769 * ada-lang.c (ada_convert_actual): Update.
6773 * macroexp.c (macro_stringify): Terminate the string.
6777 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6779 * auto-load.c (auto_load_expand_dir_vars): New function.
6780 (auto_load_safe_path_vec_update): Use it, remove the
6781 substitute_path_component call thanks to it.
6782 (auto_load_objfile_script): Remove the debug_file_directory processing.
6783 Use auto_load_expand_dir_vars, remove the substitute_path_component
6785 * configure: Regenerate.
6786 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6787 path. Escape $ also for $debugdir.
6788 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6789 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6793 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6794 before use. Check for symtab->includes == NULL before scanning it.
6798 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6802 * NEWS: Add microMIPS support and "set mips compression",
6803 "show mips compression" commands.
6804 * mips-tdep.h (mips_isa): New enum.
6805 (gdbarch_tdep): Add mips_isa.
6806 (mips_pc_is_mips16): Update prototype.
6807 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6808 * mips-tdep.c (mips_compression_mips16): New variable.
6809 (mips_compression_micromips): Likewise.
6810 (mips_compression_strings): Likewise.
6811 (mips_compression_string): Likewise.
6812 (is_mips16_isa, is_micromips_isa): New functions.
6813 (is_mips16_addr): Rename to...
6814 (is_compact_addr): ... this.
6815 (unmake_mips16_addr): Likewise to...
6816 (unmake_compact_addr): ... this.
6817 (make_mips16_addr): Likewise to...
6818 (make_compact_addr): ... this.
6819 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6821 (mips_elf_make_msymbol_special): Handle microMIPS code.
6822 (msymbol_is_special): Rename to...
6823 (msymbol_is_mips16): ... this.
6824 (mips_make_symbol_special, mips_pc_is_mips16): Update
6826 (msymbol_is_mips, msymbol_is_micromips): New functions.
6827 (mips16_to_32_reg): Rename to...
6828 (mips_reg3_to_reg): ... this.
6829 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6830 (mips_pc_isa): Likewise.
6831 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6833 (mips_fetch_instruction): Pass return status instead of printing
6834 an error message if requested. Handle microMIPS code. Bail out
6836 (micromips_op): New macro.
6837 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6838 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6839 (b6s4_op, b7s3_reg): Likewise.
6840 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6841 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6842 (mips_insn_size): New function.
6843 (mips32_next_pc): Update mips_fetch_instruction call.
6844 (micromips_relative_offset7): New function.
6845 (micromips_relative_offset10): Likewise.
6846 (micromips_relative_offset16): Likewise.
6847 (micromips_pc_insn_size): Likewise.
6848 (micromips_bc1_pc): Likewise.
6849 (micromips_next_pc): Likewise.
6850 (unpack_mips16): Update mips_fetch_instruction call.
6851 (extended_mips16_next_pc): Update according to change to
6853 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6855 (mips16_scan_prologue): Update mips_fetch_instruction call.
6856 Update according to change to mips16_to_32_reg.
6857 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6858 (mips_insn16_frame_base_sniffer): Likewise.
6859 (micromips_decode_imm9): New function.
6860 (micromips_scan_prologue): Likewise.
6861 (mips_micro_frame_cache): Likewise.
6862 (mips_micro_frame_this_id): Likewise.
6863 (mips_micro_frame_prev_register): Likewise.
6864 (mips_micro_frame_sniffer): Likewise.
6865 (mips_micro_frame_unwind): New variable.
6866 (mips_micro_frame_base_address): New function.
6867 (mips_micro_frame_base): New variable.
6868 (mips_micro_frame_base_sniffer): New function.
6869 (mips32_scan_prologue): Update mips_fetch_instruction call.
6870 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6871 rather than for MIPS16.
6872 (mips_insn32_frame_base_sniffer): Likewise.
6873 (mips_addr_bits_remove): Handle microMIPS code.
6874 (deal_with_atomic_sequence): Rename to...
6875 (mips_deal_with_atomic_sequence): ... this. Update the type
6876 of the variable used to hold an instruction. Remove the ISA bit
6877 check. Update mips_fetch_instruction call.
6878 (micromips_deal_with_atomic_sequence): New function.
6879 (deal_with_atomic_sequence): Likewise.
6880 (mips_about_to_return): Handle microMIPS code. Update
6881 mips_fetch_instruction call.
6882 (heuristic_proc_start): Check for the standard MIPS ISA rather
6883 than for MIPS16. Update mips_pc_is_mips16 and
6884 mips_fetch_instruction calls. Handle microMIPS code.
6885 (mips_push_dummy_code): Handle microMIPS code.
6886 (mips_eabi_push_dummy_call): Likewise.
6887 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6888 (mips_o64_push_dummy_call): Handle microMIPS code.
6889 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6890 (is_delayed): Remove function.
6891 (mips_single_step_through_delay): Replace the call to is_delayed
6892 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6893 Handle microMIPS code.
6894 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6896 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6898 (micromips_in_function_epilogue_p): New function.
6899 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6901 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6903 (gdb_print_insn_mips): Likewise.
6904 (mips_breakpoint_from_pc): Likewise.
6905 (mips_remote_breakpoint_from_pc): New function.
6906 (mips32_instruction_has_delay_slot): Simplify making use of the
6907 updated mips_fetch_instruction interface.
6908 (micromips_instruction_has_delay_slot): New function.
6909 (mips16_instruction_has_delay_slot): Simplify making use of the
6910 updated mips_fetch_instruction interface.
6911 (mips_adjust_breakpoint_address): Check for the standard MIPS
6912 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6913 calls. Handle microMIPS code.
6914 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6915 (mips_skip_trampoline_code): Handle microMIPS code.
6916 (global_mips_compression): New function.
6917 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6918 file flags. Register the microMIPS remote breakpoint handler
6919 and heuristic frame unwinder.
6920 (show_mips_compression): New function.
6921 (_initialize_mips_tdep): Add the "set mips compression" and
6922 "show mips compression" commands.
6929 * amd64-darwin-tdep.c:
6930 * arm-symbian-tdep.c:
6934 * bfin-linux-tdep.c:
6941 * dwarf2-frame-tailcall.c:
6970 * microblaze-tdep.c:
6971 * mips-linux-tdep.c:
6979 * python/py-finishbreakpoint.c:
6980 * python/py-inferior.c:
6981 * python/py-infthread.c:
6985 * remote-m32r-sdi.c:
6989 * rs6000-aix-tdep.c:
7015 * amd64-darwin-tdep.c:
7016 * arm-symbian-tdep.c:
7017 * arm-tdep.c: Delete unused variables.
7021 Rename $ddir to $datadir.
7022 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
7023 * auto-load.c (auto_load_safe_path_vec_update)
7024 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
7025 * configure: Regenerate.
7026 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
7027 Likewise. Remove the 'use $ddir' help string.
7031 * auto-load.c (show_auto_load_safe_path): Accept any combination of
7032 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
7037 * valprint.h (struct value_print_options) <symbol_print>: New
7039 * valprint.c (user_print_options): Add default for symbol_print.
7040 (show_symbol_print): New function.
7041 (generic_val_print): Respect symbol_print.
7042 (_initialize_valprint): Add "print symbol" setting.
7043 * f-valprint.c (f_val_print): Respect symbol_print.
7044 * c-valprint.c (c_val_print): Respect symbol_print.
7046 * printcmd.c (print_address_symbolic): Return int. Ignore some
7048 (print_address_demangle): Return int.
7049 * defs.h: (print_address_symbolic): Return int.
7050 * value.h (print_address_demangle): Return int.
7054 * valprint.c (val_print_string): Don't print leading space.
7055 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
7056 print space before string or vtbl.
7057 * m2-valprint.c (print_unpacked_pointer): Optionally print space
7059 * jv-valprint.c (java_value_print): Print space before string.
7060 * go-valprint.c (print_go_string): Print space before string.
7061 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
7062 space before string.
7063 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
7064 space before string or vtbl.
7065 * auxv.c (fprint_target_auxv): Print space after address.
7069 * printcmd.c (print_address_demangle): Remove special case for 0.
7073 * printcmd.c (print_address_demangle): Add 'opts' argument.
7074 * p-valprint.c (pascal_val_print): Update.
7075 * jv-valprint.c (java_val_print): Update.
7077 * valprint.c (generic_val_print): Update.
7078 (print_function_pointer_address): Add 'options' argument. Remove
7079 'addressprint' argument. Update.
7080 * m2-valprint.c (print_unpacked_pointer): Update.
7081 * gnu-v3-abi.c (print_one_vtable): Update.
7082 (gnuv3_print_method_ptr): Update.
7083 * f-valprint.c (f_val_print): Update.
7084 * cp-valprint.c (cp_print_value_fields): Update.
7085 * valprint.h (print_function_pointer_address): Update.
7086 * c-valprint.c (c_val_print): Update.
7090 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7091 directly corresponding to the found psymtab.
7092 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7093 (dw2_find_pc_sect_symtab): Use it.
7094 * block.h (blockvector_contains_pc): Declare.
7095 * block.c (find_block_in_blockvector): New function.
7096 (blockvector_for_pc_sect): Use it.
7097 (blockvector_contains_pc): New function.
7101 * mips-tdep.h (mips_write_pc): New prototype.
7102 * mips-tdep.c (mips_write_pc): Make external, add description.
7103 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7108 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7110 (mips_unwind_pc, mips_write_pc): Likewise.
7111 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7116 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7117 proc_warn, proc_error, proc_get_status, proc_flags,
7118 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7119 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7120 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7121 proc_stop_process, proc_wait_for_stop, proc_run_process,
7122 proc_set_traced_signals, proc_set_traced_faults,
7123 proc_set_traced_sysentry, proc_set_traced_sysexit,
7124 proc_set_held_signals, proc_get_held_signals,
7125 proc_get_traced_signals, proc_get_traced_faults,
7126 proc_get_traced_sysentry, proc_get_traced_sysexit,
7127 proc_clear_current_fault, proc_set_current_signal,
7128 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7129 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7130 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7131 proc_get_current_thread, proc_get_current_thread,
7132 proc_get_current_thread, proc_update_threads,
7133 proc_update_threads, proc_update_threads, proc_update_threads,
7134 proc_iterate_over_threads, procfs_find_new_threads,
7135 procfs_pid_to_str): Make static. Remove advance declaration.
7136 (proc_cursig): Make static. Conditionalized defintion on
7137 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7138 (proc_syscall, proc_set_kill_on_last_close,
7139 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7140 proc_get_pending_signals, proc_get_signal_actions,
7141 proc_trace_signal, proc_ignore_signal): Delete.
7145 * coffread.c (cs_section_address): Passing proper argument for
7146 `bfd_get_section_vma'.
7147 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7148 `bfd_get_section_flags'.
7149 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7150 `bfd_get_section_vma'.
7155 * macrotab.h: (macro_define_special): Declare.
7156 (enum macro_special_kind): New.
7157 (struct macro_definition) <argc, replacement>: Update comments.
7158 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7159 (macro_define_object_internal): New function.
7160 (macro_define_object): Use it.
7161 (macro_define_special): New function.
7162 (fixup_definition): New function.
7163 (macro_lookup_definition, foreach_macro_in_scope)
7164 (foreach_macro): Use fixup_definition.
7165 * macroexp.h (macro_stringify): Declare.
7166 * macroexp.c (free_buffer_return_text): New function.
7167 (stringify): Constify "arg".
7168 (macro_stringify): New function.
7169 * dwarf2read.c (macro_start_file): Call macro_define_special.
7174 * breakpoint.h (bp_location): Add related_address member.
7175 * inferior.h (get_return_value): Take a pointer to struct value
7176 instead of struct type for the function requested.
7177 * value.h (using_struct_return): Likewise.
7178 * gdbarch.sh (return_value): Take a pointer to struct value
7179 instead of struct type for the function requested.
7180 * breakpoint.c (set_breakpoint_location_function): Initialize
7181 related_address for bp_gnu_ifunc_resolver breakpoints.
7182 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7183 requested function's address to gdbarch_return_value.
7184 * eval.c (evaluate_subexp_standard): Pass the requested
7185 function's address to using_struct_return.
7186 * infcall.c (call_function_by_hand): Pass the requested
7187 function's address to using_struct_return and
7188 gdbarch_return_value.
7189 * infcmd.c (get_return_value): Take a pointer to struct value
7190 instead of struct type for the function requested.
7191 (print_return_value): Update accordingly.
7192 (finish_command_continuation): Likewise.
7193 * stack.c (return_command): Pass the requested function's
7194 address to using_struct_return and gdbarch_return_value.
7195 * value.c (using_struct_return): Take a pointer to struct value
7196 instead of struct type for the function requested. Pass the
7197 requested function's address to gdbarch_return_value.
7198 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7199 New function_value member, replacing function_type.
7200 (bpfinishpy_dealloc): Update accordingly.
7201 (bpfinishpy_pre_stop_hook): Likewise.
7202 (bpfinishpy_init): Likewise. Record the requested function's
7204 * mips-tdep.c (mips_fval_reg): New enum.
7205 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7206 words put in GP registers.
7207 (mips_o64_push_dummy_call): Update a comment.
7208 (mips_o32_return_value): Take a pointer to struct value instead
7209 of struct type for the function requested and use it to check if
7210 using the MIPS16 calling convention. Return the designated
7211 general purpose registers for floating-point values returned in
7213 (mips_o64_return_value): Likewise.
7214 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7215 (ppc_sysv_abi_broken_return_value): Likewise.
7216 (ppc64_sysv_abi_return_value): Likewise.
7217 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7218 value instead of struct type for the function requested.
7219 * amd64-tdep.c (amd64_return_value): Likewise.
7220 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7221 * arm-tdep.c (arm_return_value): Likewise.
7222 * avr-tdep.c (avr_return_value): Likewise.
7223 * bfin-tdep.c (bfin_return_value): Likewise.
7224 * cris-tdep.c (cris_return_value): Likewise.
7225 * frv-tdep.c (frv_return_value): Likewise.
7226 * h8300-tdep.c (h8300_return_value): Likewise.
7227 (h8300h_return_value): Likewise.
7228 * hppa-tdep.c (hppa32_return_value): Likewise.
7229 (hppa64_return_value): Likewise.
7230 * i386-tdep.c (i386_return_value): Likewise.
7231 * ia64-tdep.c (ia64_return_value): Likewise.
7232 * iq2000-tdep.c (iq2000_return_value): Likewise.
7233 * lm32-tdep.c (lm32_return_value): Likewise.
7234 * m32c-tdep.c (m32c_return_value): Likewise.
7235 * m32r-tdep.c (m32r_return_value): Likewise.
7236 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7237 * m68k-tdep.c (m68k_return_value): Likewise.
7238 (m68k_svr4_return_value): Likewise.
7239 * m88k-tdep.c (m88k_return_value): Likewise.
7240 * mep-tdep.c (mep_return_value): Likewise.
7241 * microblaze-tdep.c (microblaze_return_value): Likewise.
7242 * mn10300-tdep.c (mn10300_return_value): Likewise.
7243 * moxie-tdep.c (moxie_return_value): Likewise.
7244 * mt-tdep.c (mt_return_value): Likewise.
7245 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7246 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7247 (ppc_sysv_abi_broken_return_value): Likewise.
7248 (ppc64_sysv_abi_return_value): Likewise.
7249 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7250 * rl78-tdep.c (rl78_return_value): Likewise.
7251 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7252 * rx-tdep.c (rx_return_value): Likewise.
7253 * s390-tdep.c (s390_return_value): Likewise.
7254 * score-tdep.c (score_return_value): Likewise.
7255 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7256 (sh_return_value_fpu): Likewise.
7257 * sh64-tdep.c (sh64_return_value): Likewise.
7258 * sparc-tdep.c (sparc32_return_value): Likewise.
7259 * sparc64-tdep.c (sparc64_return_value): Likewise.
7260 * spu-tdep.c (spu_return_value): Likewise.
7261 * tic6x-tdep.c (tic6x_return_value): Likewise.
7262 * v850-tdep.c (v850_return_value): Likewise.
7263 * vax-tdep.c (vax_return_value): Likewise.
7264 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7265 * xtensa-tdep.c (xtensa_return_value): Likewise.
7266 * gdbarch.c: Regenerate.
7267 * gdbarch.h: Regenerate.
7271 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7275 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7276 of command in two error message.
7280 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7284 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7288 * NEWS (show auto-load scripts-directory): Add forgotten command.
7292 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7297 * amd64-tdep.c: Include features/i386/x32.c and
7298 features/i386/x32-avx.c.
7299 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7300 initialize_tdesc_x32_avx.
7305 * breakpoint.h (enum bptype): New type bp_dprintf.
7306 (struct breakpoint): New field extra_string.
7307 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7308 (create_breakpoint): Add extra_string arg.
7309 * breakpoint.c (dprintf_breakpoint_ops): New.
7310 (is_breakpoint): Add bp_dprintf.
7311 (bpstat_what): Add dprintf case.
7312 (bptype_string): Ditto.
7313 (print_one_breakpoint_location): Ditto.
7314 (init_bp_location): Ditto.
7315 (bkpt_print_mention): Ditto.
7316 (dprintf_style_enums): New array.
7317 (dprintf_style): New global.
7318 (dprintf_function): New global.
7319 (dprintf_channel): New global.
7320 (update_dprintf_command_list): New function.
7321 (update_dprintf_commands): New function.
7322 (init_breakpoint_sal): Add extra_string argument, handle it.
7323 (create_breakpoint_sal): Add extra_string argument.
7324 (create_breakpoints_sal): Add extra_string argument, update callers.
7325 (find_condition_and_thread): Add extra argument.
7326 (create_breakpoint): Add extra_string argument, record it.
7327 (dprintf_command): New function.
7328 (break_command_1): Add arg to create_breakpoint call.
7329 (handle_gnu_v3_exceptions): Ditto.
7330 (trace_command): Ditto.
7331 (ftrace_command): Ditto.
7332 (strace_command): Ditto.
7333 (bkpt_print_mention): Add dprintf case.
7334 (create_breakpoint_sal_default): Add extra_string argument.
7335 (_initialize_breakpoint): Add new commands.
7336 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7337 * python/py-breakpoint.c (bppy_init): Ditto.
7338 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7342 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7346 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7351 Add a new function gdb.find_pc_line to the Python API.
7352 * NEWS (Python Scripting): Add entry about the new function.
7353 * python/python.c (gdbpy_find_pc_line): New function which
7354 implements gdb.find_pc_line.
7355 (GdbMethods): Add entry for the new function.
7359 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7360 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7364 * inferior.c: Include completer.h
7365 (initialize_inferiors): Set completer of add-inferior to
7370 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7371 gdbarch_ptr_bit for x32 core dump.
7375 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7376 and features/i386/x32-avx-linux.c.
7381 * NEWS: Describe new info os commands.
7382 * common/linux-osdata.c (PID_T, TIME_T): Define.
7383 (MAX_PID_T_STRLEN): New.
7384 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7386 (command_from_pid): Add comment. Change to use PID_T.
7387 (commandline_from_pid): Change to use PID_T.
7388 (user_from_pid): Add comment.
7389 (get_process_owner): Add comment. Change to use PID_T and
7391 (get_number_of_cpu_cores): Add comment.
7392 (get_cores_used_by_process): Add comment. Change to use PID_T and
7394 (linux_xfer_osdata_processes): Change to use PID_T and
7396 (compare_processes): New function.
7397 (linux_xfer_osdata_processgroups): New function.
7398 (linux_xfer_osdata_threads): Change to use PID_T.
7399 (linux_xfer_osdata_fds): New function.
7400 (format_socket_state, print_sockets): New functions.
7401 (union socket_addr): New union.
7402 (linux_xfer_osdata_isockets): New function.
7403 (time_from_time_t, group_from_gid): New functions.
7404 (linux_xfer_osdata_shm): New function.
7405 (linux_xfer_osdata_sem): New function.
7406 (linux_xfer_osdata_msg): New function.
7407 (linux_xfer_osdata_modules): New function.
7408 (osdata_table): Add new entries.
7409 * common/buffer.c (buffer_xml_printf): Add support for long and
7410 long long format specifiers.
7414 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7415 (tdesc_x32_avx_linux): Likewise.
7419 Implement multi-component --with-auto-load-dir.
7420 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7422 (--with-auto-load-safe-path): Update the default value description.
7423 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7425 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7426 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7427 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7428 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7429 "set auto-load scripts-directory".
7430 * config.in: Regenerate.
7431 * configure: Regenerate.
7432 * configure.ac (--with-auto-load-dir): New configure option.
7433 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7437 Provide $ddir substitution for --with-auto-load-safe-path.
7438 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7440 * auto-load.c: Include observer.h.
7441 (auto_load_safe_path_vec_update): Call substitute_path_component for
7442 each component. New variable ddir_subst.
7443 (auto_load_gdb_datadir_changed): New function.
7444 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7445 AUTO_LOAD_SAFE_PATH. New comment.
7446 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7447 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7448 * config.in: Regenerate.
7449 * configure: Regenerate.
7450 * configure.ac (--auto-load-safe-path): Rename
7451 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7452 GDB_DATADIR/auto-load.
7453 * defs.h (substitute_path_component): New declaration.
7454 * top.c: Include observer.h.
7455 (set_gdb_datadir): New function.
7456 (init_main): Install it for "set data-directory".
7457 * utils.c (substitute_path_component): New function.
7461 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7462 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7463 DEBUG_FILE_DIRECTORY. Handle multiple components of
7464 DEBUG_FILE_DIRECTORY.
7468 * dwarf2read.c (recursively_write_psymbols): New function.
7469 (write_psymtabs_to_index): Use it.
7471 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7473 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7474 (load_partial_comp_unit): Update.
7475 (queue_comp_unit): Add argument 'pretend_language'.
7476 (process_queue): Update.
7477 (psymtab_to_symtab_1): Skip dependencies that have a user.
7478 (load_partial_comp_unit_reader): Give meaning to the 'data'
7480 (load_full_comp_unit): Add 'pretend_language' argument.
7481 (process_full_comp_unit): Add 'pretend_language' argument. Set
7483 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7485 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7486 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7488 (prepare_one_comp_unit): Add 'pretend_language' argument.
7490 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7491 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7492 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7493 (dw2_do_instantiate_symtab): Check whether symtab was read in
7495 (dw2_instantiate_symtab): Add assertion. Call
7496 process_cu_includes.
7497 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7498 (partial_symtab_p): New typedef.
7499 (set_partial_user): New function.
7500 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7501 (scan_partial_symbols): Add imported CU to imported_symtabs.
7502 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7503 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7504 (get_symtab, recursively_compute_inclusions)
7505 (compute_symtab_includes, process_cu_includes)
7506 (process_imported_unit_die): New functions.
7507 (process_die) <DW_TAG_imported_unit>: New case.
7508 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7510 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7512 (struct partial_die_info) <locdesc>: Remove.
7514 (process_psymtab_comp_unit): Add 'read_partial' argument.
7516 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7517 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7518 (add_partial_symbol): Update.
7519 (process_die): Handle DW_TAG_partial_unit.
7520 (read_file_scope): Update comment.
7521 (load_partial_dies): Handle DW_TAG_imported_unit.
7522 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7523 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7527 * cc-with-dwz.sh: New file.
7531 * symtab.h (struct symtab) <includes, user>: New fields.
7532 * block.h (struct block_iterator) <d, idx, which>: New fields.
7533 * block.c (initialize_block_iterator, find_iterator_symtab)
7534 (block_iterator_step, block_iter_name_step)
7535 (block_iter_match_step): New functions.
7536 (block_iterator_first, block_iterator_next)
7537 (block_iter_name_first, block_iter_name_next)
7538 (block_iter_match_first, block_iter_match_next): Rewrite.
7539 (get_block_symtab): New function.
7543 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7545 * jit.c (finalize_symtab): Use allocate_global_block,
7547 * buildsym.c (finish_block_internal): New function, from old
7549 (finish_block): Rewrite.
7550 (end_symtab): Use finish_block_internal, set_block_symtab.
7551 * block.h (struct global_block): New.
7552 (allocate_global_block, set_block_symtab): Declare.
7553 * block.c (allocate_global_block, set_block_symtab): New
7558 * psymtab.c (partial_map_expand_apply): Add assertion.
7559 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7560 (psymtab_to_symtab): Find unshared psymtab.
7561 (dump_psymtab): Print including psymtabs.
7562 (recursively_search_psymtabs): New function.
7563 (expand_symtabs_matching_via_partial): Use it.
7564 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7566 (enum psymtab_search_status): New.
7570 * tracepoint.c (scope_info): Update.
7571 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7572 (find_pc_sect_symtab, search_symbols)
7573 (default_make_symbol_completion_list_break_on)
7574 (make_file_symbol_completion_list): Update.
7575 * symmisc.c (dump_symtab_1): Update.
7576 * stack.c (print_frame_args, iterate_over_block_locals)
7577 (print_frame_labels, iterate_over_block_arg_vars): Update.
7578 * python/py-block.c (block_object) <dict>: Remove.
7580 <iter>: Change type.
7581 (blpy_iter): Update.
7582 (blpy_block_syms_iternext): Update.
7583 * psymtab.c (map_block): Use block iterators.
7584 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7585 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7586 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7587 * infrun.c (check_exception_resume): Update.
7588 * cp-support.c (make_symbol_overload_list_block): Update.
7589 * coffread.c (patch_opaque_types): Update.
7590 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7591 * block.h (struct block_iterator): New.
7592 (block_iterator_first, block_iterator_next, block_iter_name_first)
7593 (block_iter_name_next, block_iter_match_first)
7594 (block_iter_match_next): Declare.
7595 (ALL_BLOCK_SYMBOLS): Redefine.
7596 * block.c (block_iterator_first, block_iterator_next)
7597 (block_iter_name_first, block_iter_name_next)
7598 (block_iter_match_first, block_iter_match_next): New functions.
7599 * ada-lang.c (ada_add_block_symbols)
7600 (ada_make_symbol_completion_list): Use block iterator.
7604 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7605 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7606 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7607 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7608 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7613 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7614 print-file-var-lib2.c, print-file-var-main.c and
7615 print-file-var.exp (located in gdb/testsuite/gdb.base).
7619 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7620 try locating the symbol in the symbol's own objfile first, before
7621 extending the search to all objfiles.
7622 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7623 out of lookup_symbol_aux_symtabs.
7624 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7625 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7626 Do not search EXCLUDE_OBJFILE.
7627 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7628 (lookup_symbol_global): Search for matches in the block's objfile
7629 first, before searching all other objfiles.
7633 * printcmd.c (set_command): Add pre/post inc/dec.
7637 * gdb.1: Document -ex option.
7641 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7642 * inferior.h (AT_SYMBOL): Delete.
7646 * mips-tdep.c (mips_push_dummy_code): New function.
7647 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7648 ON_STACK and install mips_push_dummy_code as our gdbarch
7649 push_dummy_code routine.
7653 * target.c (set_maintenance_target_async_permitted): Rename to ...
7654 (set_target_async_command): ... this.
7655 (show_maintenance_target_async_permitted): Rename to ...
7656 (show_target_async_command): ... this.
7657 (initialize_targets): Adjust.
7661 * go-exp.y (classify_name): Add missing assignment of fields of
7666 Display the ">" prompt in interactive mode while reading canned
7667 commands, even when the current interpreter is MI.
7669 * interps.c (interp_set_temp): New function.
7671 * interps.h (interp_set_temp): Add prototype.
7673 * cli/cli-script.c (restore_interp): New cleanup function.
7674 (read_command_lines): Temporarily override the current interpreter
7675 with CLI and arrange for restoring the original one.
7679 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7683 * probe.c (parse_probes): Move conditional to check for
7684 debuginfo files from here...
7685 * stap-probe.c (stap_get_probes): ... to here.
7690 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7691 `movl %esp, %ebp' for the X32 ABI.
7695 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7697 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7698 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7699 (dwarf_stack_op_name): Remove.
7700 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7701 (decode_locdesc): Use get_DW_OP_name.
7702 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7703 (dwarf2_compile_expr_to_ax): Likewise.
7704 (disassemble_dwarf_expression): Likewise.
7705 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7709 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7710 (sh_linux_sigtramp_cache): New function.
7711 (sh_linux_sigreturn_init): New function.
7712 (sh_linux_rt_sigreturn_init): New function.
7713 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7715 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7717 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7718 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7719 (sh_linux_init_abi): Add init calls to register new tramp_frame
7720 definitions under 32-bit SH, update comments.
7726 * amd64-linux-tdep.c: Include glibc-tdep.h.
7727 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7728 gdbarch_skip_solib_resolver callback.
7732 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7733 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7734 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7735 (add_auto_load_safe_path): Change the error message.
7736 (_initialize_auto_load): Change the "safe-path" help text.
7737 * configure: Regenerate
7738 * configure.ac (--without-auto-load-safe-path): Set
7739 WITH_AUTO_LOAD_SAFE_PATH to /.
7743 * stap-probe.h: Do not include unecessary `probe.h'.
7747 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7748 bfd_und_section_ptr.
7749 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7750 and bfd_com_section_ptr.
7754 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7758 * windows-nat.h (segment_register_p_ftype): New typedef.
7759 (windows_set_segment_register_p): Add declaration.
7760 * windows-nat.c (segment_register_p): New static global.
7761 (windows_set_segment_register_p): New function.
7762 (do_windows_fetch_inferior_registers): Add special handling
7763 for segment registers.
7764 * amd64-windows-nat.c: #include "amd64-tdep.h".
7765 (amd64_windows_segment_register_p): New function.
7766 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7767 * i386-windows-nat.c: #include "i386-tdep.h".
7768 (i386_windows_segment_register_p): New function.
7769 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7773 * printcmd.c (set_command): Emit a warning if the expression is not
7778 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7783 * stap-probe.c (stap_is_operator): Change declaration.
7784 (stap_get_opcode): Change return value.
7785 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7786 `stap_parse_argument_1'.
7790 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7795 Add two new methods global_block and static_block to gdb.Symtab
7797 * NEWS (Python scripting): Add entry about the new methods.
7798 * python/py-symtab.c (stpy_global_block): New function which
7799 implements the gdb.Symtab.global_block() method.
7800 (stpy_static_block): New function which implements the
7801 gdb.Symtab.static_block() method.
7802 (symtab_object_methods): Add entries for the two new methods.
7806 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7811 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7813 (i386_process_record): Ditto.
7817 * infcall.c (unwind_on_signal_p): Make static.
7821 * sol-thread.c (solaris_pid_to_str): Make static.
7822 (_initialize_sol_thread): Add prototype.
7826 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7830 * MAINTAINERS: Remove myself.
7834 Fix --without-auto-load-safe-path for MS-Windows host platform.
7835 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7839 * gdb_curses.h: Undefine KEY_EVENT before including curses
7840 headers. Move "#undef MOUSE_MOVED" before any curses header
7845 * features/i386/i386-mmx-linux.c: Regenerate.
7846 * features/rs6000/powerpc-32.c: Likewise.
7847 * features/rs6000/powerpc-32l.c: Likewise.
7848 * features/rs6000/powerpc-403.c: Likewise.
7849 * features/rs6000/powerpc-403gc.c: Likewise.
7850 * features/rs6000/powerpc-405.c: Likewise.
7851 * features/rs6000/powerpc-505.c: Likewise.
7852 * features/rs6000/powerpc-601.c: Likewise.
7853 * features/rs6000/powerpc-602.c: Likewise.
7854 * features/rs6000/powerpc-603.c: Likewise.
7855 * features/rs6000/powerpc-604.c: Likewise.
7856 * features/rs6000/powerpc-64.c: Likewise.
7857 * features/rs6000/powerpc-64l.c: Likewise.
7858 * features/rs6000/powerpc-750.c: Likewise.
7859 * features/rs6000/powerpc-860.c: Likewise.
7860 * features/rs6000/powerpc-e500.c: Likewise.
7861 * features/rs6000/powerpc-e500l.c: Likewise.
7862 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7863 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7864 * features/rs6000/rs6000.c: Likewise.
7868 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7870 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7871 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7872 (stap_parse_argument) <e>: Likewise.
7873 (handle_stap_probe) <byte_order>: Likewise.
7877 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7878 init_and_read_dies_worker. All callers updated.
7879 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7880 replaced with init_cutu_and_read_dies.
7881 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7882 (find_partial_die): Remove FIXME. Don't free current CU.
7886 * contrib: New directory.
7887 * contrib/test_pubnames_and_indexes.py: New file.
7891 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7892 All callers updated.
7893 (init_cu_die_reader): Verify the section is non-empty.
7894 (dwarf_decode_line_header): Don't dereference section->asection
7895 until we know the section is present.
7899 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7904 * gdb-code-style.el: New hook gdb-markup-hook
7905 and gdb-comment-hook.
7909 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7910 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7912 * symfile.h (dwarf2_debug_sections): New member addr.
7913 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7914 (ctx_no_get_addr_index): New function.
7915 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7916 (ctx_no_get_addr_index): Declare.
7917 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7918 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7919 (dwarf_expr_ctx_funcs): Update.
7920 (needs_get_addr_index): New function.
7921 (needs_frame_ctx_funcs): Update.
7922 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7923 * dwarf2read.c: #include "gdbcore.h".
7924 (dwarf2_per_objfile): New members addr, dwo_files.
7925 (dwarf2_elf_names): Add entry for addr.
7926 (struct dwo_section_names): New type.
7927 (dwo_section_names): New static global.
7928 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7929 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7930 old debug_types_section member updated to use this.
7931 Rename member debug_types_section to info_or_types_section,
7933 (signatured_type): Rename member type_offset to type_offset_in_tu,
7934 all uses updated. New member type_offset_in_section.
7935 (struct dwo_sections): New type.
7936 (struct dwo_unit): New type.
7937 (struct dwo_file): New type.
7938 (die_reader_specs): New member dwo_file.
7939 (dwarf2_locate_sections): Watch for .debug_addr.
7940 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7941 (dwarf2_read_section): Get bfd of section from bfd's asection,
7943 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7944 (create_signatured_type_table_from_index): Initialize
7945 sig_type->info_or_types_section.
7946 (dw2_get_file_names): Statement lists for type units with DWO files
7947 live in the DWO file.
7948 (create_debug_types_hash_table): New function.
7949 (create_all_type_units): Rewrite.
7950 (init_cu_die_reader): New arg dwo_file, all callers updated.
7951 (init_and_read_dies_worker): Get section from
7952 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7953 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7954 continue reading the CU/TU from there.
7955 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7956 updated. Get section from this_cu->info_or_types_section.
7957 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7958 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7959 DW_FORM_GNU_str_index.
7960 (hash_dwo_file, eq_dwo_file): New functions.
7961 (allocate_dwo_file_hash_table): New function.
7962 (hash_dwo_unit, eq_dwo_unit): New functions.
7963 (allocate_dwo_unit_table): New function.
7964 (dwarf2_locate_dwo_sections): New function.
7965 (struct create_dwo_info_table_data): New type.
7966 (create_debug_info_hash_table_reader): New function.
7967 (create_debug_info_hash_table): New function.
7968 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7969 (lookup_dwo_file): New function.
7970 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7971 (free_dwo_file, free_dwo_file_cleanup): New functions.
7972 (free_dwo_file_from_slot, free_dwo_files): New functions.
7973 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7974 (dwarf2_record_block_ranges): Ditto.
7975 (read_partial_die): Ditto.
7976 (process_enumeration_scope): Update to use type_offset_in_section.
7977 (read_full_die_1): New function.
7978 (read_full_die): Rewrite.
7979 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7980 DW_FORM_GNU_str_index.
7981 (read_addr_index_1, read_addr_index): New functions.
7982 (read_addr_index_from_leb128): New function.
7983 (struct dwarf2_read_addr_index_data): New type.
7984 (dwarf2_read_addr_index_reader): New function.
7985 (dwarf2_read_addr_index): New function.
7986 (read_str_index): New function.
7987 (leb128_size): New function.
7988 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7989 If processing a type unit from a DWO file, get the line section
7991 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7992 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7993 DW_FORM_GNU_str_index.
7994 (lookup_die_type): Check whether section offset of type's die is
7995 known before looking it up. Remove assert. Condition can
7996 legimately happen for inter-cu type references.
7997 (dwarf_attr_name): Handle Fission attributes.
7998 (dwarf_form_name): Handle Fission forms.
7999 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
8000 DW_FORM_GNU_str_index.
8001 (follow_die_sig): Update to use type_offset_in_section.
8002 (decode_locdesc): New case DW_OP_GNU_addr_index.
8003 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
8004 DW_FORM_GNU_str_index.
8005 (cu_debug_loc_section): New function.
8006 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
8007 (dwarf2_per_objfile_free): Unmap .debug_addr section.
8008 Free DWO files if present.
8009 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
8011 Refactor DIE reading.
8012 * dwarf2read.c (dwarf2_per_objfile): Replace members
8013 debug_info_type_hash and debug_types_type_hash with die_type_hash.
8014 (die_reader_specs): New member "die_section". Temporarily make
8015 member "buffer" non-const, pending constifying all info_ptr uses.
8016 (die_reader_func_ftype): New typedef.
8017 (dw2_get_file_names_reader): New function.
8018 (dw2_get_file_names): Rewrite.
8019 (read_and_check_type_unit_head): Rename arg type_offset to
8021 (create_all_type_units): Improve debugging message.
8022 Improve dummy type unit check.
8023 (init_cu_die_reader): New arg "section". All callers updated.
8024 (init_and_read_dies_worker): New function.
8025 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
8026 (init_cutu_and_read_dies_no_follow): New function.
8027 (init_cutu_and_read_dies_simple): New function.
8028 (process_psymtab_comp_unit_reader): New function.
8029 (process_psymtab_comp_unit): Delete args section,
8030 is_debug_types_section. Rewrite. All callers updated.
8031 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
8032 All callers updated. Rewrite.
8033 (load_partial_comp_unit_reader): New function.
8034 (load_partial_comp_unit): Rewrite.
8035 (skip_children): New arg reader. Delete args buffer, cu.
8036 All callers updated.
8037 (skip_one_die): New arg reader. Delete args buffer, cu.
8038 All callers updated.
8039 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
8040 All callers updated.
8041 (load_full_comp_unit_reader): New function.
8042 (load_full_comp_unit): Rewrite.
8043 (read_comp_unit): Delete.
8044 (read_die_and_children_1): Delete, contents moved ...
8045 (read_die_and_children): ... here.
8046 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
8047 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
8048 All callers updated.
8049 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
8050 All callers updated.
8051 (find_partial_die): Rewrite load_all_dies support.
8052 (read_attribute_value): New arg reader. Delete args abfd, cu.
8053 All callers updated.
8054 (read_attribute): New arg reader. Delete args abfd, cu.
8055 All callers updated.
8056 (load_full_type_unit): Add assert.
8057 (read_signatured_type_reader): New function.
8058 (read_signatured_type): Rewrite.
8059 (free_stack_comp_unit): Remove call to age_cached_comp_units.
8060 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
8061 All callers updated. Set per_cu->cu = NULL after freeing it.
8062 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
8063 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
8064 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
8065 (set_die_type): Update.
8066 (get_die_type_at_offset): Update.
8067 (read_file_scope): Call prepare_one_comp_unit.
8068 (read_type_unit_scope): Ditto.
8069 (prepare_one_comp_unit): Set producer if present.
8073 * probe.c (compile_rx_or_error): Silence ARI warning about missing
8074 gettext function on `error'.
8078 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8084 * breakpoint.c (struct breakpoint_objfile_data)
8085 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8086 <exception_probes>: New fields.
8087 (free_breakpoint_probes): New function.
8088 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8089 `_Unwind_DebugHook'.
8090 (create_exception_master_breakpoint): Likewise.
8091 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8092 * infrun.c: Including necessary header files for handling SystemTap
8094 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8095 via SystemTap probes.
8096 (check_exception_resume): Remove `func' argument. Handle exception
8097 unwinding breakpoint set via a SystemTap probe.
8098 (insert_exception_resume_from_probe): New function.
8104 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8105 (COMMON_OBS): Likewise.
8106 (HFILES_NO_SRCDIR): Add `probe'.
8107 * NEWS: Mention support for static and SystemTap probes.
8108 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8109 SystemTap probes' arguments parser.
8110 * arm-linux-tdep.c: Including headers needed to perform the parsing
8111 of SystemTap probes' arguments.
8112 (arm_stap_is_single_operand): New function.
8113 (arm_stap_parse_special_token): Likewise.
8114 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8115 probes' arguments parser.
8116 * ax-gdb.c (require_rvalue): Removing static declaration.
8117 (gen_expr): Likewise.
8118 * ax-gdb.h (gen_expr): Declaring function.
8119 (require_rvalue): Likewise.
8120 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8121 (bkpt_probe_breakpoint_ops): New variable.
8122 (momentary_breakpoint_from_master): Set the `probe' value.
8123 (add_location_to_breakpoint): Likewise.
8124 (break_command_1): Using proper breakpoint_ops according to the
8125 argument passed by the user in the command line.
8126 (bkpt_probe_insert_location): New function.
8127 (bkpt_probe_remove_location): Likewise.
8128 (bkpt_probe_create_sals_from_address): Likewise.
8129 (bkpt_probe_decode_linespec): Likewise.
8130 (tracepoint_probe_create_sals_from_address): Likewise.
8131 (tracepoint_probe_decode_linespec): Likewise.
8132 (tracepoint_probe_breakpoint_ops): New variable.
8133 (trace_command): Using proper breakpoint_ops according to the
8134 argument passed by the user in the command line.
8135 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8136 static probes on breakpoints and tracepoints.
8137 * breakpoint.h (struct bp_location) <probe>: New field.
8138 * cli-utils.c (skip_spaces_const): New function.
8139 (extract_arg): Likewise.
8140 * cli-utils.h (skip_spaces_const): Likewise.
8141 (extract_arg): Likewise.
8142 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8143 * configure.ac: Append `stap-probe.o' to be generated when ELF
8145 * configure: Regenerate.
8146 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8147 * elfread.c: Include `probe.h' and `arch-utils.h'.
8148 (probe_key): New variable.
8149 (elf_get_probes): New function.
8150 (elf_get_probe_argument_count): Likewise.
8151 (elf_evaluate_probe_argument): Likewise.
8152 (elf_compile_to_ax): Likewise.
8153 (elf_symfile_relocate_probe): Likewise.
8154 (stap_probe_key_free): Likewise.
8155 (elf_probe_fns): New variable.
8156 (elf_sym_fns): Add `sym_probe_fns' value.
8157 (elf_sym_fns_lazy_psyms): Likewise.
8158 (elf_sym_fns_gdb_index): Likewise.
8159 (_initialize_elfread): Initialize objfile cache for static
8161 * gdb_vecs.h (struct probe): New forward declaration.
8162 (probe_p): New VEC declaration.
8163 * gdbarch.c: Regenerate.
8164 * gdbarch.h: Regenerate.
8165 * gdbarch.sh (stap_integer_prefix): New variable.
8166 (stap_integer_suffix): Likewise.
8167 (stap_register_prefix): Likewise.
8168 (stap_register_suffix): Likewise.
8169 (stap_register_indirection_prefix): Likewise.
8170 (stap_register_indirection_suffix): Likewise.
8171 (stap_gdb_register_prefix): Likewise.
8172 (stap_gdb_register_suffix): Likewise.
8173 (stap_is_single_operand): New function.
8174 (stap_parse_special_token): Likewise.
8175 (struct stap_parse_info): Forward declaration.
8176 * i386-tdep.c: Including headers needed to perform the parsing
8177 of SystemTap probes' arguments.
8178 (i386_stap_is_single_operand): New function.
8179 (i386_stap_parse_special_token): Likewise.
8180 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8181 probes' arguments parser.
8182 * i386-tdep.h (i386_stap_is_single_operand): New function.
8183 (i386_stap_parse_special_token): Likewise.
8184 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8185 * mipsread.c (ecoff_sym_fns): Likewise.
8186 * objfiles.c (objfile_relocate1): Support relocation for static
8188 * parse.c (prefixify_expression): Remove static declaration.
8189 (initialize_expout): Likewise.
8190 (reallocate_expout): Likewise.
8191 * parser-defs.h (initialize_expout): Declare function.
8192 (reallocate_expout): Likewise.
8193 (prefixify_expression): Likewise.
8194 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8195 of SystemTap probes' arguments.
8196 (ppc_stap_is_single_operand): New function.
8197 (ppc_stap_parse_special_token): Likewise.
8198 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8199 probes' arguments parser.
8200 * probe.c: New file, for generic statically defined probe support.
8201 * probe.h: Likewise.
8202 * s390-tdep.c: Including headers needed to perform the parsing of
8203 SystemTap probes' arguments.
8204 (s390_stap_is_single_operand): New function.
8205 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8206 probes' arguments parser.
8207 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8208 * stap-probe.c: New file, for SystemTap probe support.
8209 * stap-probe.h: Likewise.
8210 * symfile.h: Include `gdb_vecs.h'.
8211 (struct sym_probe_fns): New struct.
8212 (struct sym_fns) <sym_probe_fns>: New field.
8213 * symtab.c (init_sal): Initialize `probe' field.
8214 * symtab.h (struct probe): Forward declaration.
8215 (struct symtab_and_line) <probe>: New field.
8216 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8218 (stop_tracing): Likewise.
8219 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8224 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8225 and to compile agent expressions.
8226 * infrun.c (siginfo_make_value): New argument `ignore'.
8227 (siginfo_funcs): New struct.
8228 (_initialize_infrun): New argument when calling
8229 `create_internalvar_type_lazy'.
8230 * thread.c (thread_id_make_value): New argument `ignore'.
8231 (thread_funcs): New struct.
8232 (_initialize_thread): New argument when calling
8233 `create_internalvar_type_lazy'.
8234 * tracepoint.c (sdata_make_value): New argument `ignore'.
8235 (sdata_funcs): New struct.
8236 (_initialize_tracepoint): New argument when calling
8237 `create_internalvar_type_lazy'.
8238 * value.c (make_value): New struct.
8239 (create_internalvar_type_lazy): New argument `data'.
8240 (compile_internalvar_to_ax): New function.
8241 (value_of_internalvar): Properly handling `make_value' case.
8242 (clear_internalvar): Likewise.
8243 (show_convenience): Adding `TRY_CATCH' block.
8244 * value.h (internalvar_make_value): Delete, replace by...
8245 (struct internalvar_funcs): ... this.
8246 (create_internalvar_type_lazy) <fun>: Delete argument.
8247 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8248 (compile_internalvar_to_ax): New function.
8249 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8250 (tlb_funcs): New struct.
8251 (_initialize_windows_tdep): New argument when calling
8252 `create_internalvar_type_lazy'.
8256 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8257 see whether it is an address or a constant offset from DW_AT_low_pc.
8258 (dwarf2_record_block_ranges): Likewise.
8259 (read_partial_die): Likewise.
8263 * MAINTAINERS (Write After Approval): Add myself to the list.
8267 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8268 (proc_prettyprint_signal): Likewise.
8269 (proc_prettyprint_faultset): Likewise.
8270 (proc_prettyprint_fault): Likewise.
8271 (proc_prettyprint_actionset): Likewise.
8272 (proc_prettyprint_flags): Move to new proc-flags.c section.
8273 (proc_prettyfprint_flags): New prototype.
8274 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8275 (proc_syscall, proc_cursig): Likewise.
8276 (proc_set_kill_on_last_close): Likewise.
8277 (proc_unset_kill_on_last_close): Likewise.
8278 (proc_set_watchpoint): Make static.
8279 (proc_delete_dead_threads): Likewise.
8280 (procfs_set_watchpoint): Likewise.
8281 (_initialize_procfs): Add prototype.
8282 * proc-events.c: Include proc-utils.h.
8283 (init_syscall_table): Make static.
8284 * proc-api.c (_initialize_proc_api): Add prototype.
8285 * proc-flags.c: Include proc-utils.h.
8289 * configure.ac: Add AC_ARG_PROGRAM.
8290 * configure: Regenerate.
8294 Fix DW_AT_lower_bound defaults for DWARF-4+.
8295 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8296 high. New variable low_default_is_valid. Implement DWARF-4+
8297 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8298 no default by the DWARF standard.
8303 * infrun.c (handle_inferior_event): Move the check for return
8304 trampolines ahead of the check for function trampolines.
8305 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8306 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8307 (mips_str_mips16_ret_stub): Likewise.
8308 (mips_str_call_fp_stub): Likewise.
8309 (mips_str_call_stub): Likewise.
8310 (mips_str_fn_stub): Likewise.
8311 (mips_str_pic): Likewise.
8312 (mips_in_frame_stub): New function.
8313 (mips_unwind_pc): Return the return address rather than the PC
8314 if the PC of an intermediate frame is inside a call thunk.
8315 (mips_is_stub_suffix): New function.
8316 (mips_is_stub_mode): Likewise.
8317 (mips_get_mips16_fn_stub_pc): Likewise.
8318 (mips_skip_mips16_trampoline_code): Update to handle all the
8319 currently generated stub types. Don't recurse into __fn_stub
8320 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8321 Use cooked register accesses.
8322 (mips_in_return_stub): Reintroduce function.
8323 (mips_skip_trampoline_code): Traverse trampolines recursively.
8324 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8332 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8333 * features/arm-with-m-vfp-d16.xml: New file. Describes
8334 Cortex-M with VFPv4-sp-d16 FPU register layout.
8335 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8336 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8337 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8338 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8339 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8343 * cli/cli-decode.c (print_doc_line): Use stream instead of
8348 * features/arm-with-iwmmxt.c: Regenerate.
8349 * features/arm-with-m-fpa-layout.c: Likewise.
8350 * features/arm-with-m.c: Likewise.
8351 * features/arm-with-neon.c: Likewise.
8352 * features/arm-with-vfpv2.c: Likewise.
8353 * features/arm-with-vfpv3.c: Likewise.
8354 * features/mips-dsp-linux.c: Likewise.
8355 * features/mips-linux.c: Likewise.
8356 * features/mips64-dsp-linux.c: Likewise.
8357 * features/mips64-linux.c: Likewise.
8358 * features/s390-linux32.c: Likewise.
8359 * features/s390-linux32v1.c: Likewise.
8360 * features/s390-linux32v2.c: Likewise.
8361 * features/s390-linux64.c: Likewise.
8362 * features/s390-linux64v1.c: Likewise.
8363 * features/s390-linux64v2.c: Likewise.
8364 * features/s390x-linux64.c: Likewise.
8365 * features/s390x-linux64v1.c: Likewise.
8366 * features/s390x-linux64v2.c: Likewise.
8367 * features/tic6x-c62x-linux.c: Likewise.
8368 * features/tic6x-c62x.c: Likewise.
8369 * features/tic6x-c64x-linux.c: Likewise.
8370 * features/tic6x-c64x.c: Likewise.
8371 * features/tic6x-c64xp-linux.c: Likewise.
8372 * features/tic6x-c64xp.c: Likewise.
8373 * target-descriptions.c: Only generate `field_type' and `type'
8374 variables when needed.
8378 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8382 Initial pass at Go language support.
8384 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8386 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8387 (YYFILES): Add go-exp.c.
8388 (YYOBJ): Add go-exp.o.
8389 (local-maintainer-clean): Delete go-exp.c.
8390 * defs.h (enum language): Add language_go.
8391 * dwarf2read.c: #include "go-lang.h".
8392 (fixup_go_packaging): New function.
8393 (process_full_comp_unit): Call it when processing Go CUs.
8394 (dwarf2_physname): Add Go support.
8395 (read_file_scope): Handle missing language spec for GNU Go.
8396 (set_cu_language): Handle DW_LANG_Go.
8397 * go-exp.y: New file.
8398 * go-lang.h: New file.
8399 * go-lang.c: New file.
8400 * go-typeprint.c: New file.
8401 * go-valprint.c: New file.
8402 * symtab.c: #include "go-lang.h".
8403 (symbol_set_language): Handle language_go.
8404 (symbol_find_demangled_name, symbol_set_names): Ditto.
8405 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8409 avoid a few strncpy-induced buffer overruns
8410 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8411 fname and psargs before trying to concatenate.
8412 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8413 "name" before applying strchr.
8417 * CONTRIBUTE: Use unified diff instead of context diff when
8422 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8423 code. Handle JR.HB correctly.
8428 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8429 with the other MIPS16 helpers.
8433 * observer.sh: Conditionally declare `args', thus cleaning up
8434 unused instances of this variable.
8438 Revert this patch to allow breakpoint always-inserted
8441 * breakpoint.c: Include record.h.
8442 (breakpoints_always_inserted_mode): Return false when the record
8445 * breakpoint.c (iterate_over_bp_locations): New.
8446 * breakpoint.h: Declare.
8447 New typedef walk_bp_location_callback.
8448 * record.c (record_open): Call record_init_record_breakpoints.
8449 (record_sync_record_breakpoints): New.
8450 (record_init_record_breakpoints): New.
8451 * NEWS: Mention supporting breakpoint always-inserted mode in
8456 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8461 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8462 (is_catchpoint): ... it.
8463 (print_one_breakpoint_location): Caller update.
8464 * breakpoint.h: Update declaration.
8468 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8472 * buildsym.c (add_free_pendings): Remove.
8473 * buildsym.h (add_free_pendings): Remove.
8477 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8478 attr.u.unsnd instead of attr.u.addr.
8479 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8480 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8482 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8483 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8485 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8489 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8490 (mips_o32_return_value): Likewise.
8491 (mips_o64_return_value): Likewise.
8495 * ada-lang.c (ada_evaluate_subexp): Add cases for
8496 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8497 their treatment in eval.c.
8501 * sparc-tdep.c (X_DISP10): Define.
8502 (sparc_analyze_control_transfer): Handle compare-and-branch.
8506 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8507 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8512 * mips-tdep.c (mips_float_register_p): New function.
8513 (mips_convert_register_float_case_p): Use mips_float_register_p.
8514 (mips_register_type): Likewise.
8515 (mips_print_register): Likewise.
8516 (print_gp_register_row): Likewise.
8517 (mips_print_registers_info): Likewise.
8521 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8526 * MAINTAINERS (Write After Approval): Add myself to the list.
8530 * MAINTAINERS: Update my e-mail address.
8534 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8536 * configure: Regenerate.
8540 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8542 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8546 Fix compilation compatibility with python-2.4
8547 * python/py-type.c (convert_field): Cast ADDRSTRING for
8548 PyObject_SetAttrString as non-const. New comment.
8552 * top.c (quit_target): Use all_cleanups.
8553 * main.c (captured_command_loop): Use all_cleanups.
8554 * exceptions.c (throw_exception): Use all_cleanups.
8558 * Makefile.in (GNULIB_BUILDDIR): New.
8559 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8560 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8561 (CLEANDIRS). Remove gnulib/import.
8562 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8564 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8565 (gnulib/import/Makefile): Replace gnulib/import with
8566 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8567 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8568 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8569 acx_configure_dir.m4.
8570 * acinclude.m4: Include acx_configure_dir.m4.
8571 * acx_configure_dir.m4: New file.
8572 * aclocal.m4: Regenerate.
8573 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8574 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8575 (GNULIB): New variable.
8576 (GNULIB_STDINT_H): Adjust.
8577 (AC_OUTPUT): Don't output gnulib/Makefile.
8578 * gdb/defs.h: Include build-gnulib/config.h.
8579 * aclocal.m4: Regenerate.
8580 * config.in: Regenerate.
8581 * configure: Regenerate.
8583 * gnulib/Makefile.in: New file.
8584 * gnulib/configure.ac: New file.
8585 * gnulib/aclocal.m4: New file.
8586 * gnulib/config.in: New file.
8587 * gnulib/configure: New file.
8588 * gnulib/: Re-run gnulib-tool to adjust.
8592 * cleanups.h (struct cleanup): Move to cleanups.c.
8593 (make_cleanup_dtor_ftype): New typedef.
8594 (make_cleanup_dtor): Use it.
8595 (ALL_CLEANUPS): Replace with ...
8596 (all_cleanups): ... this. Declare. All uses updated.
8597 * cleanups.c: #include "gdb_assert.h".
8598 (sentinel_cleanup): New static global.
8599 (SENTINEL_CLEANUP): Define.
8600 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8601 (make_my_cleanup2): Assert result is non-NULL.
8602 (all_cleanups): New function.
8603 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8608 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8609 Adjust paths to gnulib imported files.
8613 * gnulib/: Move whole directory ...
8614 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8615 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8616 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8617 (aclocal_m4_deps): Adjust.
8618 * aclocal.m4: Regenerate.
8619 * configure: Regenerate.
8620 * configure.ac: Adjust AC_OUTPUT output.
8624 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8626 * vec.c: Move it ...
8627 * common/vec.c: ... here.
8628 * vec.h: Move it ...
8629 * common/vec.h: ... here.
8633 * gdb-code-style.el: New.
8637 Update gnulib from latest git.
8638 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8640 * gnulib/Makefile.am: Update.
8641 * gnulib/dummy.c: Update.
8642 * gnulib/extra/arg-nonnull.h: Update.
8643 * gnulib/extra/c++defs.h: Update.
8644 * gnulib/extra/update-copyright: Update.
8645 * gnulib/extra/warn-on-use.h: Update.
8646 * gnulib/inttypes.in.h: Update.
8647 * gnulib/m4/00gnulib.m4: Update.
8648 * gnulib/m4/extensions.m4: Update.
8649 * gnulib/m4/gnulib-cache.m4: Update.
8650 * gnulib/m4/gnulib-common.m4: Update.
8651 * gnulib/m4/gnulib-comp.m4: Update.
8652 * gnulib/m4/gnulib-tool.m4: Update.
8653 * gnulib/m4/include_next.m4: Update.
8654 * gnulib/m4/inttypes-pri.m4: Update.
8655 * gnulib/m4/inttypes.m4: Update.
8656 * gnulib/m4/longlong.m4: Update.
8657 * gnulib/m4/memchr.m4: Update.
8658 * gnulib/m4/memmem.m4: Update.
8659 * gnulib/m4/mmap-anon.m4: Update.
8660 * gnulib/m4/multiarch.m4: Update.
8661 * gnulib/m4/onceonly.m4: Update.
8662 * gnulib/m4/stddef_h.m4: Update.
8663 * gnulib/m4/stdint.m4: Update.
8664 * gnulib/m4/string_h.m4: Update.
8665 * gnulib/m4/warn-on-use.m4: Update.
8666 * gnulib/m4/wchar_h.m4: Update.
8667 * gnulib/m4/wchar_t.m4: Update.
8668 * gnulib/m4/wint_t.m4: Update.
8669 * gnulib/memchr.c: Update.
8670 * gnulib/memmem.c: Update.
8671 * gnulib/stddef.in.h: Update.
8672 * gnulib/stdint.in.h: Update.
8673 * gnulib/str-two-way.h: Update.
8674 * gnulib/string.in.h: Update.
8675 * gnulib/wchar.in.h: Update.
8677 * gnulib/extra/arg-nonnull.h: Delete.
8678 * gnulib/extra/c++defs.h: Delete.
8679 * gnulib/extra/warn-on-use.h: Delete.
8680 * gnulib/m4/wchar_h.m4: Delete.
8681 * gnulib/m4/wint_t.m4: Delete.
8682 * gnulib/wchar.in.h: Delete.
8684 * gnulib/extra/snippets/arg-nonnull.h: New.
8685 * gnulib/extra/snippets/c++defs.h: New.
8686 * gnulib/extra/snippets/warn-on-use.h: New.
8688 * aclocal.m4: Regenerate.
8689 * config.in: Regenerate.
8690 * configure: Regenerate.
8691 * gnulib/Makefile.in: Regenerate.
8695 Reimport the update-copyright module from gnulib
8696 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8698 * configure: Regenerate.
8699 * gnulib/Makefile.am: Update.
8700 * gnulib/Makefile.in: Regenerate.
8701 * gnulib/extra/update-copyright: Update.
8702 * gnulib/m4/gnulib-cache.m4: Update.
8703 * gnulib/m4/gnulib-comp.m4: Update.
8707 * configure.ac (aix): Put -lpthread into libs.
8708 * configure: Regenerate.
8712 * linespec.c (convert_linespec_to_sals): Don't use
8714 (compare_msymbols): Arguments are minsym_and_objfile, not
8715 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8719 Revert gnulib/ part of:
8721 Copyright year update in most files (performed by copyright.sh).
8725 Fix 64-bit constants on 32-bit hosts.
8726 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8727 from unsigned long to ULONGEST.
8728 (read_signed_leb128): Change declaration return type from long to
8730 (dwarf2_const_value_attr): Change declaration parameter value from long
8732 (dwarf2_compute_name): Change variable value from long to LONGEST.
8733 (read_unsigned_leb128): Change return type, variable result and some
8734 casts from unsigned long to ULONGEST.
8735 (read_signed_leb128): Change return type, variable result and some
8736 casts from long to LONGEST.
8737 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8738 value from long to LONGEST.
8739 (dwarf2_const_value): Change variable value from long to LONGEST.
8740 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8741 plongest and hex_string.
8742 * symtab.h (struct general_symbol_info): Change ivalue from long to
8743 LONGEST, remove the comment.
8744 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8745 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8750 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8751 * ada-lang.c (ada_discrete_type_high_bound)
8752 (ada_discrete_type_low_bound): Fix function comment. Use
8753 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8754 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8755 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8756 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8757 Use TYPE_FIELD_ENUMVAL.
8758 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8759 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8760 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8761 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8763 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8764 * dwarf2read.c (process_enumeration_scope): Likewise.
8765 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8767 (class StructMainTypePrettyPrinter): Support also
8768 FIELD_LOC_KIND_ENUMVAL.
8769 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8771 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8772 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8773 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8774 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8776 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8777 accommodate enumval.
8778 (struct call_site): Adjust loc_kind to accommodate enumval.
8779 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8780 (TYPE_FIELD_ENUMVAL): New macros.
8781 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8782 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8784 * p-typeprint.c (pascal_type_print_base): Likewise.
8785 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8787 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8788 * python/py-type.c (convert_field): New variable addrstring. Use
8789 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8790 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8791 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8792 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8794 * valprint.c (generic_val_print): Likewise.
8798 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8800 * dwarf2read.c: Whitespace fixes.
8801 (lookup_signatured_type): Tweak comment.
8802 (get_die_type_at_offset): Fix comment.
8806 * xcoffread.c (xcoff_secnum_to_sections): New function.
8807 (secnum_to_section, secnum_to_bfd_section): Reimplement
8808 using xcoff_secnum_to_sections. Rename "secnum" parameter
8810 (RECORD_MINIMAL_SYMBOL): Delete.
8811 (record_minimal_symbol): New function.
8812 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8813 by call to record_minimal_symbol and set misc_func_recorded
8814 to 1. Set last_csect_sec to the XCOFF section index instead
8815 of GDB's section_offset index. Update calls to
8816 prim_record_minimal_symbol_and_info to pass the BFD section
8821 * xcoffread.c (read_xcoff_symtab): Delete variables
8822 last_csect_val and last_csect_sec and associated code.
8826 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8827 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8828 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8829 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8831 * cleanups.h: New file.
8832 * cleanups.c: New file.
8833 * Makefile.in (SFILES): Add cleanups.c.
8834 (HFILES_NO_SRCDIR): Add cleanups.h.
8835 (COMMON_OBS): Add cleanups.o.
8836 * defs.h (struct cleanup): Moved to cleanups.h.
8837 (do_cleanups,do_final_cleanups): Ditto.
8838 (discard_cleanups,discard_final_cleanups): Ditto
8839 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8840 (save_cleanups,save_final_cleanups): Ditto.
8841 (restore_cleanups,restore_final_cleanups): Ditto.
8842 (null_cleanup): Ditto.
8843 (make_my_cleanup,make_my_cleanup2): Ditto.
8844 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8845 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8846 (do_cleanups,do_final_cleanups): Ditto.
8847 (discard_cleanups,discard_final_cleanups): Ditto
8848 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8849 (save_cleanups,save_final_cleanups): Ditto.
8850 (restore_cleanups,restore_final_cleanups): Ditto.
8851 (null_cleanup): Ditto.
8852 (make_my_cleanup,make_my_cleanup2): Ditto.
8853 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8855 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8857 (make_cleanup_dyn_string_delete): Ditto.
8858 (make_cleanup_ui_file_delete): Ditto.
8859 (make_cleanup_ui_out_redirect_pop): Ditto.
8860 (make_cleanup_free_section_addr_info): Ditto.
8861 (make_cleanup_restore_integer): Ditto.
8862 (make_cleanup_unpush_target): Ditto.
8863 (make_cleanup_value_free_to_mark): Ditto.
8864 (make_cleanup_value_free): Ditto.
8865 (make_cleanup_free_so): Ditto.
8869 New option "set debug auto-load".
8870 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8871 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8872 (auto_load_safe_path_vec_update)
8873 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8875 (file_is_auto_load_safe): New parameters debug_fmt and ....
8876 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8877 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8878 caller by explanatory string.
8879 (_initialize_auto_load): Register "set debug auto-load".
8880 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8882 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8883 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8884 by explanatory string.
8885 * main.c (captured_main): Likewise.
8886 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8887 (source_section_scripts): Likewise.
8891 New option "set auto-load safe-path".
8892 * NEWS: New commands "set auto-load safe-path"
8893 and "show auto-load safe-path".
8894 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8895 (auto_load_safe_path, auto_load_safe_path_vec)
8896 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8897 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8898 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8899 (source_gdb_script_for_objfile): New variable is_safe. Call
8900 file_is_auto_load_safe. Return if it is not.
8901 (struct loaded_script): New field loaded.
8902 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8903 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8904 output "Missing" to "No".
8905 (_initialize_auto_load): New variable cmd. Initialize
8906 auto_load_safe_path. Register "set auto-load safe-path",
8907 "show auto-load safe-path" and "add-auto-load-safe-path".
8908 * auto-load.h (maybe_add_script): Add parameter loaded.
8909 (file_is_auto_load_safe): New declaration.
8910 * config.in: Regenerate.
8911 * configure: Regenerate.
8912 * configure.ac: New parameters --with-auto-load-safe-path
8913 and --without-auto-load-safe-path.
8914 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8915 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8916 * main.c (captured_main): Check file_is_auto_load_safe for
8918 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8919 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8920 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8925 auto-load: Implementation.
8926 * NEWS: New descriptions for "info auto-load",
8927 "info auto-load gdb-scripts", "info auto-load python-scripts",
8928 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8929 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8930 and "show auto-load-scripts". New description for "set auto-load",
8931 "show auto-load", "set auto-load gdb-scripts",
8932 "show auto-load gdb-scripts", "set auto-load python-scripts",
8933 "show auto-load python-scripts", "set auto-load local-gdbinit",
8934 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8935 "show auto-load libthread-db".
8936 * auto-load.c: Remove include python/python-internal.h. Add includes
8937 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8939 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8940 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8941 (gdbpy_global_auto_load): Rename to ...
8942 (global_auto_load): ... here.
8943 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8944 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8945 (script_language_gdb, source_gdb_script_for_objfile): New.
8946 (struct loaded_script): New field language.
8947 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8949 (maybe_add_script): Add parameter language. Drop redundant
8950 entry.full_path initialization. Initialize entry.language and
8952 (auto_load_objfile_script): Change parameter suffix to language.
8953 Remove the call of maybe_add_script.
8954 Call language->source_script_for_objfile.
8955 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8957 (collect_matching_scripts): Adjust it for
8958 struct collect_matching_scripts_data.
8959 (auto_load_info_scripts_pattern_nl): New variable.
8960 (info_auto_load_scripts): Rename to ...
8961 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8962 for struct collect_matching_scripts_data.
8963 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8964 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8965 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8966 (auto_load_info_cmdlist_get): New.
8967 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8968 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8969 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8970 "info auto-load local-gdbinit".
8971 * auto-load.h (struct script_language): New.
8972 (gdbpy_global_auto_load): Rename to ...
8973 (global_auto_load): ... here.
8974 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8975 (auto_load_local_gdbinit_loaded): New declarations.
8976 (maybe_add_script): New parameter language.
8977 (auto_load_objfile_script): Change parameter suffix to language.
8978 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8979 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8980 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8982 * linux-thread-db.c: Include auto-load.h and ctype.h.
8983 (auto_load_thread_db, show_auto_load_thread_db): New.
8984 (struct thread_db_info): New field filename.
8985 (delete_thread_db_info): Call xfree for FILENAME.
8986 (try_thread_db_load): Initialize FILENAME.
8987 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8988 if !AUTO_LOAD_THREAD_DB.
8989 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8990 (_initialize_thread_db): Install auto_load_thread_db
8991 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8992 as "info auto-load libthread-db".
8993 * main.c (captured_main): Rename gdbpy_global_auto_load to
8994 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8995 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8996 (print_gdb_help): Extend the help for 'local init file'.
8997 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8998 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8999 (auto_load_scripts): Rename to ...
9000 (auto_load_python_scripts): ... here, update the comment.
9001 (gdbpy_load_auto_script_for_objfile): New declaration.
9002 (show_auto_load_python_scripts, script_language_python)
9003 (gdbpy_load_auto_script_for_objfile): New.
9004 (source_section_scripts): Refactor the code.
9005 (load_auto_scripts_for_objfile): Rename to ...
9006 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
9007 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
9008 (info_auto_load_python_scripts): New.
9009 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
9010 Rename "set auto-load-scripts" to "set auto-load python-scripts".
9011 Register "set auto-load-scripts" as its deprecated alias. Register
9012 "info auto-load python-scripts". Register "info auto-load-scripts" as
9013 its deprecated alias.
9014 (load_auto_scripts_for_objfile): Rename to ...
9015 (gdbpy_load_auto_scripts_for_objfile): ... here.
9016 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
9017 (gdbpy_load_auto_scripts_for_objfile): ... here.
9021 auto-load: Move files.
9022 * Makefile.in (SFILES): Add auto-load.c.
9023 (HFILES_NO_SRCDIR): Add auto-load.h.
9024 (COMMON_OBS): Add auto-load.o.
9025 (distclean): Change .gdbinit for gdb-gdb.gdb.
9026 * auto-load.c: New file, with parts from python/py-auto-load.c.
9027 * auto-load.h: New file, with parts from python/python.h.
9028 * configure: Regenerate.
9029 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
9030 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
9031 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
9032 * main.c: Include auto-load.h.
9033 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
9034 command.h, observer.h and progspace.h to auto-load.c. Add include
9036 (gdbpy_global_auto_load, struct auto_load_pspace_info)
9037 (struct loaded_script, auto_load_pspace_data)
9038 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
9039 (hash_loaded_script_entry, eq_loaded_script_entry)
9040 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
9041 (maybe_add_script): Move to auto-load.c.
9042 (source_section_scripts): Change maybe_add_script parameters passing,
9043 use script_not_found_warning_print.
9044 (clear_section_scripts, auto_load_objfile_script)
9045 (auto_load_new_objfile, loaded_script_ptr)
9046 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
9047 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
9048 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
9049 auto_load_new_objfile and info_auto_load_scripts initizations to
9051 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
9056 * charset.c (find_charset_names): Remove variables ix and elt.
9057 Use free_char_ptr_vec.
9058 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
9059 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9060 debugdir_end. New variable debugdir_len.
9061 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
9062 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
9064 * progspace.c (clear_program_space_solib_cache): Remove variables ix
9065 and elt. Use free_char_ptr_vec.
9066 * source.c (add_path): Remove variables argv, arg and argv_index.
9067 New variables dir_vec, back_to, ix and name.
9068 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
9069 make_cleanup_freeargv. Remove variable separator. Simplify the code
9070 no longer expecting DIRNAME_SEPARATOR.
9071 (openp): Remove variable p, p1 and len. New variables dir_vec,
9072 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
9073 no longer expecting DIRNAME_SEPARATOR.
9074 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9075 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9077 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9078 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9079 (dirnames_to_char_ptr_vec): New functions.
9084 * source.c (add_path): Remove always true conditional 'p == 0' and
9085 unindent its code block.
9089 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9090 (FIELD_BITPOS_LVAL): ... this.
9091 (FIELD_BITPOS): New.
9092 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9093 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9094 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9096 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9098 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9099 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9100 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9105 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9106 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9107 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9108 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9109 * jv-lang.c (java_link_class_type): Likewise, once.
9110 * stabsread.c (read_enum_type): Likewise.
9114 * common/agent.c (agent_run_command): Add one more parameter `len'.
9116 * common/agent.h: Update declaration.
9117 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9119 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9124 * value.c (value_actual_type): New function.
9125 * value.h (value_actual_type): New declaration.
9126 * varobj.c (update_type_if_necessary): New function.
9127 (varobj_create): Call value_actual_type instead of
9129 (install_dynamic_child): distinct changed and type changed MI variable
9131 (update_dynamic_varobj_children): Updated for install_dynamic_child
9132 change. All callers updated.
9133 (varobj_update): Support for MI variable object type change if
9134 the value changed and RTTI is used to determine the type.
9135 (create_child_with_value): Call value_actual_type instead of
9137 (adjust_value_for_child_access): Extended with a new parameter which
9138 specify whether the given value should be casted to enclosing type.
9139 All callers updated.
9143 Import gnulib module inttypes from git
9144 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9145 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9146 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9147 gnulib/m4/inttypes-pri.m4
9148 * aclocal.m4, config.in, configure: Regenerated.
9149 * gnulib/Makefile.am: Update.
9150 * gnulib/Makefile.in: Update.
9151 * gnulib/m4/gnulib-cache.m4: Update.
9152 * gnulib/m4/gnulib-comp.m4: Update.
9153 * gnulib/inttypes.in.h: New.
9154 * gnulib/m4/inttypes-pri.m4: New.
9155 * gnulib/m4/inttypes.m4: New.
9159 * infrun.c (resume): Update PC address to the real PC after
9160 preparing to do displaced stepping.
9164 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9165 All callers updated.
9169 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9173 * dwarf2read.c (create_all_type_units): Renamed from
9174 create_debug_types_hash_table. All callers updated.
9176 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9177 local type_sig to sig_type, type_offset to type_offset_in_tu.
9178 (hash_signatured_type): Renamed from hash_type_signature,
9179 all callers updated.
9180 (eq_signatured_type): Renamed from eq_type_signature,
9181 all callers updated.
9182 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9183 (process_enumeration_scope): Ditto.
9184 (lookup_signatured_type_at_offset): Ditto.
9185 (load_full_type_unit, read_signatured_type): Ditto.
9189 * remote.c (async_remote_interrupt): Correct function name in
9191 (async_remote_interrupt_twice): Ditto.
9195 * source.c (find_and_open_source): Consistently pass resulting
9196 full path through xfullpath.
9200 Provide more specific displaced-stepping memory error message.
9201 * infrun.c (displaced_step_prepare): New variable status. Call
9202 target_read_memory instead of read_memory, provide more specific
9208 * darwin-nat.c (darwin_execvp): Revert previous patch.
9213 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9218 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9223 New command 'explore' which helps explore values and types in
9225 * NEWS: Add an entry about the new 'explore' command.
9226 * data-directory/Makefile.in: Add gdb/command/explore.py
9227 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9228 command using the GDB Python API.
9232 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9233 extension in jump target calculation.
9237 * mips-tdep.c (mips32_next_pc): Handle JALX.
9241 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9245 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9246 and gnulib/m4/gnulib-tool.m4.
9250 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9251 (load_partial_dies): Clarify comment.
9252 (find_partial_die): Support rereading type units.
9253 Clarify CU handling, if we know offset is in CU, don't search for the
9254 containing CU. Add comment regarding memory waste.
9258 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9259 i386/x32-avx and i386/x32-avx-linux.
9260 (i386/x32-expedite): New.
9261 (i386/x32-linux-expedite): Likewise.
9262 (i386/x32-avx-expedite): Likewise.
9263 (i386/x32-avx-linux-expedite): Likewise.
9264 ($(outdir)/i386/x32.dat): Likewise.
9265 ($(outdir)/i386/x32-linux.dat): Likewise.
9266 ($(outdir)/i386/x32-avx.dat): Likewise.
9267 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9269 * features/i386/x32-avx-linux.xml: New file.
9270 * features/i386/x32-avx.xml: Likewise.
9271 * features/i386/x32-core.xml: Likewise.
9272 * features/i386/x32-linux.xml: Likewise.
9273 * features/i386/x32.xml: Likewise.
9275 * features/i386/x32-avx-linux.c: New. Generated.
9276 * features/i386/x32-avx.c: Likewise.
9277 * features/i386/x32-linux.c: Likewise.
9278 * features/i386/x32.c: Likewise.
9279 * regformats/i386/x32-avx-linux.dat: Likewise.
9280 * regformats/i386/x32-avx.dat: Likewise.
9281 * regformats/i386/x32-linux.dat: Likewise.
9282 * regformats/i386/x32.dat: Likewise.
9286 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9287 code to kill the inferior.
9291 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9293 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9295 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9296 (yyvsp): New defines.
9297 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9299 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9301 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9303 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9305 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9310 * sparc64-tdep.c (sparc64_store_arguments)
9311 (sparc64_store_arguments): Fix coding style.
9315 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9316 complex floats, adjust some related comments and tighten a related
9318 (sparc64_extract_return_value): Handle complex floats.
9322 * dwarf2read.c (load_partial_dies): Change condition to assert.
9326 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9331 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9333 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9334 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9339 * linespec.c (decode_compound): Remove.
9340 (enum offset_relative_sign): New enum.
9341 (struct line_offset): New struct.
9342 (struct linespec): New struct.
9343 (struct linespec_state): Move file_symtabs,
9344 user_filename, and user_function into struct linespec.
9345 Make result an anonymous struct holding vectors of
9346 symbolp and minsym_and_objfile_d.
9347 Add language member.
9348 (enum ls_token_type): New enum.
9349 (linespec_keywords): New array.
9350 (struct ls_token): New struct.
9351 (struct ls_parser): New struct.
9352 (linespec_lexer_lex_number): New function.
9353 (linespec_lexer_lex_keyword): New function.
9354 (is_ada_operator): New function.
9355 (skip_quote_char): New function.
9356 (copy_token_string): New function.
9357 (is_closing_quote_enclosed): New function.
9358 (find_parameter_list_end): New function.
9359 (linespec_lexer_lex_string): New function.
9360 (linespec_lexer_lex_one): New function.
9361 (linespec_lexer_consume_token): New function.
9362 (linespec_lexer_peek_token): New function.
9363 (cplusplus_error): Remove unused function.
9364 (find_methods): Update comment.
9365 (find_toplevel_char): Return const.
9366 (is_objc_method_format): Remove unused function.
9367 (find_toplevel_string): New function.
9368 (is_linespec_boundary): Remove.
9369 (symbol_not_found_error): New function.
9370 (find_method_overload_end): Remove function.
9371 (unexpected_linespec_error): New function.
9372 (keep_name_info): Remove.
9373 (linespec_parse_line_offset): New function.
9374 (linespec_parse_basic): New function.
9375 (canonicalize_linespec): New function.
9376 (decode_line_internal): Remove.
9377 (create_sals_line_offset): New function adapted from
9379 (convert_linespec_to_sals): New function.
9380 (parse_linespec): New function.
9381 (linespec_parser_new): New function.
9382 (linespec_state_destructor): Change parameter type to
9383 struct linespec_state *.
9384 Add language parameter.
9385 Remove freeing of moved members.
9386 (linespec_parser_delete): New function.
9387 (decode_line_full): Use parse_linespec and linespec_parser_new.
9388 (decode_line_1): Likewise.
9389 (decode_indirect): Rename to ...
9390 (linespec_expression_to_pc): ... this and rewrite
9391 to simply find CORE_ADDR, storing this result for later
9393 (locate_first_half): Remove.
9394 (deocde_objc): Add parameter LS.
9395 Initialize new struct collect_info members.
9396 Handle minimal symbols, too.
9397 (decode_compound): Delete.
9398 (lookup_prefix_sym): Rewrite.
9399 (compare_msymbols): New function.
9400 (find_method): Rewrite.
9401 Do not call cplusplus_error.
9402 (symtabs_from_filename): Rewrite.
9403 (collect_function_symbols): Delete.
9404 (find_function_symbols): Rewrite without ARGPTR-style
9406 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9407 (decode_dollar): Adapted and renamed to ...
9408 (linespec_parse_variable): ... this.
9409 (find_linespec_symbols): New function.
9410 (decode_label): Adapted and renamed to ...
9411 (find_label_symbols): ... this.
9412 (decode_digits_list_mode): Add and use LS argument.
9413 (decode_digits_ordinary): Likewise.
9414 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9415 If in list mode, allow any symbol class. Otherwise, only
9416 permit LOC_BLOCK symbols.
9417 (minsym_found): Update comments.
9418 (search_minsyms_for_name): Do not convert the matching symbol
9419 into a SAL. Simply push the symbol and objfile into the
9421 (decode_variable): Delete. Contents adapted into
9422 find_linespec_symbols.
9424 * cp-support.c (SKIP_SPACE): Remove.
9425 (operator_tokens): Remove unused global.
9426 (cp_validate_operator): Remove.
9427 * cp-support.h (cp_validate_operator): Remove declaration.
9431 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9432 for TYPE_VPTR_FIELDNO.
9433 * valprint.c (valprint_check_validity): Make it global, move the
9434 function comment ...
9435 * value.h (valprint_check_validity): ... to this new declaration.
9439 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9440 the STATE32 api for i386 state.
9441 (i386_darwin_store_inferior_registers): Likewise.
9445 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9447 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9453 * darwin-nat.c (darwin_execvp): Set binary preference.
9457 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9461 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9462 of TRY_CATCH. Fix error handling.
9463 * python/py-value.c (convert_value_from_python): Move 'old'
9464 declaration to innermost scope.
9469 -Wshadow warning fix.
9470 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9471 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9472 Adjust code accordingly.
9476 * ada-lang.c (symbol_completion_add): Rename parameter
9477 "encoded" into "encoded_p". Ajust code and documentation
9483 -Wshadow warning fix.
9484 * ada-lang.c (symbol_completion_add): Rename parameter
9485 "wild_match" into wild_match_p. Update code and documentation
9490 * ada-lang.c (symbol_completion_match): Rename parameter
9491 "encoded" into "encoded_p". Ajust code and documentation
9497 -Wshadow warning fix.
9498 * ada-lang.c (symbol_completion_match): Rename parameter
9499 "wild_match" into "wild_match_p". Adjust code and function
9500 documentation accordingly.
9505 -Wshadow warning fix.
9506 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9507 "symbol_info" into "info". Adjust code accordingly.
9508 (ada_lookup_symbol): Likewise.
9512 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9513 of this function's documentation.
9518 -Wshadow warning fix.
9519 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9520 variable into "wild_match_p". Adjust code accordingly.
9525 -Wshadow warning fix.
9526 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9527 parameter into "wild_match_p". Adjust code accordingly.
9528 Document this parameter in the function description.
9533 -Wshadow warning fix.
9534 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9535 "wild_match" parameter to "wild_match_p" (-Wshadow).
9539 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9540 in function documentation.
9545 -Wshadow warning fix.
9546 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9547 variable into wild_match_p. Adjust code accordingly.
9552 * ada-valprint.c (ada_val_print_1): Move the code handling
9553 TYPE_CODE_ENUM inside its own lexical block. Declare
9554 variables len and val there, instead of in the function's
9555 top level block. Avoid declaring deref_val again in a way
9556 that shadows another variable of the same name declared
9557 in one of the up-level blocks. Just re-use the up-level
9562 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9563 Replace block_found argument by symbol_info. Adjust
9564 implementation accordingly. Add function documentation.
9565 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9567 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9568 * ada-exp.y (write_object_renaming): Adjust to new
9569 ada_lookup_encoded_symbol API.
9573 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9578 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9579 (v850_register_name): Add the mpu and fpu register names.
9580 (v850e_register_name): Add the mpu and fpu register names.
9581 (v850e2_register_name): New function.
9582 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9587 * NEWS: Add entry for Ada varobj support.
9591 * varobj.c (default_value_is_changeable_p): New function,
9592 extracted from varobj_value_is_changeable_p. Add declaration.
9593 (ada_value_is_changeable_p): New function, extracted from
9594 varobj_value_is_changeable_p. Add declaration.
9595 (struct language_specific): New field "value_is_changeable_p".
9596 (languages): Add entries for new field.
9597 (varobj_create): Set language before calling install_new_value.
9598 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9599 "value_is_changeable_p" language callback.
9603 * ada-varobj.h, ada-varobj.c: New files.
9604 * Makefile.in (SFILES): Add ada-varobj.c.
9605 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9606 (COMMON_OBS): Add ada-varobj.o.
9610 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9611 (struct language_specific): New field "value_has_mutated".
9612 (languages): Set field "value_has_mutated" in each entry of array.
9613 (varobj_value_has_mutated): New function.
9614 (varobj_udpdate): Add handling of type mutation.
9615 (value_of_root): Add handling of type mutation.
9616 (ada_value_has_mutated): New function.
9620 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9621 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9625 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9626 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9631 * .dir-locals.el: New file.
9635 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9639 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9644 Eliminate struct ui_stream.
9646 * ui-out.h (struct ui_stream): Delete.
9647 (ui_out_field_stream): Adjust prototype.
9648 (ui_out_stream_new, ui_out_stream_delete)
9649 (make_cleanup_ui_out_stream_delete): Delete declarations.
9650 * ui-out.c (ui_out_field_stream): Change prototype to take a
9651 ui_file instead of a ui_stream. Adjust.
9652 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9653 (make_cleanup_ui_out_stream_delete): Delete.
9654 * breakpoint.c (print_breakpoint_location)
9655 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9656 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9657 * disasm.c (dump_insns): Ditto.
9658 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9660 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9661 ui_stream/ui_out_stream_new.
9662 * infcmd.c (print_return_value): Ditto.
9663 * osdata.c (info_osdata_command): Don't allocate a local
9665 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9666 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9667 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9668 allocate a local ui_stream.
9669 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9670 instead of ui_stream/ui_out_stream_new.
9671 (list_args_or_locals): Don't allocate a local ui_stream.
9672 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9673 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9674 ui_stream/ui_out_stream_new.
9675 * cli/cli-setshow.c (do_setshow_command): Ditto.
9679 * arm-linux-tdep.c (arm_linux_init_abi): Call
9680 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9681 * arm-tdep.c (arm_process_record): New function.
9682 (deallocate_reg_mem): New function.
9683 (decode_insn): New function.
9684 (thumb_record_branch): New function.
9685 (thumb_record_ldm_stm_swi(): New function.
9686 (thumb_record_misc): New function.
9687 (thumb_record_ld_st_stack): New function.
9688 (thumb_record_ld_st_imm_offset): New function.
9689 (thumb_record_ld_st_reg_offset(): New function.
9690 (thumb_record_add_sub_cmp_mov): New function.
9691 (thumb_record_shift_add_sub): New function.
9692 (arm_record_coproc_data_proc): New function.
9693 (arm_record_coproc): New function.
9694 (arm_record_b_bl): New function.
9695 (arm_record_ld_st_multiple): New function.
9696 (arm_record_ld_st_reg_offset): New function.
9697 (arm_record_ld_st_imm_offset): New function.
9698 (arm_record_data_proc_imm): New function.
9699 (arm_record_data_proc_misc_ld_str): New function.
9700 (arm_record_extension_space): New function.
9701 (arm_record_strx): New function.
9702 (sbo_sbz): New function.
9703 (struct insn_decode_record): New structure for arm insn record.
9704 (REG_ALLOC): New macro for reg allocations.
9705 (MEM_ALLOC): New macro for memory allocations.
9706 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9710 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9711 (store_register): Likewise.
9715 * MAINTAINERS (Write After Approval): Add myself to the list.
9719 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9720 Describe also the option "auto".
9724 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9725 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9729 * jit.c (jit_read_code_entry): Compute alignment and offset of
9730 int64_t member before computing entry_size.
9734 Python scripting: Add new method Value.referenced_value to
9735 gdb.Value which can dereference pointer as well as reference
9737 * NEWS: Add entry under 'Python scripting' about the new method
9738 Value.referenced_value on gdb.Value objects.
9739 * python/py-value.c (valpy_referenced_value): New function
9740 defining a new method on gdb.Value objects which can dereference
9741 pointer and reference values.
9745 * MAINTAINERS (Write After Approval): Add myself to the list.
9749 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9750 in addition to "main".
9754 * expression.h (op_name): Add declaration.
9755 * expprint.c (op_name): Remove declaration. Make non-static.
9756 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9760 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9762 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9763 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9764 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9765 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9766 (linux_nat_get_siginfo): Likewise.
9767 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9768 (linux_nat_get_siginfo): Likewise.
9769 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9770 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9771 * procfs.c (gdb_siginfo_t): Likewise.
9775 * .gitignore: Ignore more files.
9779 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9784 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9789 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9790 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9791 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9793 * dwarf2expr.h (cu_offset, sect_offset): New types.
9794 (struct dwarf_expr_context_funcs) <dwarf_call>
9795 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9797 (struct dwarf_expr_context) <len>: Improve the comment.
9798 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9799 cu_offset and sect_offset.
9800 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9801 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9802 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9803 * dwarf2loc.h: Include dwarf2expr.h.
9804 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9806 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9807 Improve the comment.
9808 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9809 (struct signatured_type, struct line_header, struct partial_die_info)
9810 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9811 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9812 (get_die_type_at_offset, create_cus_from_index)
9813 (create_signatured_type_table_from_index, dw2_get_file_names)
9814 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9815 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9816 (create_debug_types_hash_table, process_psymtab_comp_unit)
9817 (load_partial_comp_unit, create_all_comp_units)
9818 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9819 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9820 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9821 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9822 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9823 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9824 (find_partial_die, read_attribute_value, lookup_die_type)
9825 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9826 (is_ref_attr): New function comment.
9827 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9828 Use cu_offset and sect_offset.
9829 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9830 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9831 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9832 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9833 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9834 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9835 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9841 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9842 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9844 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9848 * NEWS: Describe new options --init-command=FILE, -ix and
9849 --init-eval-command=COMMAND, -iex.
9850 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9851 CMDARG_INIT_COMMAND.
9852 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9853 "init-command", "init-eval-command", "ix" and "iex" to the variable
9854 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9855 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9856 (print_gdb_help): Describe --init-command=FILE, -ix and
9857 --init-eval-command=COMMAND, -iex.
9862 * main.c (struct cmdarg): Move it here from main. Add more comments.
9863 (cmdarg_s, VEC (cmdarg_s)): New.
9864 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9865 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9866 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9867 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9872 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9877 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9882 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9887 * source.c (add_path): Use memmove instead of strcpy because the
9892 * value.h (set_value_parent): Add declaration.
9893 * value.c (set_value_parent): New function.
9894 (value_address): If VALUE->PARENT is not NULL, then use it as
9895 the base address instead of VALUE->LOCATION.address.
9896 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9897 the same as OBJ's address. Adjust V's offset accordingly.
9902 PR breakpoints/10738
9903 * dwarf2read.c (use_deprecated_index_sections): New global.
9904 (struct partial_die_info): New member may_be_inlined.
9905 (read_partial_die): Set may_be_inlined where appropriate.
9906 (add_partial_subprogram): Add partial symbols for partial
9907 DIEs that may be inlined.
9908 (new_symbol_full): Add inlined subroutines to the current
9910 (write_psymtabs_to_index): Bump version number.
9911 (dwarf2_read_index): Read only version 6 indices unless
9912 use_deprecated_index_sections is set.
9913 * linespec.c (symbol_and_data_callback): New structure.
9914 (iterate_inline_only): New function.
9915 (iterate_over_all_matching_symtabs): New argument
9916 "include_inline". If nonzero, also call the callback for
9917 symbols representing inlined subroutines.
9918 (lookup_prefix_sym): Pass extra argument to the above.
9919 (find_function_symbols): Likewise.
9920 (add_matching_symbols_to_info): Likewise.
9921 * NEWS: Mention that GDB can now set breakpoints on inlined
9926 * p-typeprint.c (pascal_type_print_method_args):
9927 Fix display of parameter of methods.
9931 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9932 Add missing prototype.
9937 Fix false compilation warning.
9938 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9943 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9944 (arm_register_g_packet_guesses): New function.
9945 (arm_gdbarch_init): Don't force a target description with
9946 registers when the executable is detected as M-profile. Instead
9947 set gdbarch->tdep->is_m. Register `g' packet guesses.
9948 (_initialize_arm_tdep): Initialize the new target description.
9949 * features/arm-with-m-fpa-layout.xml: New description.
9950 * features/arm-with-m-fpa-layout.c: New, generated.
9954 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9955 Update function description.
9956 (insert_bp_location): Do not wipe bl->target_info out.
9957 * mem-break.c: #include "gdb_string.h".
9958 (default_memory_insert_breakpoint): Do not call target_read_memory
9959 with a pointer to the breakpoint's shadow_contents buffer. Use
9960 a local buffer instead.
9961 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9965 * NEWS: Mention "info vtbl", not "info vtable".
9966 * cp-support.c (info_vtbl_command): Fix comment.
9967 (_initialize_cp_support): Fix text.
9971 * cp-valprint.c (cp_print_value_fields): Use
9972 print_function_pointer_address for vtable slot.
9976 * gnu-v3-abi.c (struct value_and_voffset): New.
9977 (hash_value_and_voffset, eq_value_and_voffset)
9978 (compare_value_and_voffset, compute_vtable_size)
9979 (print_one_vtable, gnuv3_print_vtable): New functions.
9980 (init_gnuv3_ops): Initialize 'print_vtable' field.
9981 * cp-support.c (info_vtbl_command): New function.
9982 (_initialize_cp_support): Add "info vtbl".
9983 * cp-abi.h (cplus_print_vtable): Declare.
9984 (struct cp_abi_ops) <print_vtable>: New field.
9985 * cp-abi.c (cplus_print_vtable): New function.
9990 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9991 iterate_over_symbols.
9995 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9996 DW_OP_GNU_parameter_ref.
10000 Fix double prompt of 'interpreter-exec mi'.
10001 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
10002 (mi_interpreter_resume): use it.
10003 (mi_execute_command_input_handler): New function.
10004 * mi/mi-main.c (mi_execute_command): Move prompt printing to
10005 mi_execute_command_input_handler.
10009 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
10011 (darwin_debug_port_info): Make static.
10012 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
10013 * machoread.c (_initialize_machoread): Add prototype.
10014 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
10015 (i386_darwin_set_control, i386_darwin_get_control)
10016 i386_darwin_dr_set_addr, i386_darwin_get_addr)
10017 i386_darwin_get_status, i386_darwin_get_control):
10018 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
10022 * ax-gdb.c (gen_usual_unary): Remove special handling of
10023 enum and bool types.
10027 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
10031 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
10035 * aix-thread.c (fill_sprs): Store the floating point registers
10036 at the correct offsets into vals.
10040 * NEWS: Mention symbol-reloading has been deleted.
10041 * symfile.c (symbol_reloading): Delete.
10042 (show_symbol_reloading): Delete.
10043 (_initialize_symfile): Delete set/show symbol-reloading.
10045 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
10046 read_in_chain until we have successfully read it in.
10047 (load_full_comp_unit): Ditto.
10048 (read_signatured_type): Add comment.
10052 * stabsread.c (fix_common_block): Change type of valu argument
10057 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
10062 * common/linux-procfs.c (linux_proc_get_int): New, from
10063 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
10065 (linux_proc_get_tgid): Only call linux_proc_get_int.
10066 (linux_proc_get_tracerpid): New.
10067 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10068 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10069 linux_proc_pid_has_state.
10070 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10071 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10072 (linux_ptrace_attach_warnings): New.
10073 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10075 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10076 (linux_nat_attach): New variables ex, buffer, message and message_s.
10077 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10081 * Makefile.in (linux-ptrace.o): New.
10082 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10084 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10085 * common/linux-ptrace.c: New file.
10086 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10087 * config/arm/linux.mh: Likewise.
10088 * config/i386/linux.mh: Likewise.
10089 * config/i386/linux64.mh: Likewise.
10090 * config/ia64/linux.mh: Likewise.
10091 * config/m32r/linux.mh: Likewise.
10092 * config/m68k/linux.mh: Likewise.
10093 * config/mips/linux.mh: Likewise.
10094 * config/pa/linux.mh: Likewise.
10095 * config/powerpc/linux.mh: Likewise.
10096 * config/powerpc/ppc64-linux.mh: Likewise.
10097 * config/powerpc/spu-linux.mh: Likewise.
10098 * config/s390/s390.mh: Likewise.
10099 * config/sparc/linux.mh: Likewise.
10100 * config/sparc/linux64.mh: Likewise.
10101 * config/xtensa/linux.mh: Likewise.
10102 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10103 common/linux-procfs.c.
10104 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10109 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10110 CREATE_BREAKPOINT_FLAGS_INSERTED.
10111 (create_breakpoint_sal, create_breakpoints_sal)
10112 (base_breakpoint_create_breakpoints_sal)
10113 (tracepoint_create_breakpoints_sal)
10114 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10116 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10117 (ftrace_command, strace_command): Adjust.
10118 (create_tracepoint_from_upload): Pass
10119 CREATE_BREAKPOINT_FLAGS_INSERTED.
10120 * breakpoint.h (enum breakpoint_create_flags): New.
10121 (create_breakpoint): New flags parameter.
10122 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10123 * python/py-breakpoint.c (bppy_init): Adjust.
10124 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10125 * spu-tdep.c (spu_catch_start): Adjust.
10131 * remote.c (struct remote_state): New field `starting_up'.
10132 (remote_start_remote): Set and clear it.
10133 (remote_can_download_tracepoint): If starting up, return false.
10137 * inferior.h (struct inferior): Remove fields any_syscall_count,
10138 syscalls_counts and total_syscalls_count. Move them to new
10139 struct catch_syscall_inferior_data in breakpoint.c.
10140 * breakpoint.c: Call DEF_VEC_I(int).
10141 (struct catch_syscall_inferior_data): New.
10142 (get_catch_syscall_inferior_data): New.
10143 (catch_syscall_inferior_data_cleanup): New.
10144 (insert_catch_syscall): Update to access data in
10145 struct catch_syscall_inferior_data.
10146 (insert_catch_syscall): Likewise.
10147 (remove_catch_syscall): Likewise.
10148 (remove_catch_syscall): Likewise.
10149 (is_syscall_catchpoint_enabled): Likewise.
10150 (add_catch_command): Likewise.
10151 (_initialize_breakpoint): Register cleanup.
10152 * breakpoint.h: Removed DEF_VEC_I(int).
10153 * dwarf2loc.c: Call DEF_VEC_I(int).
10154 * mi/mi-main.c: Likewise.
10158 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10162 * aix-thread.c (_initialize_aix_thread): Add prototype.
10163 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10164 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10168 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10169 include of "amd64-nat.h".
10173 * buildsym.c (record_pending_block): Now static.
10174 * buildsym.h: (record_pending_block): Remove.
10178 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10182 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10183 producer_is_gxx_lt_4_6>: New fields.
10184 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10188 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10192 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10197 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10201 Fix -Wmissing-prototypes build.
10202 * arm-linux-nat.c (get_thread_id): Make it static.
10203 * xtensa-linux-nat.c (get_thread_id): Likewise.
10207 * server.c (process_point_options): If a conditional expression
10208 is found, only print a message if remote_debug is nonzero.
10212 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10213 of internal error for unknown/unsupported types.
10217 Fix CU relative vs. absolute DIE offsets.
10218 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10219 offset to offset_in_cu.
10220 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10222 (dwarf2_fetch_die_location_block): Rename parameter offset to
10223 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10227 * libunwind-frame.c: Rename to ...
10228 * ia64-libunwind-tdep.c: ... here.
10229 * libunwind-frame.h: Rename to ...
10230 * ia64-libunwind-tdep.h: ... here.
10231 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10232 ia64-libunwind-tdep.h.
10233 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10234 * README (--with-libunwind): Rename to ...
10235 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10236 * config.in: Regenerate.
10237 * configure: Regenerate.
10238 * configure.ac: New option --with-libunwind-ia64, make the
10239 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10240 Remove AC_DEFINE for HAVE_LIBUNWIND.
10241 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10242 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10243 Rename libunwind-frame in the general comment.
10244 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10245 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10246 Move forward declarations inside #ifndef. Rename libunwind-frame in
10247 the general comment.
10248 * ia64-tdep.c: Rename libunwind-frame.h #include to
10249 ia64-libunwind-tdep.h.
10250 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10251 (ia64_libunwind_descr): Rename libunwind-frame to
10252 ia64-libunwind-tdep in these function comments.
10253 * ia64-tdep.h: Rename libunwind-frame.h #include to
10254 ia64-libunwind-tdep.h.
10255 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10256 ia64-libunwind-tdep in that data comment.
10260 * libunwind-frame.h (struct frame_unwind): New declaration.
10264 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10265 "set breakpoint condition-evaluation" command.
10269 * sparc-stub.c: Move to stubs/
10270 * sh-stub.c: Likewise.
10271 * m68k-stub.c: Likewise.
10272 * m32r-stub.c: Likewise.
10273 * i386-stub.c: Likewise.
10277 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10278 linux_get_siginfo_type.
10280 * m68klinux-nat.c: Include "gdb_proc_service.h".
10281 (PTRACE_GET_THREAD_AREA): Define.
10282 (ps_get_thread_area): New function.
10286 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10288 (remote_query_attached): Likewise.
10289 (remote_static_tracepoint_marker_at): Likewise.
10290 (remote_set_permissions): Likewise.
10291 (remote_detach_1, extended_remote_attach_1): Likewise.
10292 (send_g_packet, remote_vkill): Likewise.
10293 (extended_remote_disable_randomization): Likewise.
10294 (remote_add_target_side_condition): Likewise.
10295 (remote_insert_breakpoint): Likewise.
10296 (remote_remove_breakpoint): Likewise.
10297 (remote_insert_watchpoint): Likewise.
10298 (remote_remove_watchpoint): Likewise.
10299 (remote_insert_hw_breakpoint): Likewise.
10300 (remote_insert_hw_breakpoint): Likewise.
10301 (remote_remove_hw_breakpoint): Likewise.
10302 (remote_download_command_source): Likewise.
10303 (remote_download_tracepoint): Likewise.
10304 (remote_download_trace_state_variable): Likewise.
10305 (remote_disable_tracepoint): Likewise.
10306 (remote_trace_set_readonly_regions): Likewise.
10307 (remote_get_tracepoint_status): Likewise.
10308 (remote_trace_find): Likewise.
10309 (remote_get_trace_state_variable_value): Likewise.
10310 (remote_set_disconnected_tracing): Likewise.
10311 (remote_set_circular_trace_buffer): Likewise.
10312 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10313 (remote_use_agent): Likewise.
10314 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10319 * NEWS: Mention QProgramSignals.
10320 * inferior.h (update_signals_program_target): Declare.
10321 * infrun.c: (update_signals_program_target): New.
10322 (handle_command): Update the target of the new program signals
10324 * remote.c (PACKET_QProgramSignals): New enum.
10325 (last_program_signals_packet): New global.
10326 (remote_program_signals): New.
10327 (remote_start_remote): Update the target with the program signals
10329 (remote_protocol_features): Add entry for QPassSignals.
10330 (remote_open_1): Free anc clear last_program_signals_packet.
10331 (init_remote_ops): Install remote_program_signals.
10332 * target.c (update_current_target): Adjust.
10333 (target_program_signals): New.
10334 * target.h (struct target_ops) <to_program_signals>: New field.
10335 (target_program_signals): Declare.
10339 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10344 * m68klinux-nat.c (getregs_supplies): Make static.
10345 (getfpregs_supplies): Likewise.
10346 (have_ptrace_getregs): Likewise.
10350 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10351 in call to get_die_type_at_offset.
10355 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10356 * mi/mi-cmd-disas.c: Ditto.
10357 * mi/mi-cmd-env.c: Ditto.
10358 * mi/mi-cmd-file.c: Ditto.
10359 * mi/mi-cmd-stack.c: Ditto.
10360 * mi/mi-cmd-target.c: Ditto.
10361 * mi/mi-cmd-var.c: Ditto.
10362 * mi/mi-cmds.c: Ditto.
10363 * mi/mi-cmds.h: Ditto.
10364 * mi/mi-console.c: Ditto.
10365 * mi/mi-getopt.c: Ditto.
10366 * mi/mi-getopt.h: Ditto.
10367 * mi/mi-interp.c: Ditto.
10368 * mi/mi-main.c: Ditto.
10369 * mi/mi-out.c: Ditto.
10370 * mi/mi-parse.c: Ditto.
10371 * mi/mi-parse.h: Ditto.
10372 * mi/mi-symbol-cmds.c: Ditto.
10374 * mi/mi-getopt.h: Move mi_opt struct up.
10375 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10377 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10381 * proc-service.c (ps_pglobal_lookup): Set the current program
10386 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10390 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10395 * common/linux-osdata.c (linux_common_core_of_thread): New function
10397 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10398 call by linux_common_core_of_thread.
10399 (linux_nat_core_of_thread_1): Remove.
10400 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10401 * linux-thread-db.c: Include linux-osdata.h.
10402 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10403 linux_common_core_of_thread.
10407 * value.c (value_primitive_field): Don't fetch contents for
10412 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10416 * s390-nat.c: Include "gregset.h".
10420 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10421 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10422 (libunwind_load): New variable so_error, use it for dlerror. Try to
10423 load also LIBUNWIND_SO_7.
10427 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10428 is not NULL, and remove resulting dead code.
10432 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10433 prologue to sh_analyze_prologue.
10434 (sh_analyze_prologue): Make better use of such an upper limit, and
10435 generally be more cautious about accessing memory.
10439 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10440 _initialize_ia64_hpux_tdep.
10446 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10447 the register state is clear, supply explicit zero, instead of
10448 marking the register unavailable.
10452 * NEWS: Mention OpenVMS ia64 new target.
10456 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10457 (ia64_unw_accessors, ia64_unw_rse_accessors)
10458 (ia64_libunwind_descr): Declare.
10459 * ia64-vms-tdep.c: New file.
10460 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10461 (ia64_libunwind_descr): Make them public.
10462 * configure.tgt: Add ia64-*-*vms*.
10463 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10464 (ALLDEPFILES): Add ia64-vms-tdep.c
10468 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10469 * remote.c (PACKET_qXfer_uib): New enum value.
10470 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10471 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10472 (_initialize_remote): Call add_packet_config_cmd for
10477 * osabi.c (gdb_osabi_names): Add OpenVMS.
10478 (generic_elf_osabi_sniffer): Likewise.
10479 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10483 Removed unused code.
10484 * libunwind-frame.c (libunwind_frame_unwind)
10485 (libunwind_frame_base_address): Remove.
10486 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10490 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10491 remove trailing new line.
10492 (agent_run_command, agent_run_command): Add _ markup.
10493 (agent_capability_check): Likewise.
10497 * breakpoint.c (set_condition_evaluation_mode): Set
10498 CONDITION_EVALUATION_MODE unconditionally.
10502 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10503 * common/agent.h: Update declaration.
10504 * inf-child.c (inf_child_use_agent): New.
10505 (inf_child_can_use_agent): New.
10506 (inf_child_target): Initialize fields `to_use_agent'
10507 and `to_can_use_agent'.
10508 * agent.c (agent_new_objfile): New.
10509 (_initialize_agent): Add agent_new_objfile to new_objfile
10512 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10514 (linux_target_install_ops): Initialize field
10515 `to_static_tracepoint_markers_by_strid'.
10516 * remote.c (free_current_marker): Move it to ...
10517 * tracepoint.c (free_current_marker): ... here. New.
10518 (cleanup_target_stop): New.
10519 * tracepoint.h: Declare free_current_marker.
10520 * NEWS: Add one entry about `info static-tracepoint-marker'.
10524 * common/agent.c (agent_loaded_p): New.
10525 (agent_look_up_symbols): New global.
10526 * common/agent.h: Declare agent_loaded_p.
10530 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10531 (agent_capability_check, agent_capability_invalidate): New.
10532 (symbol_list): New array element.
10533 * common/agent.h (enum agent_capa): New.
10534 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10538 * target.h (struct target_ops) <to_use_agent>: New field.
10539 (struct target_ops) <to_can_use_agent>: New field.
10540 (target_use_agent, target_can_use_agent): New macro.
10541 * target.c (update_current_target): Update.
10542 * remote.c: New enum `PACKET_QAgent'.
10543 (remote_protocol_features): Add a new element.
10544 (remote_use_agent, remote_can_use_agent): New.
10545 (init_remote_ops): Initialize field `can_use_agent' with
10546 remote_can_use_agent. Intiailize field `use_agent' with
10548 * common/agent.c (use_agent): New global.
10549 * common/agent.h: Declare it.
10550 * tracepoint.c (info_static_tracepoint_markers_command): Add
10552 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10553 (COMMON_OBS): Add common/agent.o and agent.o
10554 (common-agent.o): New rule.
10559 * common/agent.c: New.
10560 * common/agent.h: New.
10561 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10563 * configure, configh.in: Regenerated.
10567 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10568 unless it exists for this architecture.
10572 * language.h (struct language_defn): New "method" la_read_var_value.
10573 * findvar.c: #include "language.h".
10574 (default_read_var_value): Renames read_var_value. Rewrite
10575 function description.
10576 (read_var_value): New function.
10577 * value.h (default_read_var_value): Add prototype.
10578 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10580 (ada_language_defn): Add entry for la_read_var_value.
10581 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10582 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10583 language_defn structures to add entry for new la_read_var_value
10589 PR breakpoints/13776:
10590 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10592 (delete_longjmp_breakpoint_at_next_stop): New.
10593 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10594 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10595 before deleting the inferior. Add comments.
10596 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10597 breakpoints immediately, but only on next stop. Move that code
10598 next to where we mark other breakpoints for deletion.
10602 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10604 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10609 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10613 Fix -Wmissing-prototypes build.
10614 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10615 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10616 (gdbsim_has_memory): Likewise.
10620 Fix -Wmissing-prototypes build.
10621 * charset.c (phony_iconv_open): Make static.
10622 (phony_iconv_close, phony_iconv): Likewise.
10623 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10624 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10626 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10627 * ser-mingw.c (create_select_thread): Make static.
10628 * windows-termcap.c (tgetent): New prototype.
10629 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10633 Fix -Wmissing-prototypes build.
10634 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10635 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10636 (_initialize_loadable): New prototypes.
10640 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10641 abbrev table, read_comp_unit will do it.
10645 Fix -Wmissing-prototypes build.
10646 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10647 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10648 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10649 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10650 (_initialize_arm_symbian_tdep): New prototype.
10651 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10652 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10653 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10655 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10656 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10658 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10659 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10660 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10662 * moxie-tdep.c (moxie_process_record): Likewise.
10663 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10664 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10665 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10666 (_initialize_rl78_tdep): New prototype.
10667 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10668 (_initialize_rx_tdep): New prototype.
10669 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10670 (_initialize_darwin_solib): New prototype.
10671 * solib-spu.c: Include solib-spu.h.
10672 (_initialize_spu_solib): New prototype.
10673 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10674 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10675 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10676 (tic6x_software_single_step): Make it static.
10677 (_initialize_tic6x_tdep): New prototype.
10681 Fix -Wmissing-prototypes build.
10682 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10683 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10687 Fix -Wmissing-prototypes build.
10688 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10689 (frv_have_stopped_data_address): Remove.
10693 Fix -Wmissing-prototypes build.
10694 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10695 * sh-tdep.c: Include sh64-tdep.h.
10696 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10697 * sh64-tdep.c: Include sh64-tdep.h.
10698 * sh64-tdep.h: New file.
10702 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10706 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10707 sp_regnum once the gdbarch_init_osabi hook has been called.
10711 * mips-tdep.c (mips32_bc1_pc): New function.
10712 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10713 BPOSGE32 and BPOSGE64 instructions.
10714 (deal_with_atomic_sequence): Likewise.
10715 (mips32_instruction_has_delay_slot): Likewise.
10722 * features/mips-dsp.xml: New file.
10723 * features/mips64-dsp.xml: New file.
10724 * features/mips-dsp-linux.xml: New file.
10725 * features/mips64-dsp-linux.xml: New file.
10726 * features/Makefile (WHICH): Add mips-dsp-linux and
10728 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10729 * features/mips-dsp-linux.c: New file.
10730 * features/mips64-dsp-linux.c: New file.
10731 * regformats/mips-dsp-linux.dat: New file.
10732 * regformats/mips64-dsp-linux.dat: New file.
10733 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10735 (mips64_linux_register_addr): Likewise.
10736 (mips64_linux_regsets_fetch_registers): Likewise.
10737 (mips64_linux_regsets_store_registers): Likewise.
10738 (mips64_linux_fetch_registers): Update call to
10739 mips64_linux_regsets_fetch_registers.
10740 (mips64_linux_store_registers): Update call to
10741 mips64_linux_regsets_store_registers.
10742 (mips_linux_read_description): Probe for DSP registers.
10743 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10744 and initialize_tdesc_mips64_dsp_linux.
10745 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10746 Remove padding of no longer used embedded register slots.
10747 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10748 (MIPS_RESTART_REGNUM): Redefine enum value.
10749 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10751 (mips_tx39_reg_names): Likewise.
10752 (mips_linux_reg_names): New array of register names for Linux
10754 (mips_register_name): Check for a null pointer in
10755 mips_processor_reg_names and return an empty string.
10756 (mips_register_type): Exclude embedded registers for the IRIX
10758 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10759 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10761 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10762 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10763 (mips_gdbarch_init): Likewise. Initialize internal register
10764 indices for the Linux ABI. Use dynamic numbers to refer to
10765 registers, as applicable, while parsing the target description.
10766 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10770 * frame.h (read_frame_register_unsigned): Fix typo in function
10775 * jit-reader.in [!__cplusplus]
10776 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10780 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10781 * configure: Regenerate.
10785 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10786 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10787 (ftrace_command, strace_command): Make static.
10788 * d-lang.c (_initialize_d_language): Declare.
10789 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10790 * dwarf2loc.c (_initialize_dwarf2loc):
10791 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10792 * exec.c (exec_get_section_table): Make static.
10793 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10794 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10795 * inferior.c (remove_inferior_command, add_inferior_command)
10796 (clone_inferior_command): Make static.
10797 * linux-nat.c (linux_nat_thread_address_space)
10798 (linux_nat_core_of_thread): Make static.
10799 * linux-tdep.c (_initialize_linux_tdep): Declare.
10800 * objc-lang.c (_initialize_objc_lang): Declare.
10801 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10803 (_initialize_opencl_language): Declare.
10804 * record.c (_initialize_record): Declare.
10805 * remote.c (demand_private_info, remote_get_tib_address)
10806 (remote_supports_cond_tracepoints)
10807 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10809 * skip.c (_initialize_step_skip): Declare.
10810 * symtab.c (skip_prologue_using_lineinfo): Make static.
10811 * tracepoint.c (delete_trace_state_variable)
10812 (trace_variable_command, delete_trace_variable_command)
10813 (get_uploaded_tsv, find_matching_tracepoint_location)
10814 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10816 * value.c (pack_unsigned_long): Make static.
10817 * varobj.c (varobj_ensure_python_env): Make static.
10818 * windows-tdep.c (_initialize_windows_tdep): Declare.
10819 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10823 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10825 (linux_init_abi): Install it as has_shared_address_space gdbarch
10830 * observer.c (observer_test_first_notification_function)
10831 (observer_test_second_notification_function)
10832 (observer_test_third_notification_function): Add declarations.
10836 * common/signals.c (default_target_signal_to_host)
10837 (default_target_signal_from_host): Move ...
10838 * arch-utils.c: ... here.
10839 * arch-utils.h (default_target_signal_to_host)
10840 (default_target_signal_from_host): Declare.
10842 * common/signals.c (target_signal_from_command): Move ...
10843 * infrun.c: ... here.
10844 * inferior.h (target_signal_from_command): Declare.
10845 * target.h (target_signal_from_command)
10846 (default_target_signal_from_host, default_target_signal_to_host):
10847 Delete declarations.
10849 * common/signals.c (_initialize_signals): Delete.
10853 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10854 both __cplusplus and !__cplusplus.
10858 * psymtab.c (find_and_open_source): Delete declaration.
10859 * source.c (find_and_open_source): Move comment ...
10860 * source.h (find_and_open_source): ... to this new declaration.
10864 * inline-frame.c: Include inline-frame.h.
10868 * tui/tui-data.c (set_gen_win_origin): Delete.
10869 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10870 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10874 * remote.c (encode_actions): Delete declaration.
10875 * tracepoint.c (encode_actions): Make extern.
10876 * tracepoint.h (encode_actions): Declare.
10880 * python/py-breakpoint.c: Include python.h.
10881 * python/py-continueevent.c (create_continue_event_object): Make
10883 * python/py-lazy-string.c (stpy_get_type): Make static.
10884 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10886 * python/py-utils.c (unicode_to_target_python_string): Make
10888 * python/py-value.c: Include python.h.
10892 * inferior.c (delete_threads_of_inferior): Delete.
10896 Import fallback definitions from glibc.
10898 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10899 ps_prochandle): Forward declare.
10900 (ps_err_e): Use glibc's comments.
10901 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10902 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10903 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10904 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10905 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10906 (struct ps_prochandle): Adjust comment.
10910 * ada-lang.c (ada_modulus_from_name): Delete.
10911 * ada-lex.l (lexer_init): Make static.
10917 * frame.c (read_frame_register_unsigned): New.
10918 * frame.h (read_frame_register_unsigned): Declare.
10919 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10921 (print_i387_control_word): New parameter `control_p'. Handle it.
10922 (i387_print_float_info): Handle unavailable float registers.
10926 * linespec.c (decode_line_2): Sort the list of methods
10927 alphabetically before presenting the user with a selection
10932 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10933 has_namespace_info.
10934 (dwarf2_read_abbrevs): Remove corresponding initialization.
10938 * NEWS: Mention new python command class gdb.COMMAND_USER.
10939 * cli/cli-cmds.c (show_user): Print error when used on a python
10941 (init_cli_cmds): Update documentation strings for "show user" and
10942 "set/show max-user-call-depth" to clarify that it does not apply to
10944 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10946 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10948 * top.c (execute_command): Only execute a user-defined command as a
10949 legacy macro if c->user_commands is set.
10953 * valprint.h (struct generic_val_print_decorations): New.
10954 (generic_val_print): Declare.
10955 * valprint.c (generic_val_print): New function.
10956 * p-valprint.c (p_decorations): New global.
10957 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10958 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10959 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10960 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10961 * m2-valprint.c (m2_decorations): New global.
10962 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10963 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10964 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10965 TYPE_CODE_ERROR>: Call generic_val_print.
10966 * f-valprint.c (f_decorations): New global.
10967 (f_val_print): Use print_function_pointer_address.
10968 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10969 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10970 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10972 * c-valprint.c (c_decorations): New global.
10973 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10974 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10975 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10976 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10977 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10978 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10983 * valprint.c (val_print): Update.
10984 * p-valprint (pascal_val_print): Return void.
10985 * p-lang.h (pascal_val_print): Return void.
10986 * m2-valprint.c (m2_val_print): Return void.
10987 * m2-lang.h (m2_val_print): Return void.
10988 * language.h (struct language_defn) <la_val_print>: Return void.
10989 * language.c (unk_lang_val_print): Return void.
10990 * jv-valprint.c (java_val_print): Return void.
10991 * jv-lang.h (java_val_print): Return void.
10992 * f-valprint.c (f_val_print): Return void.
10993 * f-lang.h (f_val_print): Return void.
10994 * d-valprint.c (d_val_print): Return void.
10995 (dynamic_array_type): Update.
10996 * d-lang.h (d_val_print): Return void.
10997 * c-valprint.c (c_val_print): Return void.
10998 * c-lang.h (c_val_print): Return void.
10999 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
11001 * ada-lang.h (ada_val_print): Return void.
11005 * value.h (val_print): Return void.
11006 * valprint.c (val_print): Return void.
11010 * value.h (common_val_print): Return void.
11011 * valprint.c (common_val_print): Return void.
11015 * value.h (value_print): Return void.
11016 * valprint.c (value_print): Return void.
11017 * p-valprint.c (pascal_value_print): Return void.
11018 * p-lang.h (pascal_value_print): Return void.
11019 * language.h (struct language_defn) <la_value_print>: Return
11021 * language.c (unk_lang_value_print): Return void.
11022 * jv-valprint.c (java_value_print): Return void.
11023 * jv-lang.h (java_value_print): Return void.
11024 * f-valprint.c (c_value_print): Don't declare.
11026 * c-valprint.c (c_value_print): Return void.
11027 * c-lang.h (c_value_print): Return void.
11028 * ada-valprint.c (ada_value_print): Return void.
11029 * ada-lang.h (ada_value_print): Return void.
11033 * value.c (value_primitive_field): Handle virtual base classes.
11037 * gdbtypes.h (struct vbase): Remove.
11041 * c-valprint.c (print_function_pointer_address): Move...
11042 * valprint.c: ... here. Make non-static.
11043 * m2-valprint.c (print_function_pointer_address): Remove.
11044 * valprint.h (print_function_pointer_address): Declare.
11048 * NEWS: Document the fact that one can provide a condition when
11049 creating an Ada exception catchpoint.
11053 * valprint.c (val_print_type_code_flags): Fix placement of
11058 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
11059 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
11060 environment variable before calling update-copyright.
11064 * gnulib/extra/update-copyright: Update to the latest from
11065 gnulib's git repository.
11066 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11067 variable to 2 instead of 1.
11071 * varobj.c (c_value_of_variable): Remove dead code.
11075 * ada-lex.p (processId): Do not modify already encoded IDs.
11076 Update function documentation.
11080 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11081 "name" with "struct symbol *name_sym".
11082 * ada-exp.y (write_var_or_type): Update call to
11083 ada_find_renaming_symbol.
11084 "name" with "struct symbol *name_sym". Adjust Implementation
11085 accordingly. Adjust the function documentation.
11089 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11090 * ada-lang.c (ada_find_any_type): Add advance declaration.
11091 Make static. Replace ada_find_any_symbol by
11092 ada_find_any_type_symbol.
11093 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11094 Improve function description. Make static.
11095 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11096 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11100 * ada-lang.c (struct tag_args): Delete.
11101 (ada_get_tsd_type): Function body moved up in source file.
11102 (ada_tag_name_1, ada_tag_name_2): Delete.
11103 (ada_get_tsd_from_tag): New function.
11104 (ada_tag_name_from_tsd): New function.
11105 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11106 to determine the tag name.
11110 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11112 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11117 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11121 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11126 * ada-lang.c (constrained_packed_array_type): If there is a
11127 parallel XA type, use it to determine the array index type.
11131 * ada-valprint.c (ada_val_print_1): If our value is a reference
11132 to an array descriptor, dereference it before converting it
11137 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11138 creating fixed value.
11139 (ada_value_ind, ada_coerce_ref, assign_component)
11140 (ada_evaluate_subexp): Remove call to unwrap_value before
11141 call to ada_to_fixed_value.
11145 * ada-lang.c (to_fixed_array_type): Set result's type name.
11149 * ada-lang.c (catch_ada_exception_command_split): Add new
11150 argument cond_string. Add support for condition at end of
11151 "catch exception" commands.
11152 (ada_decode_exception_location): Add new argument cond_string.
11153 Update call to catch_ada_exception_command_split.
11154 (create_ada_exception_catchpoint): Add new argument cond_string.
11155 Set the breakpoint condition if needed.
11156 (catch_ada_exception_command): Update call to
11157 ada_decode_exception_location.
11158 (ada_decode_assert_location): Add function documentation.
11159 Add support for condition at end of "catch assert" command.
11160 (catch_assert_command): Update calls to ada_decode_assert_location
11161 and create_ada_exception_catchpoint.
11165 Fix disp-step-syscall.exp: fork: single step over fork.
11166 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11167 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11168 comment, change parameters gdbarch and ptid to regcache. Remove
11169 parameter regcache, initialize gdbarch from regcache here.
11170 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11172 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11174 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11175 'syscall'. Make the 'int' check more strict.
11179 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11180 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11181 (i386_linux_intx80_sysenter_syscall_record): ... here.
11182 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11183 Use the renamed function name.
11187 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11188 * breakpoint.c (until_break_command): Likewise.
11189 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11190 * infcall.c (call_function_by_hand): Likewise.
11191 * infcmd.c (finish_forward): Likewise.
11192 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11196 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11197 avoid variable assignments inside condition.
11201 Fix static analysis issue found by cppcheck.
11202 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11203 uninitialized BUF for size 2.
11209 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11210 (mips16_instruction_has_delay_slot): Likewise.
11211 (mips_segment_boundary): Likewise.
11212 (mips_adjust_breakpoint_address): Likewise.
11213 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11218 * infrun.c (handle_inferior_event): Don't proceed through
11219 shared library trampolines if stepping at the machine
11224 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11229 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11230 (sh_stub_unwind_sniffer): New functions.
11231 (sh_stub_unwind): New variable.
11232 (sh_gdbarch_init): Wire everything.
11236 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11237 (linux_nat_post_attach_wait): Adjust to use
11238 linux_proc_pid_is_stopped.
11239 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11240 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11241 based on pid_is_stopped from both linux-nat.c and
11242 gdbserver/linux-low.c, and renamed.
11246 * remote.c (remote_watchpoint_addr_within_range): New function.
11247 (init_remote_ops): Use it.
11251 * target.h (target_watchpoint_addr_within_range): Document macro.
11255 * stack.c (set_last_displayed_sal): Issue internal_error instead
11256 of warning, and issue it after clearing the last displayed sal.
11261 * breakpoint.c (until_break_command): Install breakpoints after
11262 all frame manipulations.
11266 * remote.c (remote_supports_cond_breakpoints): New forward
11268 (remote_add_target_side_condition): New function.
11269 (remote_insert_breakpoint): Add target-side breakpoint
11270 conditional if supported.
11271 (remote_insert_hw_breakpoint): Likewise.
11272 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11275 * target.c (update_current_target): Inherit
11276 to_supports_evaluation_of_breakpoint_conditions.
11277 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11279 * target.h (struct target_ops)
11280 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11281 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11283 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11284 (condition_evaluation_both, condition_evaluation_auto,
11285 condition_evaluation_host, condition_evaluation_target,
11286 condition_evaluation_enums, condition_evaluation_mode_1,
11287 condition_evaluation_mode): New static globals.
11288 (translate_condition_evaluation_mode): New function.
11289 (breakpoint_condition_evaluation_mode): New function.
11290 (gdb_evaluates_breakpoint_condition_p): New function.
11291 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11292 (mark_breakpoint_modified): New function.
11293 (mark_breakpoint_location_modified): New function.
11294 (set_condition_evaluation_mode): New function.
11295 (show_condition_evaluation_mode): New function.
11296 (bp_location_compare_addrs): New function.
11297 (get_first_location_gte_addr): New helper function.
11298 (set_breakpoint_condition): Free condition bytecode if locations
11299 has become unconditional. Call mark_breakpoint_modified (...).
11300 (condition_command): Call update_global_location_list (1) for
11302 (breakpoint_xfer_memory): Use is_breakpoint (...).
11303 (is_breakpoint): New function.
11304 (parse_cond_to_aexpr): New function.
11305 (build_target_condition_list): New function.
11306 (insert_bp_location): Handle target-side conditional
11307 breakpoints and call build_target_condition_list (...).
11308 (update_inserted_breakpoint_locations): New function.
11309 (insert_breakpoint_locations): Handle target-side conditional
11311 (bpstat_check_breakpoint_conditions): Add comment.
11312 (bp_condition_evaluator): New function.
11313 (bp_location_condition_evaluator): New function.
11314 (print_breakpoint_location): Print information on where the condition
11316 (print_one_breakpoint_location): Likewise.
11317 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11318 breakpoint location.
11319 (force_breakpoint_reinsertion): New functions.
11320 (update_global_location_list): Handle target-side breakpoint
11322 Reinsert locations that are already inserted if conditions have
11324 (bp_location_dtor): Free agent expression bytecode.
11325 (disable_breakpoint): Call mark_breakpoint_modified (...).
11326 Call update_global_location_list (...) with parameter 1 for breakpoints.
11327 (disable_command): Call mark_breakpoint_location_modified (...).
11328 Call update_global_location_list (...) with parameter 1 for breakpoints.
11329 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11330 (enable_command): mark_breakpoint_location_modified (...).
11331 (_initialize_breakpoint): Update documentation and add
11332 condition-evaluation breakpoint subcommand.
11334 * breakpoint.h: Include ax.h.
11335 (condition_list): New data structure.
11336 (condition_status): New enum.
11337 (bp_target_info) <cond_list>: New field.
11338 (bp_location) <condition_changed, cond_bytecode>: New fields.
11339 (is_breakpoint): New prototype.
11343 * remote.c (remote_state) <cond_breakpoints>: New field.
11344 (PACKET_ConditionalBreakpoints): New enum.
11345 (remote_cond_breakpoint_feature): New function.
11346 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11347 (remote_supports_cond_breakpoints): New function.
11348 (_initialize_remote): Add new packet configuration for
11349 target-side conditional breakpoints.
11353 * NEWS: Mention target-side conditional breakpoint support,
11354 new condition-evaluation breakpoint subcommand and remote
11359 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11364 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11365 (after_prologue): Remove.
11369 * jv-valprint.c (java_val_print): Remove dead code.
11373 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11374 known_tasks_element and known_tasks_length fields.
11375 (read_known_tasks_array): Change argument type. Use pointer type
11376 and number of elements from DATA. Adjust.
11377 (read_known_tasks_list): Likewise.
11378 (get_known_tasks_addr): Remove.
11379 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11380 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11381 type and array length. Merge former get_known_tasks_addr code.
11386 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11387 it after set_momentary_breakpoint.
11392 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11396 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11397 (find_slot_in_mapped_hash): Likewise.
11402 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11403 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11404 * configure: Regenerate.
11409 * ia64-tdep.c: Do not include libunwind-ia64.h.
11410 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11411 Include libunwind-ia64.h instead of libunwind.h.
11412 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11413 for libunwind.h existence.
11414 * configure, config.in: Regenerate.
11418 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11419 instead of value_rtti_target_type.
11420 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11421 instead of value_rtti_target_type.
11422 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11423 value_rtti_target_type.
11424 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11425 (value_rtti_target_type): Rename to ...
11426 (value_rtti_indirect_type): ... here and make it indirect. Update
11428 * value.c (readjust_indirect_value_type): New function.
11429 (coerce_ref): Support for enclosing type setting for references
11430 with readjust_indirect_value_type.
11431 * value.h (readjust_value_type): New declaration.
11432 (value_rtti_target_type): Rename to ...
11433 (value_rtti_indirect_type): ... here.
11437 * MAINTAINERS (Write After Approval): Add myself to the list.
11441 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11442 Rename objfile_p_char parameter to objfilep.
11443 (build_objfile_section_table): Result is now void. All callers
11445 * objfiles.h (struct objfile): Tweak comments, whitespace.
11446 (build_objfile_section_table): Update.
11448 * elfread.c (elf_symfile_segments): Fix warning text.
11453 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11454 particular set of file names once.
11455 (dw2_map_symbol_filenames): Likewise.
11460 * main.c (write_files): Remove the declaration.
11461 (external_editor_command): Move the declaration ...
11462 [GDBTK] (external_editor_command): ... here. Fix the comment.
11466 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11471 * darwin-nat.h (enum darwin_msg_state): Add comments.
11475 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11480 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11481 between function description and implementation.
11486 * python/py-event.c (event_object_getset): New global.
11487 (event_object_type): Reference it.
11488 * python/py-type.c (field_object_getset): New global.
11489 (field_object_type): Reference it.
11490 * python/python-internal.h (gdb_py_generic_dict): Declare.
11491 * python/py-utils.c (gdb_py_generic_dict): New function.
11495 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11499 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11500 TYPE_CALLING_CONVENTION annotation.
11504 * MAINTAINERS: Add rx to target ISA section.
11505 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11506 (ALLDEPFILES): Add rx-tdep.c.
11510 * symfile.c (symbol_file_add_main_1): Use inferior's
11512 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11513 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11515 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11517 (follow_exec): Use inferior's symfile_flags.
11518 * inferior.h (struct inferior) <symfile_flags>: New field.
11523 * remote-sim.c (gdbsim_create_inferior): Call error() when
11524 sim_create_inferior() fails.
11528 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11533 * thread.c (struct current_thread_cleanup) <was_removable>: New
11535 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11536 (make_cleanup_restore_current_thread): Initialize new field.
11540 * MAINTAINERS: Add rl78 to target ISA section.
11541 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11542 (ALLDEPFILES): Add rl78-tdep.c.
11543 * NEWS: Mention rl78 as a new target.
11547 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11549 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11554 * infcmd.c (registers_info): Print just the current register's
11559 * python/py-symbol.c (sympy_value): Use _().
11563 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11564 output to be like native targets'.
11565 (remote_pid_to_str): Special case the null ptid.
11569 * NEWS: Mention enable count command.
11570 * breakpoint.h (struct breakpoint): New field enable_count.
11571 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11572 (enable_breakpoint): Add arg to call.
11573 (struct disp_data): New struct.
11574 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11575 (do_map_enable_once_breakpoint): Create a struct and pass it.
11576 (do_map_enable_delete_breakpoint): Ditto.
11577 (do_map_enable_count_breakpoint): New function.
11578 (enable_count_command): New function.
11579 (bpstat_stop_status): Decrement enable_count.
11580 (print_one_breakpoint_location): Report enable count.
11581 (_initialize_breakpoint): Add enable count command.
11585 * rl78-tdep.c (reggroups.h): Include.
11586 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11587 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11588 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11589 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11590 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11591 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11592 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11593 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11594 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11595 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11596 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11597 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11598 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11599 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11600 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11601 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11602 beginning of register list.
11603 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11604 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11605 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11606 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11607 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11608 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11609 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11610 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11611 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11612 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11613 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11614 the pseudo registers. Rearrange other pseudo registers too so
11615 that the bank registers appear at the end.
11616 (rl78_register_type): Account for the fact that the byte sized
11617 bank registers are now pseudo-registers.
11618 (rl78_register_name): Rearrange the register name array. Make
11619 initial set of raw banked registers inaccessible.
11620 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11621 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11622 case for copying bytes back and forth between raw and pseudo
11623 versions of the banked registers. Update other cases to reflect
11625 (rl78_return_value): Update to account for changed names of
11627 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11628 rl78_register_sim_regno().
11632 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11633 the name parameter being passed to find_pc_partial_function().
11637 * MAINTAINERS: Step down from being ia64 target maintainer.
11641 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11642 compilation warning.
11646 Fix crash on loaded shlibs without loaded exec_bfd.
11647 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11648 (set_section_command): Replace exec_bfd by p->bfd.
11652 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11653 when we have a C++ qualified name.
11657 * inferior.c (inferior_pid_to_str): New.
11658 (print_inferior, inferior_command): Use it.
11662 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11664 * configure: Regenerate.
11668 * linespec.c (decode_line_internal): Fix comment correctness.
11673 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11674 * amd64bsd-nat.c: Add support for debug registers (adapted from
11676 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11677 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11678 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11679 (amd64bsd_dr_get_control): New functions.
11680 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11681 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11682 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11683 watchpoints initialization.
11684 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11688 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11690 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11694 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11698 * language.h (symbol_name_cmp_ftype): Renames
11699 symbol_name_match_p_ftype.
11700 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11701 la_get_symbol_name_match_p.
11702 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11703 ada_get_symbol_name_match_p. Update comment.
11704 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11705 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11706 Renames symbol_name_match_p. Update field type.
11707 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11708 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11709 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11710 "la_get_symbol_name_cmp" in comments.
11711 * language.c: Likewise.
11715 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11717 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11718 (amd64_sol2_gregset32_reg_offs): Likewise.
11722 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11723 of the returned BFD is allocated by GDB.
11728 * python/python-internal.h (frame_object_type): Declare.
11729 * python/py-symbol.c (sympy_needs_frame): New function.
11730 (sympy_value): New function.
11731 (symbol_object_getset): Add "needs_frame".
11732 (symbol_object_methods): Add "value".
11733 * python/py-frame.c (frame_object_type): No longer static.
11738 * python/py-symbol.c (sympy_line): New function.
11739 (symbol_object_getset): Add "line".
11743 * charset.c (find_charset_names): Check 'in' against NULL.
11747 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11748 and fields.name members from char * to const char *. All uses updated.
11749 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11750 from char * to const char *. All uses updated.
11751 (type_name_no_tag): Update.
11752 (lookup_unsigned_typename, lookup_signed_typename): Update.
11753 * gdbtypes.c (type_name_no_tag): Change result type
11754 from char * to const char *. All callers updated.
11755 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11756 name parameter from char * to const char *.
11757 * symtab.h (struct cplus_specific): Change type of demangled_name
11758 member from char * to const char *. All uses updated.
11759 (struct general_symbol_info): Change type of name and
11760 mangled_lang.demangled_name members from char * to const char *.
11762 (symbol_get_demangled_name, symbol_natural_name): Update.
11763 (symbol_demangled_name, symbol_search_name): Update.
11764 * symtab.c (symbol_get_demangled_name): Change result type
11765 from char * to const char *. All callers updated.
11766 (symbol_natural_name, symbol_demangled_name): Ditto.
11767 (symbol_search_name): Ditto.
11768 (completion_list_add_name): Change type of symname,sym_text,
11769 text,word parameters from char * to const char *.
11770 (completion_list_objc_symbol): Change type of sym_text,
11771 text,word parameters from char * to const char *.
11772 * ada-lang.c (find_struct_field): Change type of name parameter
11773 from char * to const char *.
11774 (encoded_ordered_before): Similarly for N0,N1 parameters.
11775 (old_renaming_is_invisible): Similarly for function_name parameter.
11776 (ada_type_name): Change result type from char * to const char *.
11777 All callers updated.
11778 * ada-lang.h (ada_type_name): Update.
11779 * buildsym.c (hashname): Change type of name parameter
11780 from char * to const char *.
11781 * buildsym.h (hashname): Update.
11782 * dbxread.c (end_psymtab): Change type of include_list parameter
11783 from char ** to const char **.
11784 * dwarf2read.c (determine_prefix): Change result type
11785 from char * to const char *. All callers updated.
11786 * f-lang.c (find_common_for_function): Change type of name, funcname
11787 parameters from char * to const char *.
11788 * f-lang.c (find_common_for_function): Update.
11789 * f-valprint.c (list_all_visible_commons): Change type of funcname
11790 parameters from char * to const char *.
11791 * gdbarch.sh (static_transform_name): Change type of name parameter
11792 and result from char * to const char *.
11793 * gdbarch.c: Regenerate.
11794 * gdbarch.h: Regenerate.
11795 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11796 of name parameter from char * to const char *.
11797 * jv-lang.c (java_primitive_type_from_name): Ditto.
11798 (java_demangled_signature_length): Similarly for signature parameter.
11799 (java_demangled_signature_copy): Ditto.
11800 (java_demangle_type_signature): Ditto.
11801 * jv-lang.h (java_primitive_type_from_name): Update.
11802 (java_demangle_type_signature): Update.
11803 * objc-lang.c (specialcmp): Change type of a,b parameters
11804 from char * to const char *.
11805 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11806 from char * to const char *. All callers updated.
11807 * p-lang.h (is_pascal_string_type): Update.
11808 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11809 of name parameter from char * to const char *.
11810 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11811 * utils.c (fprintf_symbol_filtered): Ditto.
11812 * defs.h (fprintf_symbol_filtered): Update.
11813 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11814 * stabsread.h (end_psymtab): Update.
11815 * stack.c (find_frame_funname): Change type of funname parameter
11816 from char ** to const char **.
11817 * stack.h (find_frame_funname): Update.
11818 * typeprint.c (type_print): Change type of varstring parameter
11819 from char * to const char *.
11820 * value.h (type_print): Update.
11821 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11822 from char * to const char *. All callers updated.
11823 (xcoff_end_psymtab): Change type of include_list parameter
11824 from char ** to const char **. All callers updated.
11825 (swap_sym): Similarly for name parameter. All callers updated.
11826 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11828 (process_coff_symbol): Use xstrdup.
11829 * stabsread.c (stabs_method_name_from_physname): Renamed from
11830 update_method_name_from_physname. Change result type from void
11831 to char *. All callers updated.
11832 (read_member_functions): In has_destructor case, store name in objfile
11833 obstack instead of malloc space. In !has_stub case, fix mem leak.
11837 * configure: Rebuild.
11838 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11843 * configure.tgt (rl78-*-elf): New target.
11844 * rl78-tdep.c: New file.
11848 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11849 and continue the loop. Add QUIT statement.
11854 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11855 bfd_lookup_symbol_from_symtab.
11856 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11857 gdb_bfd_lookup_symbol_from_symtab.
11861 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11862 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11863 symbol. Add assertion that sym2 is never NULL.
11867 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11868 "name" parameter to const char ** from char **. All callers updated.
11869 (find_pc_partial_function): Ditto.
11870 (cache_pc_function_name): Change type to const char * from char *.
11871 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11872 (find_pc_partial_function): Update.
11873 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11874 type of "name" parameter to const char * from char *.
11876 * arch-utils.c (generic_in_solib_return_trampoline): Change
11877 type of "name" parameter to const char * from char *.
11878 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11879 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11880 type of "name" parameter to const char * from char *.
11881 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11882 * gdbarch.c: Regenerate.
11883 * gdbarch.h: Regenerate.
11884 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11885 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11886 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11887 type of "name" parameter to const char * from char *.
11888 * skip.c (skip_function_pc): Ditto.
11889 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11890 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11891 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11892 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11893 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11894 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11895 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11896 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11897 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11901 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11902 the current inferior has no execution. Make sure the current
11903 remote process matches gdb's current inferior.
11908 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11914 * symtab.c (lookup_language_this): Set block_found.
11919 * jit.c (struct jit_inferior_data): Rewrite.
11920 (struct jit_objfile_data): New.
11921 (get_jit_objfile_data): New function.
11922 (add_objfile_entry): Update.
11923 (jit_read_descriptor): Return int. Replace descriptor_addr
11924 argument with inf_data. Update. Don't call error.
11925 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11927 (jit_inferior_init): Don't look up descriptor. Don't call error.
11928 (jit_reset_inferior_data_and_breakpoints)
11929 (jit_inferior_created_observer): Remove.
11930 (jit_inferior_exit_hook): Update.
11931 (jit_executable_changed_observer): Remove.
11932 (jit_event_handler): Update.
11933 (free_objfile_data): Reset inferior data if needed.
11934 (_initialize_jit): Update.
11938 * jit.c (bfd_open_from_target_memory): Move higher in file.
11942 * libunwind-frame.c (libunwind_load): Display message if dlopen
11947 * symtab.h (symbol_found_callback_ftype): New typedef.
11948 (iterate_over_symbols): Use the above.
11949 * symtab.c (iterate_over_symbols): Likewise.
11950 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11951 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11952 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11953 (iterate_name_matcher): Document return values.
11954 (collect_one_symbol): Likewise.
11955 (collect_function_symbols): Likewise.
11956 (collect_symbols): Likewise.
11960 * ada-lang.c (resolve_subexp): Update.
11961 (ada_lookup_symbol_list): Add 'full_search' argument.
11962 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11963 ada_lookup_symbol_list.
11964 (ada_lookup_encoded_symbol): Update.
11965 (get_var_value): Update.
11966 * ada-exp.y (block_lookup): Update.
11967 (write_var_or_type): Update.
11968 (write_name_assoc): Update.
11969 * ada-lang.h (ada_lookup_symbol_list): Update.
11973 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11978 * symtab.h: Remove outdated comment.
11979 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11983 Fix build error in Darwin port.
11984 * i386-darwin-nat.c: Include i386-nat.h.
11988 PR breakpoints/13568:
11989 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11990 argument. Check for recursive includes.
11991 (dwarf_decode_macros): Create an include hash.
11995 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11996 * ppc-linux-tdep.c: Include glibc-tdep.h.
11997 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11998 (powerpc_linux_in_plt_stub): New function.
11999 (powerpc_linux_in_dynsym_resolve_code): New function.
12000 (ppc_skip_trampoline_code): New function.
12001 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
12002 Use glibc_skip_solib_resolver.
12006 Code cleanup: Make 1440 bytes of data segment read-only.
12007 * arch-utils.c (endian_enum): Make it const char *const [].
12008 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
12010 * breakpoint.c (always_inserted_enums): Likewise.
12011 * cli/cli-cmds.c (script_ext_enums): Likewise.
12012 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
12013 enumlist parameter const char *const *.
12014 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
12015 const char *const *.
12016 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
12017 parameter const char *const *.
12018 * cris-tdep.c (cris_modes): Make it const char *const [].
12019 * filesystem.c (target_file_system_kinds): Likewise.
12020 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
12021 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
12022 (can_use_displaced_stepping_enum, scheduler_enums)
12023 (exec_direction_names): Likewise.
12024 * language.c (_initialize_language): Make the type_or_range_names and
12025 case_sensitive_names variables const char *const [].
12026 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
12027 * python/python.c (python_excp_enums): Likewise.
12028 * remote.c (interrupt_sequence_modes): Likewise.
12029 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
12030 * serial.c (logbase_enums): Likewise.
12031 * sh-tdep.c (sh_cc_enum): Likewise.
12032 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
12034 * symtab.c (multiple_symbols_modes): Likewise.
12035 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
12037 * utils.c (internal_problem_modes): Likewise.
12041 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
12042 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
12047 * configure.ac (with_python): Fix absolute path handling for win32.
12048 * configure: Regenerate.
12052 * symtab.c: Whitespace cleanup, no code changes.
12054 * symtab.c (lookup_symbol_in_language): Improve comment.
12055 (lookup_symbol_aux): Fix comment.
12057 * psymtab.c (add_psymbol_to_list): Result is now "void".
12058 * psympriv.h (add_psymbol_to_list): Update.
12060 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
12064 Do not open script filenames twice.
12065 * cli/cli-cmds.c (source_script_from_stream): Pass to
12066 source_python_script also STREAM.
12067 * python/py-auto-load.c (source_section_scripts): Pass to
12068 source_python_script_for_objfile also STREAM.
12069 (auto_load_objfile_script): Pass to source_python_script_for_objfile
12071 * python/python-internal.h (source_python_script_for_objfile): New
12072 parameter file, rename parameter file to filename.
12073 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12074 instead if !_WIN32. Update the function comment.
12075 (source_python_script, source_python_script_for_objfile)
12076 (source_python_script): New parameter file, rename parameter file to
12077 filename. Pass FILENAME to python_run_simple_file.
12078 * python/python.h (source_python_script): New parameter file, rename
12079 parameter file to filename.
12083 * corelow.c (core_has_fake_pid): Delete.
12084 (core_close): Delete references to `core_has_fake_pid'.
12085 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12086 (core_open): Delete references to `core_has_fake_pid'.
12087 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12088 the removed global.
12092 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12093 Remove language parameter from name_matcher. Adjust the comment.
12094 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12095 Remove language parameter.
12096 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12097 * linespec.c (iterate_name_matcher): Likewise.
12098 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12099 name_matcher. Adjust call accordingly.
12100 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12101 (maintenance_check_symtabs): Adjust type of parameter "fun".
12102 * psymtab.h (maintenance_check_symtabs): Likewise.
12106 * language.h (symbol_name_match_p_ftype): New typedef.
12107 (struct language_defn): Replace field la_symbol_name_compare
12108 by la_get_symbol_name_match_p.
12109 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12110 (ada_language_defn): Use it.
12111 * linespec.c (struct symbol_matcher_data): New type.
12112 (iterate_name_matcher): Rewrite.
12113 (iterate_over_all_matching_symtabs): Pass a pointer to
12114 a symbol_matcher_data struct to expand_symtabs_matching
12115 instead of just the lookup name.
12116 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12117 opencl-lang.c, p-lang.c, language.c: Delete field
12118 la_symbol_name_compare, and replace by NULL for new field
12119 la_get_symbol_name_match_p.
12120 * symfile.h (struct quick_symbol_functions): Update comment.
12124 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12130 * solib.c (update_solib_list): Update the program space's
12131 added_solibs and deleted_solibs fields.
12132 * progspace.h (struct program_space) <added_solibs,
12133 deleted_solibs>: New fields.
12134 (clear_program_space_solib_cache): Declare.
12135 * progspace.c (release_program_space): Call
12136 clear_program_space_solib_cache.
12137 (clear_program_space_solib_cache): New function.
12138 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12139 bpstat_stop_status. Use handle_solib_event.
12140 * breakpoint.c: Include gdb_regex.h.
12141 (print_solib_event): New function.
12142 (bpstat_print): Use print_solib_event.
12143 (bpstat_stop_status): Add special case for bp_shlib_event.
12144 (handle_solib_event): New function.
12145 (bpstat_what): Use handle_solib_event.
12146 (struct solib_catchpoint): New.
12147 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12148 (breakpoint_hit_catch_solib, check_status_catch_solib)
12149 (print_it_catch_solib, print_one_catch_solib)
12150 (print_mention_catch_solib, print_recreate_catch_solib): New
12152 (catch_solib_breakpoint_ops): New global.
12153 (catch_load_or_unload, catch_load_command_1)
12154 (catch_unload_command_1): New functions.
12155 (internal_bkpt_check_status): Add special case for
12157 (internal_bkpt_print_it): Use print_solib_event.
12158 (initialize_breakpoint_ops): Initialize
12159 catch_solib_breakpoint_ops.
12160 (_initialize_breakpoint): Register "catch load" and "catch
12162 * breakpoint.h (handle_solib_event): Declare.
12163 * NEWS: Add entry for "catch load" and "catch unload".
12167 * ada-lang.c: Include gdb_vecs.h.
12168 * charset.c: Include gdb_vecs.h.
12169 * tracepoint.h: Include gdb_vecs.h.
12170 * gdb_vecs.h: New file.
12174 * breakpoint.c (breakpoint_hit_catch_fork)
12175 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12176 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12177 * infrun.c (inferior_has_forked, inferior_has_vforked)
12178 (inferior_has_execd, inferior_has_called_syscall): Delete.
12179 (handle_syscall_event): Get syscall_number from the execution
12180 control state's wait status.
12181 (wait_for_inferior): Don't clear syscall_number.
12185 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12186 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12187 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12188 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12190 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12191 false for events other than TARGET_SIGNAL_TRAP.
12192 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12193 Add `ws' parameter.
12194 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12195 events other than TARGET_SIGNAL_TRAP.
12196 (tracepoint_breakpoint_hit): Add `ws' parameter.
12197 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12199 (bpstat_stop_status): Same.
12200 (pc_at_non_inline_function): Same.
12201 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12202 to pass the current event's waitstatus to bpstat_stop_status
12203 and pc_at_non_inline_function.
12208 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12209 Update the function comment for it.
12210 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12211 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12216 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12217 outside `bs->stop' block.
12218 (bpstat_what): Rework bp_shlib_event handling.
12219 (internal_bkpt_check_status): If the breakpoint is a
12220 bp_shlib_event, then set bs->stop and bs->print if
12221 stop_on_solib_events is set.
12225 Delete #if 0'd out code.
12226 * stack.c (print_frame_label_vars): Remove.
12227 (catch_info): Likewise.
12228 (_initialize_stack): Remove "info catch" command.
12229 * NEWS: Mention the above.
12233 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12235 (remote_notice_new_inferior): If the remote end doesn't support
12236 the multiprocess extensions, then the PID is fake.
12237 (add_current_inferior_and_thread): New.
12238 (remote_start_remote): Use it.
12239 (extended_remote_attach_1): Adjust.
12240 (extended_remote_create_inferior_1): Use
12241 add_current_inferior_and_thread.
12245 Fix watchpoints to be specific for each inferior.
12246 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12247 current_program_space.
12248 * i386-nat.c (i386_inferior_data_cleanup): New.
12249 (i386_inferior_data_get): Replace variable inf_data_local by an
12250 inferior_data call.
12251 (i386_use_watchpoints): Initialize i386_inferior_data.
12252 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12253 specific iterate_over_lwps.
12257 Fix watchpoints across inferior fork.
12258 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12259 comment for linux_nat_iterate_watchpoint_lwps.
12260 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12261 linux_nat_iterate_watchpoint_lwps.
12262 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12263 * i386-linux-nat.c (update_debug_registers_callback): Update the
12264 comment for linux_nat_iterate_watchpoint_lwps.
12265 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12266 linux_nat_iterate_watchpoint_lwps.
12267 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12268 * i386-nat.c: Include inferior.h.
12269 (dr_mirror): Remove.
12270 (i386_inferior_data, struct i386_inferior_data)
12271 (i386_inferior_data_get): New.
12272 (i386_debug_reg_state): Use i386_inferior_data_get.
12273 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12274 (i386_insert_watchpoint, i386_remove_watchpoint)
12275 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12276 (i386_remove_hw_breakpoint): New variable state, use
12277 i386_debug_reg_state instead of DR_MIRROR.
12278 * linux-nat.c (delete_lwp): New declaration.
12279 (num_lwps): Move here from downwards.
12280 (delete_lwp_cleanup): New.
12281 (linux_child_follow_fork): Create new child_lp, call
12282 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12284 (num_lwps): Move upwards.
12285 (linux_nat_iterate_watchpoint_lwps): New.
12286 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12287 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12295 * top.c (caution): Rename to ...
12296 (confirm): ... this.
12297 (show_caution): Rename to ...
12298 (show_confirm): ... this.
12299 (quit_cover): Adjust.
12300 (init_main): Adjust.
12301 * top.h (caution): Rename to ...
12302 (confirm): ... this.
12303 * utils.c (internal_vproblem, defaulted_query): Adjust.
12307 * top.c (caution): Update comment.
12308 (execute_command): Don't consider the current value of `caution'.
12312 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12316 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12317 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12318 * target.c (target_fileio_pwrite): Remove buffer address from
12320 (target_fileio_pread): Likewise.
12324 * NEWS: Document remote "info proc" and "generate-core-file".
12328 * gdbarch.sh (find_memory_regions): New callback.
12329 * gdbarch.c, gdbarch.h: Regenerate.
12331 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12332 callback before falling back to target method.
12334 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12335 (linux_target_install_ops): No longer install it.
12337 * linux-tdep.c (linux_find_memory_regions): New function.
12338 (linux_init_abi): Install it.
12342 * gdbarch.sh (make_corefile_notes): New architecture callback.
12343 * gdbarch.c: Regenerate.
12344 * gdbarch.h: Likewise.
12346 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12347 before target_make_corefile_notes. If NULL is returned, the
12348 target does not support core file generation.
12350 * linux-nat.c: Include "linux-tdep.h".
12351 (find_signalled_thread, find_stop_signal): Remove.
12352 (linux_nat_do_thread_registers): Likewise.
12353 (struct linux_nat_corefile_thread_data): Likewise.
12354 (linux_nat_corefile_thread_callback): Likewise.
12355 (iterate_over_spus): Likewise.
12356 (struct linux_spu_corefile_data): Likewise.
12357 (linux_spu_corefile_callback): Likewise.
12358 (linux_spu_make_corefile_notes): Likewise.
12359 (linux_nat_collect_thread_registers): New function.
12360 (linux_nat_make_corefile_notes): Replace contents by call to
12361 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12362 as native-only callback.
12364 * linux-tdep.h: Include "bfd.h".
12365 (struct regcache): Add forward declaration.
12366 (linux_collect_thread_registers_ftype): New typedef.
12367 (linux_make_corefile_notes): Add prototype.
12368 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12369 "regset.h", and "elf-bfd.h".
12370 (find_signalled_thread, find_stop_signal): New functions.
12371 (linux_spu_make_corefile_notes): Likewise.
12372 (linux_collect_thread_registers): Likewise.
12373 (struct linux_corefile_thread_data): New data structure.
12374 (linux_corefile_thread_callback): New funcion.
12375 (linux_make_corefile_notes): Likewise.
12376 (linux_make_corefile_notes_1): Likewise.
12377 (linux_init_abi): Install it.
12381 * gdbarch.sh (info_proc): New callback.
12382 * gdbarch.c, gdbarch.h: Regenerate.
12384 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12385 before falling back to the target info_proc callback.
12387 * linux-nat.c: Do not include "cli/cli-utils.h".
12388 (linux_nat_info_proc): Remove.
12389 (linux_target_install_ops): No longer install it.
12391 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12392 (read_mapping): New function.
12393 (linux_info_proc): Likewise.
12394 (linux_init_abi): Install it.
12398 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12399 * infcmd.c: (info_proc_cmd_1): New function.
12400 (info_proc_cmd): New function, moved here from equivalent routine
12401 orignally in linux-nat.c.
12402 (info_proc_cmd_mappings): Likewise.
12403 (info_proc_cmd_stat): Likewise.
12404 (info_proc_cmd_status): Likewise.
12405 (info_proc_cmd_cwd): Likewise.
12406 (info_proc_cmd_cmdline): Likewise.
12407 (info_proc_cmd_exe): Likewise.
12408 (info_proc_cmd_all): Likewise.
12409 (_initialize_infcmd): Install "info proc" command and subcommands.
12411 * target.h (struct target_ops): Add to_info_proc.
12412 (target_info_proc): Add prototype.
12413 * target.c (target_info_proc): New function.
12415 * procfs.c (procfs_info_proc): Add prototype.
12416 (info_proc_cmd): Rename into ...
12417 (procfs_info_proc): ... this. Update argument types as appropriate
12418 for a to_info_proc implementation. Handle "what" argument.
12419 (procfs_target): Install procfs_info_proc.
12420 (_initialize_procfs): No longer install "info proc" command.
12422 * linux-nat.c: (enum info_proc_what): Remove.
12423 (linux_nat_info_proc_cmd_1): Rename into ...
12424 (linux_nat_info_proc): ... this. Update argument types as appropriate
12425 for a to_info_proc implementation.
12426 (linux_nat_info_proc_cmd): Remove.
12427 (linux_nat_info_proc_cmd_mappings): Likewise.
12428 (linux_nat_info_proc_cmd_stat): Likewise.
12429 (linux_nat_info_proc_cmd_status): Likewise.
12430 (linux_nat_info_proc_cmd_cwd): Likewise.
12431 (linux_nat_info_proc_cmd_cmdline): Likewise.
12432 (linux_nat_info_proc_cmd_exe): Likewise.
12433 (linux_nat_info_proc_cmd_all): Likewise.
12434 (linux_target_install_ops): Install linux_nat_info_proc.
12435 (_initialize_linux_nat): No longer install "info proc" command
12440 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12441 * config.in, configure: Regenerate.
12443 * target.h (struct target_ops): Add to_fileio_readlink.
12444 (target_fileio_readlink): Add prototype.
12445 * target.c (target_fileio_readlink): New function.
12447 * inf-child.c: Conditionally include <sys/param.h>.
12448 (inf_child_fileio_readlink): New function.
12449 (inf_child_target): Install it.
12451 * remote.c (PACKET_vFile_readlink): New enum value.
12452 (remote_hostio_readlink): New function.
12453 (init_remote_ops): Install it.
12454 (_initialize_remote): Handle vFile:readlink packet type.
12459 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12460 * config.in, configure: Regenerate.
12462 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12463 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12464 (target_fileio_open): Add prototype.
12465 (target_fileio_pwrite): Likewise.
12466 (target_fileio_pread): Likewise.
12467 (target_fileio_close): Likewise.
12468 (target_fileio_unlink): Likewise.
12469 (target_fileio_read_alloc): Likewise.
12470 (target_fileio_read_stralloc): Likewise.
12472 * target.c: Include "gdb/fileio.h".
12473 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12474 (default_fileio_target): New function.
12475 (target_fileio_open): Likewise.
12476 (target_fileio_pwrite): Likewise.
12477 (target_fileio_pread): Likewise.
12478 (target_fileio_close): Likewise.
12479 (target_fileio_unlink): Likewise.
12480 (target_fileio_close_cleanup): Likewise.
12481 (target_fileio_read_alloc_1): Likewise.
12482 (target_fileio_read_alloc): Likewise.
12483 (target_fileio_read_stralloc): Likewise.
12485 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12486 <fcntl.h>, and <unistd.h>.
12487 (inf_child_fileio_open_flags_to_host): New function.
12488 (inf_child_errno_to_fileio_error): Likewise.
12489 (inf_child_fileio_open): Likewise.
12490 (inf_child_fileio_pwrite): Likewise.
12491 (inf_child_fileio_pread): Likewise.
12492 (inf_child_fileio_close): Likewise.
12493 (inf_child_fileio_unlink): Likewise.
12494 (inf_child_target): Install to_fileio routines.
12496 * remote.c (init_remote_ops): Install to_fileio routines.
12501 * remote.c (remote_multi_process_p): Only check for multi-process
12502 protocol feature, do not check for extended protocol.
12503 (remote_supports_multi_process): Check for extended protocol here.
12504 (set_general_process): Likewise.
12505 (extended_remote_kill): Likewise.
12506 (remote_pid_to_str): Likewise.
12507 (remote_query_supported): Always query multiprocess mode.
12512 * inferior.h (struct inferior): Add fake_pid_p.
12513 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12514 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12515 magic_null_ptid since the remote side doesn't provide a real PID.
12519 * NEWS: Combine the two Python sections.
12523 * target.h (target_close): Update comment on the target's unpush state.
12527 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12528 linux_nat_async directly instead of going through the target
12530 * target.c (unpush_target): Close target after unpushing it, not
12535 * mdebugread.c (sort_blocks): Replace integer constants with ones
12536 derived from FIRST_LOCAL_BLOCK.
12542 * symfile.c (find_separate_debug_file): New function.
12543 (terminate_after_last_dir_separator): Likewise.
12544 (find_separate_debug_file_by_debuglink): Also try realpath.
12545 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12546 * configure: Regenerate.
12547 * config.in: Regenerate.
12551 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12552 (main.o): Remove rule.
12553 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12554 (--with-sysroot): Rewrite.
12555 * configure: Regenerate.
12556 * config.in: Regenerate.
12560 * parse.c (initialize_expout): New function.
12561 (reallocate_expout): Likewise.
12562 (parse_exp_in_context): Use `initialize_expout' and
12563 `reallocate_expout' when appropriate.
12567 * record.c (struct record_breakpoint, record_breakpoint_p)
12568 (record_breakpoints): New.
12569 (record_insert_breakpoint, record_remove_breakpoint): Manage
12570 record breakpoints list. Only remove breakpoints from the
12571 inferior if they had been inserted there in the first place.
12575 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12576 if we know we don't have a file name to look for.
12580 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12581 the frame's stop reason is UNWIND_UNAVAILABLE.
12585 Fix compilation error.
12586 * m2-exp.y (yyerror): Use ANSI C prototype.
12590 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12591 (growbuf_by_size): Likewise.
12592 (yyerror): Likewise.
12593 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12594 (modblock): Remove variable (was #if 0'ed).
12595 (parse_number): Convert prototype from K&R to ANSI C.
12596 (yyerror): Likewise.
12597 * objc-exp.y (parse_number): Likewise.
12598 (yyerror): Likewise.
12599 (yylex): Remove #if 0'ed code.
12600 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12601 (yyerror): Likewise.
12606 * symtab.h (compare_filenames_for_search): Declare.
12607 * symtab.c (compare_filenames_for_search): New function.
12608 (iterate_over_some_symtabs): Use it.
12609 * symfile.h (struct quick_symbol_functions)
12610 <map_symtabs_matching_filename>: Change spec.
12611 * psymtab.c (partial_map_symtabs_matching_filename): Use
12612 compare_filenames_for_search. Update for new spec.
12613 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12614 compare_filenames_for_search. Update for new spec.
12615 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12620 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12621 (struct main_type) <flag_flag_enum>: New field.
12622 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12623 * NEWS: Add entries.
12624 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12626 * python/lib/gdb/printing.py (_EnumInstance): New class.
12627 (FlagEnumerationPrinter): Likewise.
12631 * breakpoint.c (create_sals_from_address_default): New function.
12632 (create_breakpoints_sal_default): Likewise.
12633 (decode_linespec_default): Likewise.
12634 (is_marker_spec): Removed.
12635 (strace_marker_p): New function.
12636 (init_breakpoint_sal): Using `strace_marker_p' instead of
12638 (create_breakpoint): Call method `create_sals_from_address' from
12639 breakpoint_ops, replacing code that created SALs conditionally
12640 on the type of the breakpoint. Call method `create_breakpoints_sal',
12641 replacing code that created breakpoints conditionally on the type
12643 (base_breakpoint_create_sals_from_address): New function.
12644 (base_breakpoint_create_breakpoints_sal): Likewise.
12645 (base_breakpoint_decode_linespec): Likewise.
12646 (base_breakpoint_ops): Add methods
12647 `base_breakpoint_create_sals_from_address',
12648 `base_breakpoint_create_breakpoints_sal' and
12649 `base_breakpoint_decode_linespec'.
12650 (bkpt_create_sals_from_address): New function.
12651 (bkpt_create_breakpoints_sal): Likewise.
12652 (bkpt_decode_linespec): Likewise.
12653 (tracepoint_create_sals_from_address): Likewise.
12654 (tracepoint_create_breakpoints_sal): Likewise.
12655 (tracepoint_decode_linespec): Likewise.
12656 (strace_marker_create_sals_from_address): Likewise.
12657 (strace_marker_create_breakpoints_sal): Likewise.
12658 (strace_marker_decode_linespec): Likewise.
12659 (strace_marker_breakpoint_ops): New variable.
12660 (addr_string_to_sals): Remove `marker_spec'. Call method
12661 `decode_linespec' from breakpoint_ops, replacing code that decoded
12662 an address string into a SAL. Use `strace_marker_p' instead of
12664 (strace_command): Decide whether we are dealing with a static
12665 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12666 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12667 * breakpoint.h (linespec_result, linespec_sals): New forward
12669 (breakpoint_ops) <create_sals_from_address>,
12670 <create_breakpoints_sal>, <decode_linespec>: New methods.
12674 * NEWS: Update text for "maint set python print-stack".
12675 It is deprecated in gdb 7.4 and deleted in 7.5.
12679 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12680 including curses.h.
12684 * configure: Regenerate.
12685 * config.in: Regenerate.
12690 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12691 (ANONYMOUS_UNION_NAME): Define.
12692 (is_path_expr_parent): New function.
12693 (get_path_expr_parent): New function.
12694 (is_anonymous_child): New function.
12695 (create_child_with_value): If the child is anonymous and without
12696 a name, assign an object name to it.
12697 (c_describe_child): Use get_path_expr_parent to determine
12698 the parent expression.
12699 If there field represents an anonymous struct or union and
12700 has no name, set an appropriate display name and expression.
12701 (cplus_describe_child): Likewise.
12705 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12706 available when %ebp is found to be zero (outermost).
12710 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12711 an internal gdb_static_assert.
12712 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12717 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12718 catch" and "catch throw".
12722 * blockframe.c (block_innermost_frame): Start search from selected
12723 frame, if present, or otherwise the current frame.
12725 * c-exp.y (variable): Update innermost_block for
12726 'block COLONCOLON NAME' clause.
12727 * m2-exp.y (variable): Ditto.
12728 * objc-exp.y (variable): Ditto.
12733 * python/python.c (finish_python_initialization): Set sys.argv.
12737 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12738 "want_line_info". All callers updated.
12739 (dwarf_decode_lines_1): New function.
12740 (handle_DW_AT_stmt_list): Add function comment.
12741 New arg "want_line_info". All callers updated.
12742 (read_file_scope,read_type_unit_scope): Move comment from
12743 handle_DW_AT_stmt_list to here.
12747 Fix regression after libiberty/ update for GCC PR 6057 and others.
12748 * c-exp.y (operator) <OPERATOR DELETE>
12749 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12750 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12751 (make_builtin_type, make_name): New variable i, add gdb_assert.
12752 (operator) <OPERATOR NEW>: Update ARGS to 3.
12753 (operator) <OPERATOR DELETE>: Add trailing space.
12754 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12755 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12756 * cp-support.c (cp_canonicalize_string): Check NULL from
12757 cp_comp_to_string, call warning and return.
12761 Fix duplicate .o files after omitting libbfd.a.
12762 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12763 (SFILES): Add corelow.c.
12764 (COMMON_OBS): Add corelow.o.
12765 (ALLDEPFILES): Remove corelow.c.
12766 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12767 * config/alpha/alpha-osf3.mh: Likewise.
12768 * config/alpha/fbsd.mh: Likewise.
12769 * config/arm/nbsdaout.mh: Likewise.
12770 * config/arm/nbsdelf.mh: Likewise.
12771 * config/i386/i386gnu.mh: Likewise.
12772 * config/ia64/hpux.mh: Likewise.
12773 * config/ia64/linux.mh: Likewise.
12774 * config/m32r/linux.mh: Likewise.
12775 * config/m68k/linux.mh: Likewise.
12776 * config/mips/irix5.mh: Likewise.
12777 * config/mips/irix6.mh: Likewise.
12778 * config/pa/hpux.mh: Likewise.
12779 * config/pa/linux.mh: Likewise.
12780 * config/powerpc/aix.mh: Likewise.
12781 * config/sparc/linux.mh: Likewise.
12782 * config/sparc/linux64.mh: Likewise.
12783 * config/sparc/sol2.mh: Likewise.
12784 * config/vax/vax.mh: Likewise.
12785 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12786 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12787 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12788 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12789 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12790 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12791 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12792 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12793 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12794 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12795 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12796 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12797 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12798 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12799 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12800 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12801 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12802 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12803 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12804 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12805 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12806 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12807 corelow.o from gdb_target_obs.
12808 * corefile.c (core_target): Update the comment on NULL value.
12809 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12810 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12811 MATCHES. Drop YUMMY set on NULL.
12812 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12813 reclaim CORE_DATA if it is already NULL.
12817 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12818 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12822 * breakpoint.c (wrapper.h): Don't include.
12826 * Makefile.in (SFILES): Remove wrapper.c.
12827 (HFILES_NO_SRCDIR): Remove wrapper.h.
12828 (COMMON_OBS): Remove wrapper.o.
12829 * cli/cli-interp.c: Don't inlude wrapper.h.
12830 * corelow.c: Likewise.
12831 (core_open): Replace gdb_target_find_new_threads with
12832 TRY_CATCH around target_find_new_threads.
12833 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12834 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12835 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12836 evaluate_expression.
12837 (varobj_set_value): Likewise for evaluate_expression and
12839 (install_new_variable): Likewise for value_fetch_lazy.
12840 (adjust_value_for_child_access): Likewise for value_ind.
12841 (c_describe_child): Likewise for value_subscript and
12843 (c_value_of_root): Likewise for evaluate_expression.
12844 * wrapper.c: Remove.
12845 * wrapper.h: Remove.
12849 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12850 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12851 "abfd" args with "section". All callers updated.
12852 Error checking code moved ...
12853 (error_check_comp_unit_head): ... here. New function.
12854 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12855 Delete arg "abfd". New arg "type_offset". All callers updated.
12856 (create_debug_types_hash_table): Simplify by using
12857 read_and_check_type_unit_head.
12859 * parser-defs.h (namecopy): Delete.
12860 * parse.c (namecopy, namecopy_size): Move into copy_name.
12864 Partially fix duplicate .o files after omitting libbfd.a.
12865 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12866 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12867 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12868 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12869 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12870 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12871 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12875 * MAINTAINERS: Update my email address.
12879 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12880 n_type_units. Rename type_comp_units to all_type_units.
12882 (add_signatured_type_cu_to_table): Renamed from
12883 add_signatured_type_cu_to_list. All callers updated.
12885 * gdbtypes.h (struct cplus_struct_type): Delete member
12886 nfn_fields_total. All uses removed.
12890 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12892 (dwarf2_find_comp_unit): Delete.
12893 (process_psymtab_comp_unit): Make result "void".
12894 Delete args buffer, info_ptr, buffer_size, and replace with
12895 "section". All callers updated.
12896 (dwarf2_build_psymtabs_hard): Simplify.
12901 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12902 before `struct gdb_exception'.
12903 * breakpoint.c (update_global_location_list_nothrow)
12904 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12905 * cp-abi.c (value_rtti_type): Likewise.
12906 * cp-support.c (cp_validate_operator): Likewise.
12907 * infrun.c (insert_exception_resume_breakpoint)
12908 (check_exception_resume, keep_going): Likewise.
12909 * mi-interp.c (mi_breakpoint_created)
12910 (mi_breakpoint_modified): Likewise.
12911 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12912 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12913 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12917 * dwarf2read.c (statement_prologue): Delete, unused.
12919 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12920 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12922 * dwarf2read.c (comp_unit_header): Delete, unused.
12926 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12927 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12931 * infrun.c (normal_stop): Don't skip calling the normal_stop
12932 observers if the thread was doing a multi-step, but stopped for
12933 some reason other than stepping.
12937 * cli/cli-decode.h: Add comments.
12938 (CMD_LIST_AMBIGUOUS): Moved to command.h
12939 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12940 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12941 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12942 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12943 (add_com, add_com_alias, add_info, add_info_alias)
12944 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12946 * command.h: Add and adjust comments.
12947 (CMD_LIST_AMBIGUOUS): Moved here.
12948 (help_cmd, help_cmd_list): Delete declarations.
12952 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12953 All callers updated.
12954 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12955 Replace all arguments with "per_cu". All callers updated.
12957 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12959 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12960 New arg "per_cu". All callers updated.
12962 Delete #if 0'd out code.
12963 * language.c (binop_result_type): Delete.
12964 (simple_type, ordered_type, same_type, integral_type): Delete.
12965 (numeric_type, character_type, string_type, boolean_type): Delete.
12966 (float_type, structured_type): Delete.
12967 * language.h: Update.
12971 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12975 * corefile.c (close_exec_file): Delete.
12976 (reopen_exec_file): Remove commented out code that seems related
12977 to close_exec_file, which is being deleted here.
12978 * inferior.h (close_exec_file): Delete.
12979 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12983 * ada-lang.c: #include "cli/cli-utils.h".
12984 (get_selections): Use skip_spaces.
12985 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12986 (catch_ada_exception_command_split): Use skip_spaces.
12987 (ada_decode_assert_location): Likewise.
12991 * linespec.c (decode_line_internal): Check for C++ or Java
12992 compound constructs only if the current language is C, C++
13000 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13001 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13003 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13004 fall through into AT_ENTRY_POINT.
13005 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13006 DUMMY_ADDR with it.
13007 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13008 PPC_INSN_SIZE skip to 3 times.
13012 * linespec.c (add_minsym): Preserve function descriptors.
13016 * breakpoint.c (all_locations_are_pending): Consider locations
13017 in program spaces executing during startup pending as well.
13021 Copyright year update in most files of the GDB Project.
13025 * copyright.sh: Delete.
13026 * copyright.py: Rewrite.
13030 * gnulib/extra/update-copyright: New file, imported from gnulib.
13034 * README (Copyright and License Notices): New section.
13039 * python/py-value.c (valpy_dereference, valpy_get_address
13040 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13041 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
13042 (valpy_absolute, valpy_richcompare): Free intermediate values.
13046 * ada-lang.c: Reformat the copyright notice.
13050 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
13051 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
13052 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
13053 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
13054 Revert this part of:
13056 Build gdb directly from *.o files not using libgdb.a.
13057 * Makefile.in (COMMON_OBS): Remove solib-target.o.
13061 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
13062 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
13063 Reformat the copyright header.
13067 Revert this part of:
13069 Remove the gdbtui binary.
13070 * gdb.c (main): Remove args.interpreter_p initialization.
13071 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13072 * main.h (struct captured_main_args): Remove interpreter_p.
13076 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13080 * top.c (print_gdb_version): Update copyright year.
13084 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13089 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13090 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13092 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13093 fall through into AT_ENTRY_POINT.
13094 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13095 DUMMY_ADDR with it.
13096 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13097 PPC_INSN_SIZE skip to 3 times.
13101 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13103 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13107 Build gdb directly from *.o files not using libgdb.a.
13108 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13109 (COMMON_OBS): Remove solib-target.o.
13110 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13111 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13112 (LIBGDB_OBS, libgdb.a): Move it above.
13113 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13114 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13115 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13116 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13117 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13118 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13119 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13120 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13121 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13122 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13123 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13124 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13125 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13126 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13127 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13128 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13129 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13130 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13131 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13132 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13133 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13134 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13135 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13136 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13137 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13138 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13139 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13143 Remove the gdbtui binary.
13144 * .gitignore (/gdbtui): Remove.
13145 * Makefile.in (TUI): Remove.
13146 (SUBDIR_TUI_OBS): Remove tui-main.o.
13147 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13148 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13149 (tui-main.o): Remove.
13150 (all_object_files): Remove tui-main.o.
13151 * NEWS: New note for the gdbtui removal.
13152 * configure: Rebuilt.
13153 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13154 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13155 CONFIG_UNINSTALL respectively.
13156 * gdb.c (main): Remove args.interpreter_p initialization.
13157 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13158 * main.h (struct captured_main_args): Remove interpreter_p.
13159 * tui/tui-main.c: Remove.
13163 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13164 (dwarf2_physname, read_import_statement): Ditto.
13165 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13166 (process_structure_scope read_subroutine_type): Ditto.
13167 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13168 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13169 (dwarf2_fetch_die_location_block): Ditto.
13170 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13172 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13173 All callers updated.
13174 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13175 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13176 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13178 * dwarf2read.c (load_cu): Move assert to more useful location.
13180 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13181 All callers updated.
13183 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13184 (dwarf2_elf_names): Minor reformat.
13185 (dwarf2_per_cu_data): Tweak comment.
13186 (dwarf2_read_section): Fix comment.
13187 (create_all_comp_units): Fix comment.
13188 (load_full_comp_unit): Fix comment.
13189 (process_full_comp_unit): Fix comment.
13190 (read_signatured_type): Fix comment.
13192 For older changes see ChangeLog-2011.
13198 version-control: never