3 * jit.c (finalize_symtab): Set function's return type to 'void' by
9 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
10 Move bits common to both the classic LP64 and the new x32 ILP32
12 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
13 (amd64_x32_linux_init_abi): New function.
14 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
17 * i386-tdep.h (i386_pseudo_register_name): New prototype.
18 * i386-tdep.c (i386_pseudo_register_name): Make public.
19 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
20 * amd64-tdep.c (amd64_dword_names): Add "eip".
21 (amd64_x32_pseudo_register_type): New function
22 (amd64_x32_init_abi): New function.
27 * inferior.h (struct inferior_suspend_state): Comment out.
28 (struct inferior): Comment out the field suspend.
29 * infrun.c (struct infcall_suspend_state): Comment out the field
31 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
36 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
37 * c-exp.y (classify_inner_name): Remove caller assumptions in the
38 function comment. Return ERROR for unresolved cases. Implement
39 returning proper NAME.
40 (yylex): Accept also NAME from classify_inner_name.
41 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
42 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
44 * cp-support.h (cp_lookup_nested_type): Update its declaration.
48 * breakpoint.c (condition_completer): New function.
49 (_initialize_breakpoint): Use it.
50 * value.c (complete_internalvar): New function.
51 * value.h (complete_internalvar): Declare.
55 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
56 * breakpoint.c (catch_syscall_completer): Return a VEC.
57 * cli/cli-cmds.c (complete_command): Update.
58 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
59 (complete_on_enum): Likewise.
60 * command.h: Include gdb_vecs.h.
61 (completer_ftype): Change return type.
62 (complete_on_cmdlist, complete_on_enum): Likewise.
63 * completer.c (noop_completer, filename_completer)
64 (location_completer): Return a VEC.
65 (add_struct_fields): Remove 'nextp' argument. Change 'output'
67 (expression_completer, complete_line_internal, complete_line)
68 (command_completer): Return a VEC.
69 (gdb_completion_word_break_characters, line_completion_function):
71 * completer.h: Include gdb_vecs.h.
72 (complete_line, noop_completer, filename_completer)
73 (expression_completer, location_completer, command_completer):
75 * f-lang.c (f_word_break_characters): Return a VEC.
76 * interps.c (interpreter_completer): Return a VEC.
77 * language.h (struct language_defn)
78 <la_make_symbol_completion_list>: Return a VEC.
79 * python/py-cmd.c (cmdpy_completer): Return a VEC.
80 * symtab.c (free_completion_list): Take a VEC.
81 (return_val_size, return_val_index): Remove.
82 (return_val): Now a VEC.
83 (completion_list_add_name): Update.
84 (default_make_symbol_completion_list_break_on)
85 (default_make_symbol_completion_list, make_symbol_completion_list)
86 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
88 (add_filename_to_list): Update.
89 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
91 (maybe_add_partial_symtab_filename): Update.
92 (make_source_files_completion_list): Return a VEC.
93 * symtab.h (default_make_symbol_completion_list_break_on)
94 (default_make_symbol_completion_list, make_symbol_completion_list)
95 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
96 (make_source_files_completion_list): Update.
100 * breakpoint.c (add_catch_command): Use completer_ftype.
101 * breakpoint.h: Include command.h.
102 (add_catch_command): Use completer_ftype.
103 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
104 * cli/cli-decode.h (struct cmd_list_element) <completer>:
106 * command.h (completer_ftype): New typedef.
107 (set_cmd_completer): Use it.
108 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
113 Partial revert of previous change.
115 * serial.c (scb_base): New global.
116 (serial_for_fd): New.
117 (serial_open, serial_fdopen_ops): Link new serial in open serials
119 (do_serial_close): Unlink serial from the open serials chain.
123 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
125 (prepare_for_detach): No longer context switch here in non-stop
127 (fetch_inferior_event): Ditto.
128 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
129 to the event thread before removing breakpoints. Switch to the
130 event thread before inserting breakpoints and resuming.
131 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
132 event thread before resuming.
133 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
134 Switch to the event thread before removing breakpoints.
138 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
139 special characters correctly for the Windows shells. See
140 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
142 [!__MINGW32__]: Remove extra double quote character from special
147 * ui-out.h: Remove #if 0 declarations.
148 * ui-out.c: Remove #if 0 functions.
152 * ser-base.c (run_async_handler_and_reschedule): New.
153 (fd_event, push_event): Use it.
154 * serial.c (serial_open, serial_fdopen_ops): Set the initial
155 reference count to 1.
156 (do_serial_close): Set the bufp field to NULL. Use serial_unref
158 (serial_is_open, serial_ref, serial_unref): New.
159 * serial.h (serial_open): Adjust comment.
160 (serial_is_open): Declare.
161 (serial_close): Adjust comment.
162 (serial_ref, serial_unref) Declare.
163 (struct serial): New field 'refcnt'.
167 Remove #if 0'd "connect" command, and unnecessary associated
168 refcounting and serial reuse bits.
170 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
171 * serial.c (last_serial_opened): Delete.
173 (serial_open): Adjust.
174 (serial_for_fd): Delete.
175 (serial_fdopen_ops, do_serial_close): Adjust.
176 (serial_fdopen_ops): Adjust.
180 * serial.c (do_serial_close): Remove early return when SCB is
185 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
189 Fix regression by the "ambiguous linespec" series.
190 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
191 get_last_displayed_symtab and get_last_displayed_line and depending
196 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
197 (dw2_find_symbol_file): Use it.
201 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
202 * mips-linux-tdep.h (mips_signals): New
206 * infrun.c (handle_inferior_event)
207 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
209 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
210 exception logic in all cases. Update comments.
211 (insert_longjmp_resume_breakpoint): Set the exception resume
216 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
220 * valarith.c (binop_types_user_defined_p): Fix a typo.
225 * arch-utils.c (default_return_in_first_hidden_param_p): New.
226 * arch-utils.h: Declare.
227 * gdbarch.sh: Add return_in_first_hidden_param_p.
228 * gdbarch.c, gdbarch.h: Regenerated.
229 * infcall.c (call_function_by_hand): Call
230 gdbarch_return_in_first_hidden_param_p instead of
231 language_pass_by_reference.
233 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
234 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
235 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
236 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
237 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
238 `cplus_return_struct_by_reference'.
239 (tic6x_return_value): Handle language cplusplus.
240 (tic6x_return_in_first_hidden_param_p): New.
241 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
245 * dwarf2read.c (dwarf2_cu): Add comment.
249 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
251 (mips_eabi_push_dummy_call): Likewise.
252 (mips_n32n64_push_dummy_call): Likewise.
253 (mips_o32_push_dummy_call): Likewise.
254 (mips_o64_push_dummy_call): Likewise.
258 * mips-tdep.c (mips_convert_register_p): Correct coding style.
262 * mips-tdep.c (mips_pseudo_register_type): Use
263 mips_float_register_p.
267 * infrun.c (handle_inferior_event): Remove calls to
268 reinit_frame_cache that follow a context_switch call.
272 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
273 context_switch and remove stale comment.
277 * infrun.c (struct execution_control_state): Remove
278 `new_thread_event' field.
279 (handle_inferior_event): Simplify new threads handling; don't
280 resume the inferior if we find a new thread.
284 * NEWS: Document the deprecation of SH's 'regs' command.
285 * inferior.h (all_registers_info): Add function declaration.
286 * sh-tdep.c (sh_show_regs): Remove variable.
287 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
288 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
289 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
290 (sh_show_regs_command): Remove functions.
291 (sh_gdbarch_init): Don't set sh_show_regs.
292 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
293 'info all-registers'.
294 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
295 (sh64_show_regs): Remove functions.
296 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
300 * configure.ac: Move development=true below AC_INIT.
301 * configure: Regenerate.
305 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
310 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
312 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
313 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
314 * target.c (target_read_stack, target_write_memory)
315 (target_write_raw_memory): Likewise.
316 * target.h (target_read_stack, target_write_memory)
317 (target_write_raw_memory): Likewise.
321 * symfile-mem.c: Change gdb_static_assert to ssize_t.
322 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
323 * target.c (target_read_memory): Change LEN to ssize_t.
324 * target.h (target_read_memory): Change LEN to ssize_t.
330 * breakpoint.c (until_break_command): Only fetch the selected
331 frame after decode_line_1.
335 * solib-svr4.c (enable_break): Don't fallback to setting the solib
336 event breakpoint at _start, __start or main if a program
337 interpreter is not found.
341 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
343 * windows-tdep.c: #include "objfiles.h".
344 (windows_iterate_over_objfiles_in_search_order): New function.
345 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
346 iterate_over_objfiles_in_search_order gdbarch method to
347 windows_iterate_over_objfiles_in_search_order.
348 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
352 * gdbarch.sh: Add generation of
353 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
354 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
355 (iterate_over_objfiles_in_search_order): New gdbarch method.
356 * gdbarch.h, gdbarch.c: Regenerate.
357 * objfiles.h (default_iterate_over_objfiles_in_search_order):
359 * objfiles.c (default_iterate_over_objfiles_in_search_order):
361 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
362 out of lookup_symbol_aux_symtabs.
363 (lookup_symbol_aux_symtabs): Replace extracted-out code by
364 call to lookup_symbol_aux_objfile.
365 (struct global_sym_lookup_data): New type.
366 (lookup_symbol_global_iterator_cb): New function.
367 (lookup_symbol_global): Search for symbol using
368 gdbarch_iterate_over_objfiles_in_search_order and
369 lookup_symbol_global_iterator_cb.
370 * findvar.c (struct minsym_lookup_data): New type.
371 (minsym_lookup_iterator_cb): New function.
372 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
373 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
374 and minsym_lookup_iterator_cb.
378 Revert the following patch:
379 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
380 try locating the symbol in the symbol's own objfile first, before
381 extending the search to all objfiles.
382 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
383 out of lookup_symbol_aux_symtabs.
384 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
385 Replace extracted-out code by call to lookup_symbol_aux_objfile.
386 Do not search EXCLUDE_OBJFILE.
387 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
388 (lookup_symbol_global): Search for matches in the block's objfile
389 first, before searching all other objfiles.
393 * breakpoint.c (find_condition_and_thread): Stop parsing
394 as soon as the first invalid keyword is found.
398 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
402 * config/djgpp/djcheck.sh: Add copyright header.
406 * copyright.py (update_files, main): Fix path to update-copyright
411 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
412 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
413 for which a reminder to update by hand is printed.
417 * buildsym.c (make_blockvector): Add comment.
421 * arch-utils.c (default_gdb_signal_from_target): Delete.
422 * arch-utils.h (default_gdb_signal_from_target): Delete.
423 * corelow.c (core_open) <signal mapping>: Extended comment. Check
424 gdbarch_gdb_signal_from_target_p.
425 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
427 * gdbarch.h: Regenerate.
428 * gdbarch.c: Regenerate.
432 * gdbarch.sh (gdb_signal_from_target): Mention that the
433 implementation of the method must be host independent.
434 * gdbarch.h: Regenerate.
438 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
440 (target_read_memory_bfd): New function.
441 (symbol_file_add_from_memory): Use it.
445 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
447 (basic_lookup_transparent_type): Ditto.
449 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
450 (ALL_PRIMARY_SYMTABS): Use it.
451 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
452 * dwarf2read.c (dw2_find_symbol_file): Ditto.
453 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
454 * symtab.c (lookup_symbol_aux_objfile): Ditto.
455 (basic_lookup_transparent_type): Ditto.
459 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
460 it to optimize resolution of demangled name.
464 * configure.ac (development): Define new variable.
465 Call AC_CHECK_LIB for mcheck if $development.
466 (ERROR_ON_WARNING): Enable it by default only if $development.
467 * config.in: Regenerate.
468 * configure: Regenerate.
472 * target.c (target_read_memory): Make LEN argument as size_t.
473 * target.h (target_read_memory): Likewise.
477 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
481 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
482 BookE interface for PowerPC server processors if not available
487 * linespec.c (decode_objc): Add cleanup to free
489 (find_linespec_symbols): Add cleanup to free CLASSES.
490 * symfile.c (find_separate_debug_file_by_debuglink): Add
491 cleanup to free DEBUGLINK.
492 * ui-out.c (clear_header_list): No need to check if
493 HEADER_NEXT.COLHDR is NULL.
494 Free HEADER_NEXT.COL_NAME.
498 * ada-lang.c (standard_lookup): Prevent uninitialized variable
503 * configure.host (gdb_host_cpu): Handle tilegx*.
504 (gdb_host): Handle tilegx-*-linux*.
505 * tilegx-linux-nat.c: New file.
506 * config/tilegx/linux.mh: New file.
510 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
512 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
514 * configure.tgt: Handle tilegx-*-linux*.
515 * tilegx-tdep.h: New file.
516 * tilegx-tdep.c: New file.
517 * tilegx-linux-tdep.c: New file.
518 * regformats/reg-tilegx.dat: New file.
522 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
523 accounting of hw watchpoints on ppc.
527 * source.c (openp): Expand tilde in path entries.
531 * buildsym.c (block_compar): Fix comment.
532 (end_symtab): Fix and clarify some comments.
534 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
535 cleanup_undefined_types.
536 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
541 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
543 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
544 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
546 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
551 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
552 (struct darwin_info): ... New struct.
553 (solib_darwin_pspace_data): New variable.
554 (darwin_pspace_data_cleanup): New function.
555 (get_darwin_info): Likewise.
556 (darwin_dyld_version_ok, darwin_load_image_infos)
557 (darwin_solib_get_all_image_info_addr_at_init)
558 (darwin_solib_read_all_image_info_addr): Add info argument.
560 (darwin_current_sos): Use per pspace structure.
561 (darwin_solib_create_inferior_hook): Likewise.
562 (darwin_clear_solib): Likewise.
563 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
567 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
568 block that uses them. Clear ecss before handling each event.
572 * solib-svr4.c (svr4_current_sos): New comment on
573 svr4_current_sos_via_xfer_libraries fall back.
577 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
578 it as a fallback for TYPE_IS_OPAQUE.
579 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
580 symbols for lookup_symbol.
584 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
585 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
586 (producer_is_gxx_lt_4_6): Move the checking and caching to...
587 (check_producer): ... this new function, which also checks for ICC
588 and caches the result.
589 (producer_is_icc): New function.
590 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
597 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
598 (default_gdb_signal_to_target): ... this. Add comment.
599 (default_gdb_signal_from_host): Rename to ...
600 (default_gdb_signal_from_target): ... this. Add comment.
601 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
602 (default_gdb_signal_to_target): ... this.
603 (default_gdb_signal_from_host): Rename to ...
604 (default_gdb_signal_from_target): ... this.
605 * corelow.c (core_open): Adjust to naming change. Replace comment.
606 * gdbarch.sh (gdb_signal_from_host): Rename to ...
607 (gdb_signal_from_target): ... this. Adjust to
608 default_gdb_signal_from_host naming change. Extend comment.
609 (gdb_signal_to_host): Rename to ...
610 (gdb_signal_to_target): ... this. Adjust to
611 default_gdb_signal_to_host naming change.
612 * gdbarch.h, gdbarch.c: Renegerate.
618 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
624 Replace target_signal with gdb_signal throughout.
630 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
631 string, instead of reusing the va_list argument.
635 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
640 * symtab.c (search_symbols): Formatting fixes.
641 (print_symbol_info): Formatting fixes.
643 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
644 int64_t change to leb128 API.
645 (read_encoded_value, decode_frame_entry_1): Ditto.
646 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
647 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
648 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
649 (execute_stack_op): Ditto.
650 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
651 (safe_read_uleb128, safe_read_sleb128): Ditto.
652 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
653 (dwarf2_compile_expr_to_ax): Ditto.
654 (locexpr_describe_location_piece): Ditto.
655 (disassemble_dwarf_expression): Ditto.
656 (locexpr_describe_location_1): Ditto.
661 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
662 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
663 (mi-cmd-info.o): New rule.
664 * osdata.h (info_osdata_command): New declaration.
665 * osdata.c (info_osdata_command): Change to non-static.
666 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
667 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
668 * mi/mi-cmd-info.c: New file.
672 * symtab.c (search_symbols): Pass NULL for file_matcher to
673 expand_symtabs_matching if there are no files to match.
675 * gdbtypes.c (lookup_typename): Simplify.
679 * arch-utils.h (default_target_signal_to_host): Delete.
680 * arch-utils.c (default_target_signal_to_host): Delete.
681 * gdbarch.sh (target_signal_to_host): Remove.
682 * gdbarch.h, gdbarch.c: Regenerate.
686 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
688 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
689 (execute_cfa_program): Update to match API of leb128 functions.
690 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
692 (read_unsigned_leb128, read_signed_leb128): Delete.
693 (read_initial_length): Change type of buf argument to
695 (read_encoded_value): Update to match API of leb128 functions.
696 (decode_frame_entry): Change result to "const gdb_byte *", and
697 similarly for "start" parameter.
698 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
699 (dwarf2_build_frame_info): Change local frame_ptr to
701 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
702 read_uleb128, read_sleb128. All callers updated.
703 (safe_skip_leb128): New function.
704 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
705 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
706 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
707 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
708 read_uleb128, read_sleb128.
709 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
710 (execute_stack_op): Update to match API of leb128 functions.
711 * dwarf2expr.h: #include "leb128.h".
712 (read_uleb128, read_sleb128): Delete.
713 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
714 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
715 * dwarf2loc.c (debug_loc_kind): New enum.
716 (decode_debug_loc_addresses): New function.
717 (decode_debug_loc_dwo_addresses): New function.
718 (dwarf2_find_location_expression): Rewrite.
719 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
720 (locexpr_describe_location_piece): Ditto.
721 (disassemble_dwarf_expression): Ditto.
722 (locexpr_describe_location_1): Ditto.
723 (loclist_describe_location): Rewrite.
724 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
725 * dwarf2read.c (die_reader_specs): New member "buffer_end".
726 (dwarf2_section_buffer_overflow_complaint): Renamed from
727 dwarf2_macros_too_long_complaint. All callers updated.
728 (skip_leb128): Delete.
729 (init_cu_die_reader): Initialize reader->buffer_end.
730 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
731 (skip_form_bytes): New arg buffer_end. All callers updated.
732 Replace call to skip_leb128 with gdb_skip_leb128.
733 (skip_unknown_opcode): New arg mac_end. All callers updated.
734 (fill_in_loclist_baton): Initialize baton->from_dwo.
738 * mips-linux-nat.c (mips_linux_read_description): Use a more
739 verbose error message.
743 * NEWS: Add MIPS/Linux DSP support.
744 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
745 (SIGCONTEXT_DSPCTL): New macro.
746 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
747 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
748 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
749 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
750 (N64_SIGCONTEXT_HI3): Likewise.
751 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
752 (N64_SIGCONTEXT_LO3): Likewise.
753 (N64_SIGCONTEXT_DSPCTL): Likewise.
754 (N64_SIGCONTEXT_FPCSR): Clarify definition.
755 (mips_linux_o32_sigframe_init): Handle DSP registers.
756 (mips_linux_n32n64_sigframe_init): Likewise.
760 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
765 * target.h (store_waitstatus): Move declaration ...
766 * inf-child.h (store_waitstatus): ... here.
767 * target.c: Move inclusion of gdb_wait.h, and ...
768 (store_waitstatus): ... this ...
769 * inf-child.c: ... here.
770 * linux-nat.c: Include inf-child.h.
771 * rs6000-nat.c: Include inf-child.h.
772 * spu-linux-nat.c: Include inf-child.h.
776 * tracepoint.c (start_tracing): Add missing i18n markup.
777 (stop_tracing, set_trace_user): Ditto.
778 (set_trace_notes, set_trace_stop_notes): Ditto.
783 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
785 * value.h (value_cast_pointers): Update.
786 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
787 (value_cast): Update.
788 (update_search_result): New function.
789 (do_search_struct_field): New, from search_struct_field. Check
790 for ambiguous results.
791 (search_struct_field): Rewrite.
792 * infcall.c (value_arg_coerce): Update.
793 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
795 * ada-lang.c (ada_convert_actual): Update.
799 * macroexp.c (macro_stringify): Terminate the string.
803 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
805 * auto-load.c (auto_load_expand_dir_vars): New function.
806 (auto_load_safe_path_vec_update): Use it, remove the
807 substitute_path_component call thanks to it.
808 (auto_load_objfile_script): Remove the debug_file_directory processing.
809 Use auto_load_expand_dir_vars, remove the substitute_path_component
811 * configure: Regenerate.
812 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
813 path. Escape $ also for $debugdir.
814 (--with_auto_load_safe_path): Escape $ also for $debugdir.
815 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
819 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
820 before use. Check for symtab->includes == NULL before scanning it.
824 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
828 * NEWS: Add microMIPS support and "set mips compression",
829 "show mips compression" commands.
830 * mips-tdep.h (mips_isa): New enum.
831 (gdbarch_tdep): Add mips_isa.
832 (mips_pc_is_mips16): Update prototype.
833 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
834 * mips-tdep.c (mips_compression_mips16): New variable.
835 (mips_compression_micromips): Likewise.
836 (mips_compression_strings): Likewise.
837 (mips_compression_string): Likewise.
838 (is_mips16_isa, is_micromips_isa): New functions.
839 (is_mips16_addr): Rename to...
840 (is_compact_addr): ... this.
841 (unmake_mips16_addr): Likewise to...
842 (unmake_compact_addr): ... this.
843 (make_mips16_addr): Likewise to...
844 (make_compact_addr): ... this.
845 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
847 (mips_elf_make_msymbol_special): Handle microMIPS code.
848 (msymbol_is_special): Rename to...
849 (msymbol_is_mips16): ... this.
850 (mips_make_symbol_special, mips_pc_is_mips16): Update
852 (msymbol_is_mips, msymbol_is_micromips): New functions.
853 (mips16_to_32_reg): Rename to...
854 (mips_reg3_to_reg): ... this.
855 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
856 (mips_pc_isa): Likewise.
857 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
859 (mips_fetch_instruction): Pass return status instead of printing
860 an error message if requested. Handle microMIPS code. Bail out
862 (micromips_op): New macro.
863 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
864 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
865 (b6s4_op, b7s3_reg): Likewise.
866 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
867 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
868 (mips_insn_size): New function.
869 (mips32_next_pc): Update mips_fetch_instruction call.
870 (micromips_relative_offset7): New function.
871 (micromips_relative_offset10): Likewise.
872 (micromips_relative_offset16): Likewise.
873 (micromips_pc_insn_size): Likewise.
874 (micromips_bc1_pc): Likewise.
875 (micromips_next_pc): Likewise.
876 (unpack_mips16): Update mips_fetch_instruction call.
877 (extended_mips16_next_pc): Update according to change to
879 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
881 (mips16_scan_prologue): Update mips_fetch_instruction call.
882 Update according to change to mips16_to_32_reg.
883 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
884 (mips_insn16_frame_base_sniffer): Likewise.
885 (micromips_decode_imm9): New function.
886 (micromips_scan_prologue): Likewise.
887 (mips_micro_frame_cache): Likewise.
888 (mips_micro_frame_this_id): Likewise.
889 (mips_micro_frame_prev_register): Likewise.
890 (mips_micro_frame_sniffer): Likewise.
891 (mips_micro_frame_unwind): New variable.
892 (mips_micro_frame_base_address): New function.
893 (mips_micro_frame_base): New variable.
894 (mips_micro_frame_base_sniffer): New function.
895 (mips32_scan_prologue): Update mips_fetch_instruction call.
896 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
897 rather than for MIPS16.
898 (mips_insn32_frame_base_sniffer): Likewise.
899 (mips_addr_bits_remove): Handle microMIPS code.
900 (deal_with_atomic_sequence): Rename to...
901 (mips_deal_with_atomic_sequence): ... this. Update the type
902 of the variable used to hold an instruction. Remove the ISA bit
903 check. Update mips_fetch_instruction call.
904 (micromips_deal_with_atomic_sequence): New function.
905 (deal_with_atomic_sequence): Likewise.
906 (mips_about_to_return): Handle microMIPS code. Update
907 mips_fetch_instruction call.
908 (heuristic_proc_start): Check for the standard MIPS ISA rather
909 than for MIPS16. Update mips_pc_is_mips16 and
910 mips_fetch_instruction calls. Handle microMIPS code.
911 (mips_push_dummy_code): Handle microMIPS code.
912 (mips_eabi_push_dummy_call): Likewise.
913 (mips_o32_return_value): Update mips_pc_is_mips16 call.
914 (mips_o64_push_dummy_call): Handle microMIPS code.
915 (mips_o64_return_value): Update mips_pc_is_mips16 call.
916 (is_delayed): Remove function.
917 (mips_single_step_through_delay): Replace the call to is_delayed
918 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
919 Handle microMIPS code.
920 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
922 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
924 (micromips_in_function_epilogue_p): New function.
925 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
927 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
929 (gdb_print_insn_mips): Likewise.
930 (mips_breakpoint_from_pc): Likewise.
931 (mips_remote_breakpoint_from_pc): New function.
932 (mips32_instruction_has_delay_slot): Simplify making use of the
933 updated mips_fetch_instruction interface.
934 (micromips_instruction_has_delay_slot): New function.
935 (mips16_instruction_has_delay_slot): Simplify making use of the
936 updated mips_fetch_instruction interface.
937 (mips_adjust_breakpoint_address): Check for the standard MIPS
938 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
939 calls. Handle microMIPS code.
940 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
941 (mips_skip_trampoline_code): Handle microMIPS code.
942 (global_mips_compression): New function.
943 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
944 file flags. Register the microMIPS remote breakpoint handler
945 and heuristic frame unwinder.
946 (show_mips_compression): New function.
947 (_initialize_mips_tdep): Add the "set mips compression" and
948 "show mips compression" commands.
955 * amd64-darwin-tdep.c:
956 * arm-symbian-tdep.c:
967 * dwarf2-frame-tailcall.c:
1005 * python/py-finishbreakpoint.c:
1006 * python/py-inferior.c:
1007 * python/py-infthread.c:
1011 * remote-m32r-sdi.c:
1015 * rs6000-aix-tdep.c:
1041 * amd64-darwin-tdep.c:
1042 * arm-symbian-tdep.c:
1043 * arm-tdep.c: Delete unused variables.
1047 Rename $ddir to $datadir.
1048 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1049 * auto-load.c (auto_load_safe_path_vec_update)
1050 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1051 * configure: Regenerate.
1052 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1053 Likewise. Remove the 'use $ddir' help string.
1057 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1058 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1063 * valprint.h (struct value_print_options) <symbol_print>: New
1065 * valprint.c (user_print_options): Add default for symbol_print.
1066 (show_symbol_print): New function.
1067 (generic_val_print): Respect symbol_print.
1068 (_initialize_valprint): Add "print symbol" setting.
1069 * f-valprint.c (f_val_print): Respect symbol_print.
1070 * c-valprint.c (c_val_print): Respect symbol_print.
1072 * printcmd.c (print_address_symbolic): Return int. Ignore some
1074 (print_address_demangle): Return int.
1075 * defs.h: (print_address_symbolic): Return int.
1076 * value.h (print_address_demangle): Return int.
1080 * valprint.c (val_print_string): Don't print leading space.
1081 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1082 print space before string or vtbl.
1083 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1085 * jv-valprint.c (java_value_print): Print space before string.
1086 * go-valprint.c (print_go_string): Print space before string.
1087 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1088 space before string.
1089 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1090 space before string or vtbl.
1091 * auxv.c (fprint_target_auxv): Print space after address.
1095 * printcmd.c (print_address_demangle): Remove special case for 0.
1099 * printcmd.c (print_address_demangle): Add 'opts' argument.
1100 * p-valprint.c (pascal_val_print): Update.
1101 * jv-valprint.c (java_val_print): Update.
1103 * valprint.c (generic_val_print): Update.
1104 (print_function_pointer_address): Add 'options' argument. Remove
1105 'addressprint' argument. Update.
1106 * m2-valprint.c (print_unpacked_pointer): Update.
1107 * gnu-v3-abi.c (print_one_vtable): Update.
1108 (gnuv3_print_method_ptr): Update.
1109 * f-valprint.c (f_val_print): Update.
1110 * cp-valprint.c (cp_print_value_fields): Update.
1111 * valprint.h (print_function_pointer_address): Update.
1112 * c-valprint.c (c_val_print): Update.
1116 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1117 directly corresponding to the found psymtab.
1118 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1119 (dw2_find_pc_sect_symtab): Use it.
1120 * block.h (blockvector_contains_pc): Declare.
1121 * block.c (find_block_in_blockvector): New function.
1122 (blockvector_for_pc_sect): Use it.
1123 (blockvector_contains_pc): New function.
1127 * mips-tdep.h (mips_write_pc): New prototype.
1128 * mips-tdep.c (mips_write_pc): Make external, add description.
1129 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1134 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1136 (mips_unwind_pc, mips_write_pc): Likewise.
1137 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1142 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1143 proc_warn, proc_error, proc_get_status, proc_flags,
1144 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1145 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1146 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1147 proc_stop_process, proc_wait_for_stop, proc_run_process,
1148 proc_set_traced_signals, proc_set_traced_faults,
1149 proc_set_traced_sysentry, proc_set_traced_sysexit,
1150 proc_set_held_signals, proc_get_held_signals,
1151 proc_get_traced_signals, proc_get_traced_faults,
1152 proc_get_traced_sysentry, proc_get_traced_sysexit,
1153 proc_clear_current_fault, proc_set_current_signal,
1154 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1155 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1156 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1157 proc_get_current_thread, proc_get_current_thread,
1158 proc_get_current_thread, proc_update_threads,
1159 proc_update_threads, proc_update_threads, proc_update_threads,
1160 proc_iterate_over_threads, procfs_find_new_threads,
1161 procfs_pid_to_str): Make static. Remove advance declaration.
1162 (proc_cursig): Make static. Conditionalized defintion on
1163 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1164 (proc_syscall, proc_set_kill_on_last_close,
1165 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1166 proc_get_pending_signals, proc_get_signal_actions,
1167 proc_trace_signal, proc_ignore_signal): Delete.
1171 * coffread.c (cs_section_address): Passing proper argument for
1172 `bfd_get_section_vma'.
1173 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1174 `bfd_get_section_flags'.
1175 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1176 `bfd_get_section_vma'.
1181 * macrotab.h: (macro_define_special): Declare.
1182 (enum macro_special_kind): New.
1183 (struct macro_definition) <argc, replacement>: Update comments.
1184 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1185 (macro_define_object_internal): New function.
1186 (macro_define_object): Use it.
1187 (macro_define_special): New function.
1188 (fixup_definition): New function.
1189 (macro_lookup_definition, foreach_macro_in_scope)
1190 (foreach_macro): Use fixup_definition.
1191 * macroexp.h (macro_stringify): Declare.
1192 * macroexp.c (free_buffer_return_text): New function.
1193 (stringify): Constify "arg".
1194 (macro_stringify): New function.
1195 * dwarf2read.c (macro_start_file): Call macro_define_special.
1200 * breakpoint.h (bp_location): Add related_address member.
1201 * inferior.h (get_return_value): Take a pointer to struct value
1202 instead of struct type for the function requested.
1203 * value.h (using_struct_return): Likewise.
1204 * gdbarch.sh (return_value): Take a pointer to struct value
1205 instead of struct type for the function requested.
1206 * breakpoint.c (set_breakpoint_location_function): Initialize
1207 related_address for bp_gnu_ifunc_resolver breakpoints.
1208 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1209 requested function's address to gdbarch_return_value.
1210 * eval.c (evaluate_subexp_standard): Pass the requested
1211 function's address to using_struct_return.
1212 * infcall.c (call_function_by_hand): Pass the requested
1213 function's address to using_struct_return and
1214 gdbarch_return_value.
1215 * infcmd.c (get_return_value): Take a pointer to struct value
1216 instead of struct type for the function requested.
1217 (print_return_value): Update accordingly.
1218 (finish_command_continuation): Likewise.
1219 * stack.c (return_command): Pass the requested function's
1220 address to using_struct_return and gdbarch_return_value.
1221 * value.c (using_struct_return): Take a pointer to struct value
1222 instead of struct type for the function requested. Pass the
1223 requested function's address to gdbarch_return_value.
1224 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1225 New function_value member, replacing function_type.
1226 (bpfinishpy_dealloc): Update accordingly.
1227 (bpfinishpy_pre_stop_hook): Likewise.
1228 (bpfinishpy_init): Likewise. Record the requested function's
1230 * mips-tdep.c (mips_fval_reg): New enum.
1231 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1232 words put in GP registers.
1233 (mips_o64_push_dummy_call): Update a comment.
1234 (mips_o32_return_value): Take a pointer to struct value instead
1235 of struct type for the function requested and use it to check if
1236 using the MIPS16 calling convention. Return the designated
1237 general purpose registers for floating-point values returned in
1239 (mips_o64_return_value): Likewise.
1240 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1241 (ppc_sysv_abi_broken_return_value): Likewise.
1242 (ppc64_sysv_abi_return_value): Likewise.
1243 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1244 value instead of struct type for the function requested.
1245 * amd64-tdep.c (amd64_return_value): Likewise.
1246 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1247 * arm-tdep.c (arm_return_value): Likewise.
1248 * avr-tdep.c (avr_return_value): Likewise.
1249 * bfin-tdep.c (bfin_return_value): Likewise.
1250 * cris-tdep.c (cris_return_value): Likewise.
1251 * frv-tdep.c (frv_return_value): Likewise.
1252 * h8300-tdep.c (h8300_return_value): Likewise.
1253 (h8300h_return_value): Likewise.
1254 * hppa-tdep.c (hppa32_return_value): Likewise.
1255 (hppa64_return_value): Likewise.
1256 * i386-tdep.c (i386_return_value): Likewise.
1257 * ia64-tdep.c (ia64_return_value): Likewise.
1258 * iq2000-tdep.c (iq2000_return_value): Likewise.
1259 * lm32-tdep.c (lm32_return_value): Likewise.
1260 * m32c-tdep.c (m32c_return_value): Likewise.
1261 * m32r-tdep.c (m32r_return_value): Likewise.
1262 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1263 * m68k-tdep.c (m68k_return_value): Likewise.
1264 (m68k_svr4_return_value): Likewise.
1265 * m88k-tdep.c (m88k_return_value): Likewise.
1266 * mep-tdep.c (mep_return_value): Likewise.
1267 * microblaze-tdep.c (microblaze_return_value): Likewise.
1268 * mn10300-tdep.c (mn10300_return_value): Likewise.
1269 * moxie-tdep.c (moxie_return_value): Likewise.
1270 * mt-tdep.c (mt_return_value): Likewise.
1271 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1272 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1273 (ppc_sysv_abi_broken_return_value): Likewise.
1274 (ppc64_sysv_abi_return_value): Likewise.
1275 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1276 * rl78-tdep.c (rl78_return_value): Likewise.
1277 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1278 * rx-tdep.c (rx_return_value): Likewise.
1279 * s390-tdep.c (s390_return_value): Likewise.
1280 * score-tdep.c (score_return_value): Likewise.
1281 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1282 (sh_return_value_fpu): Likewise.
1283 * sh64-tdep.c (sh64_return_value): Likewise.
1284 * sparc-tdep.c (sparc32_return_value): Likewise.
1285 * sparc64-tdep.c (sparc64_return_value): Likewise.
1286 * spu-tdep.c (spu_return_value): Likewise.
1287 * tic6x-tdep.c (tic6x_return_value): Likewise.
1288 * v850-tdep.c (v850_return_value): Likewise.
1289 * vax-tdep.c (vax_return_value): Likewise.
1290 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1291 * xtensa-tdep.c (xtensa_return_value): Likewise.
1292 * gdbarch.c: Regenerate.
1293 * gdbarch.h: Regenerate.
1297 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1301 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1302 of command in two error message.
1306 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1310 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1314 * NEWS (show auto-load scripts-directory): Add forgotten command.
1318 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1323 * amd64-tdep.c: Include features/i386/x32.c and
1324 features/i386/x32-avx.c.
1325 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1326 initialize_tdesc_x32_avx.
1331 * breakpoint.h (enum bptype): New type bp_dprintf.
1332 (struct breakpoint): New field extra_string.
1333 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1334 (create_breakpoint): Add extra_string arg.
1335 * breakpoint.c (dprintf_breakpoint_ops): New.
1336 (is_breakpoint): Add bp_dprintf.
1337 (bpstat_what): Add dprintf case.
1338 (bptype_string): Ditto.
1339 (print_one_breakpoint_location): Ditto.
1340 (init_bp_location): Ditto.
1341 (bkpt_print_mention): Ditto.
1342 (dprintf_style_enums): New array.
1343 (dprintf_style): New global.
1344 (dprintf_function): New global.
1345 (dprintf_channel): New global.
1346 (update_dprintf_command_list): New function.
1347 (update_dprintf_commands): New function.
1348 (init_breakpoint_sal): Add extra_string argument, handle it.
1349 (create_breakpoint_sal): Add extra_string argument.
1350 (create_breakpoints_sal): Add extra_string argument, update callers.
1351 (find_condition_and_thread): Add extra argument.
1352 (create_breakpoint): Add extra_string argument, record it.
1353 (dprintf_command): New function.
1354 (break_command_1): Add arg to create_breakpoint call.
1355 (handle_gnu_v3_exceptions): Ditto.
1356 (trace_command): Ditto.
1357 (ftrace_command): Ditto.
1358 (strace_command): Ditto.
1359 (bkpt_print_mention): Add dprintf case.
1360 (create_breakpoint_sal_default): Add extra_string argument.
1361 (_initialize_breakpoint): Add new commands.
1362 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1363 * python/py-breakpoint.c (bppy_init): Ditto.
1364 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1368 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1372 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1377 Add a new function gdb.find_pc_line to the Python API.
1378 * NEWS (Python Scripting): Add entry about the new function.
1379 * python/python.c (gdbpy_find_pc_line): New function which
1380 implements gdb.find_pc_line.
1381 (GdbMethods): Add entry for the new function.
1385 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1386 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1390 * inferior.c: Include completer.h
1391 (initialize_inferiors): Set completer of add-inferior to
1396 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1397 gdbarch_ptr_bit for x32 core dump.
1401 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1402 and features/i386/x32-avx-linux.c.
1407 * NEWS: Describe new info os commands.
1408 * common/linux-osdata.c (PID_T, TIME_T): Define.
1409 (MAX_PID_T_STRLEN): New.
1410 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1412 (command_from_pid): Add comment. Change to use PID_T.
1413 (commandline_from_pid): Change to use PID_T.
1414 (user_from_pid): Add comment.
1415 (get_process_owner): Add comment. Change to use PID_T and
1417 (get_number_of_cpu_cores): Add comment.
1418 (get_cores_used_by_process): Add comment. Change to use PID_T and
1420 (linux_xfer_osdata_processes): Change to use PID_T and
1422 (compare_processes): New function.
1423 (linux_xfer_osdata_processgroups): New function.
1424 (linux_xfer_osdata_threads): Change to use PID_T.
1425 (linux_xfer_osdata_fds): New function.
1426 (format_socket_state, print_sockets): New functions.
1427 (union socket_addr): New union.
1428 (linux_xfer_osdata_isockets): New function.
1429 (time_from_time_t, group_from_gid): New functions.
1430 (linux_xfer_osdata_shm): New function.
1431 (linux_xfer_osdata_sem): New function.
1432 (linux_xfer_osdata_msg): New function.
1433 (linux_xfer_osdata_modules): New function.
1434 (osdata_table): Add new entries.
1435 * common/buffer.c (buffer_xml_printf): Add support for long and
1436 long long format specifiers.
1440 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1441 (tdesc_x32_avx_linux): Likewise.
1445 Implement multi-component --with-auto-load-dir.
1446 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1448 (--with-auto-load-safe-path): Update the default value description.
1449 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1451 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1452 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1453 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1454 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1455 "set auto-load scripts-directory".
1456 * config.in: Regenerate.
1457 * configure: Regenerate.
1458 * configure.ac (--with-auto-load-dir): New configure option.
1459 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1463 Provide $ddir substitution for --with-auto-load-safe-path.
1464 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1466 * auto-load.c: Include observer.h.
1467 (auto_load_safe_path_vec_update): Call substitute_path_component for
1468 each component. New variable ddir_subst.
1469 (auto_load_gdb_datadir_changed): New function.
1470 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1471 AUTO_LOAD_SAFE_PATH. New comment.
1472 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1473 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1474 * config.in: Regenerate.
1475 * configure: Regenerate.
1476 * configure.ac (--auto-load-safe-path): Rename
1477 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1478 GDB_DATADIR/auto-load.
1479 * defs.h (substitute_path_component): New declaration.
1480 * top.c: Include observer.h.
1481 (set_gdb_datadir): New function.
1482 (init_main): Install it for "set data-directory".
1483 * utils.c (substitute_path_component): New function.
1487 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1488 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1489 DEBUG_FILE_DIRECTORY. Handle multiple components of
1490 DEBUG_FILE_DIRECTORY.
1494 * dwarf2read.c (recursively_write_psymbols): New function.
1495 (write_psymtabs_to_index): Use it.
1497 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1499 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1500 (load_partial_comp_unit): Update.
1501 (queue_comp_unit): Add argument 'pretend_language'.
1502 (process_queue): Update.
1503 (psymtab_to_symtab_1): Skip dependencies that have a user.
1504 (load_partial_comp_unit_reader): Give meaning to the 'data'
1506 (load_full_comp_unit): Add 'pretend_language' argument.
1507 (process_full_comp_unit): Add 'pretend_language' argument. Set
1509 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1511 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1512 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1514 (prepare_one_comp_unit): Add 'pretend_language' argument.
1516 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1517 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1518 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1519 (dw2_do_instantiate_symtab): Check whether symtab was read in
1521 (dw2_instantiate_symtab): Add assertion. Call
1522 process_cu_includes.
1523 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1524 (partial_symtab_p): New typedef.
1525 (set_partial_user): New function.
1526 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1527 (scan_partial_symbols): Add imported CU to imported_symtabs.
1528 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1529 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1530 (get_symtab, recursively_compute_inclusions)
1531 (compute_symtab_includes, process_cu_includes)
1532 (process_imported_unit_die): New functions.
1533 (process_die) <DW_TAG_imported_unit>: New case.
1534 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1536 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1538 (struct partial_die_info) <locdesc>: Remove.
1540 (process_psymtab_comp_unit): Add 'read_partial' argument.
1542 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1543 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1544 (add_partial_symbol): Update.
1545 (process_die): Handle DW_TAG_partial_unit.
1546 (read_file_scope): Update comment.
1547 (load_partial_dies): Handle DW_TAG_imported_unit.
1548 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1549 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1553 * cc-with-dwz.sh: New file.
1557 * symtab.h (struct symtab) <includes, user>: New fields.
1558 * block.h (struct block_iterator) <d, idx, which>: New fields.
1559 * block.c (initialize_block_iterator, find_iterator_symtab)
1560 (block_iterator_step, block_iter_name_step)
1561 (block_iter_match_step): New functions.
1562 (block_iterator_first, block_iterator_next)
1563 (block_iter_name_first, block_iter_name_next)
1564 (block_iter_match_first, block_iter_match_next): Rewrite.
1565 (get_block_symtab): New function.
1569 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1571 * jit.c (finalize_symtab): Use allocate_global_block,
1573 * buildsym.c (finish_block_internal): New function, from old
1575 (finish_block): Rewrite.
1576 (end_symtab): Use finish_block_internal, set_block_symtab.
1577 * block.h (struct global_block): New.
1578 (allocate_global_block, set_block_symtab): Declare.
1579 * block.c (allocate_global_block, set_block_symtab): New
1584 * psymtab.c (partial_map_expand_apply): Add assertion.
1585 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1586 (psymtab_to_symtab): Find unshared psymtab.
1587 (dump_psymtab): Print including psymtabs.
1588 (recursively_search_psymtabs): New function.
1589 (expand_symtabs_matching_via_partial): Use it.
1590 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1592 (enum psymtab_search_status): New.
1596 * tracepoint.c (scope_info): Update.
1597 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1598 (find_pc_sect_symtab, search_symbols)
1599 (default_make_symbol_completion_list_break_on)
1600 (make_file_symbol_completion_list): Update.
1601 * symmisc.c (dump_symtab_1): Update.
1602 * stack.c (print_frame_args, iterate_over_block_locals)
1603 (print_frame_labels, iterate_over_block_arg_vars): Update.
1604 * python/py-block.c (block_object) <dict>: Remove.
1606 <iter>: Change type.
1607 (blpy_iter): Update.
1608 (blpy_block_syms_iternext): Update.
1609 * psymtab.c (map_block): Use block iterators.
1610 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1611 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1612 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1613 * infrun.c (check_exception_resume): Update.
1614 * cp-support.c (make_symbol_overload_list_block): Update.
1615 * coffread.c (patch_opaque_types): Update.
1616 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1617 * block.h (struct block_iterator): New.
1618 (block_iterator_first, block_iterator_next, block_iter_name_first)
1619 (block_iter_name_next, block_iter_match_first)
1620 (block_iter_match_next): Declare.
1621 (ALL_BLOCK_SYMBOLS): Redefine.
1622 * block.c (block_iterator_first, block_iterator_next)
1623 (block_iter_name_first, block_iter_name_next)
1624 (block_iter_match_first, block_iter_match_next): New functions.
1625 * ada-lang.c (ada_add_block_symbols)
1626 (ada_make_symbol_completion_list): Use block iterator.
1630 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1631 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1632 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1633 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1634 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1639 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1640 print-file-var-lib2.c, print-file-var-main.c and
1641 print-file-var.exp (located in gdb/testsuite/gdb.base).
1645 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1646 try locating the symbol in the symbol's own objfile first, before
1647 extending the search to all objfiles.
1648 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1649 out of lookup_symbol_aux_symtabs.
1650 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1651 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1652 Do not search EXCLUDE_OBJFILE.
1653 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1654 (lookup_symbol_global): Search for matches in the block's objfile
1655 first, before searching all other objfiles.
1659 * printcmd.c (set_command): Add pre/post inc/dec.
1663 * gdb.1: Document -ex option.
1667 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1668 * inferior.h (AT_SYMBOL): Delete.
1672 * mips-tdep.c (mips_push_dummy_code): New function.
1673 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1674 ON_STACK and install mips_push_dummy_code as our gdbarch
1675 push_dummy_code routine.
1679 * target.c (set_maintenance_target_async_permitted): Rename to ...
1680 (set_target_async_command): ... this.
1681 (show_maintenance_target_async_permitted): Rename to ...
1682 (show_target_async_command): ... this.
1683 (initialize_targets): Adjust.
1687 * go-exp.y (classify_name): Add missing assignment of fields of
1692 Display the ">" prompt in interactive mode while reading canned
1693 commands, even when the current interpreter is MI.
1695 * interps.c (interp_set_temp): New function.
1697 * interps.h (interp_set_temp): Add prototype.
1699 * cli/cli-script.c (restore_interp): New cleanup function.
1700 (read_command_lines): Temporarily override the current interpreter
1701 with CLI and arrange for restoring the original one.
1705 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1709 * probe.c (parse_probes): Move conditional to check for
1710 debuginfo files from here...
1711 * stap-probe.c (stap_get_probes): ... to here.
1716 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1717 `movl %esp, %ebp' for the X32 ABI.
1721 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1723 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1724 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1725 (dwarf_stack_op_name): Remove.
1726 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1727 (decode_locdesc): Use get_DW_OP_name.
1728 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1729 (dwarf2_compile_expr_to_ax): Likewise.
1730 (disassemble_dwarf_expression): Likewise.
1731 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1735 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1736 (sh_linux_sigtramp_cache): New function.
1737 (sh_linux_sigreturn_init): New function.
1738 (sh_linux_rt_sigreturn_init): New function.
1739 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1741 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1743 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1744 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1745 (sh_linux_init_abi): Add init calls to register new tramp_frame
1746 definitions under 32-bit SH, update comments.
1752 * amd64-linux-tdep.c: Include glibc-tdep.h.
1753 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1754 gdbarch_skip_solib_resolver callback.
1758 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1759 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1760 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1761 (add_auto_load_safe_path): Change the error message.
1762 (_initialize_auto_load): Change the "safe-path" help text.
1763 * configure: Regenerate
1764 * configure.ac (--without-auto-load-safe-path): Set
1765 WITH_AUTO_LOAD_SAFE_PATH to /.
1769 * stap-probe.h: Do not include unecessary `probe.h'.
1773 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1774 bfd_und_section_ptr.
1775 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1776 and bfd_com_section_ptr.
1780 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1784 * windows-nat.h (segment_register_p_ftype): New typedef.
1785 (windows_set_segment_register_p): Add declaration.
1786 * windows-nat.c (segment_register_p): New static global.
1787 (windows_set_segment_register_p): New function.
1788 (do_windows_fetch_inferior_registers): Add special handling
1789 for segment registers.
1790 * amd64-windows-nat.c: #include "amd64-tdep.h".
1791 (amd64_windows_segment_register_p): New function.
1792 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1793 * i386-windows-nat.c: #include "i386-tdep.h".
1794 (i386_windows_segment_register_p): New function.
1795 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1799 * printcmd.c (set_command): Emit a warning if the expression is not
1804 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1809 * stap-probe.c (stap_is_operator): Change declaration.
1810 (stap_get_opcode): Change return value.
1811 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1812 `stap_parse_argument_1'.
1816 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1821 Add two new methods global_block and static_block to gdb.Symtab
1823 * NEWS (Python scripting): Add entry about the new methods.
1824 * python/py-symtab.c (stpy_global_block): New function which
1825 implements the gdb.Symtab.global_block() method.
1826 (stpy_static_block): New function which implements the
1827 gdb.Symtab.static_block() method.
1828 (symtab_object_methods): Add entries for the two new methods.
1832 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1837 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1839 (i386_process_record): Ditto.
1843 * infcall.c (unwind_on_signal_p): Make static.
1847 * sol-thread.c (solaris_pid_to_str): Make static.
1848 (_initialize_sol_thread): Add prototype.
1852 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1856 * MAINTAINERS: Remove myself.
1860 Fix --without-auto-load-safe-path for MS-Windows host platform.
1861 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1865 * gdb_curses.h: Undefine KEY_EVENT before including curses
1866 headers. Move "#undef MOUSE_MOVED" before any curses header
1871 * features/i386/i386-mmx-linux.c: Regenerate.
1872 * features/rs6000/powerpc-32.c: Likewise.
1873 * features/rs6000/powerpc-32l.c: Likewise.
1874 * features/rs6000/powerpc-403.c: Likewise.
1875 * features/rs6000/powerpc-403gc.c: Likewise.
1876 * features/rs6000/powerpc-405.c: Likewise.
1877 * features/rs6000/powerpc-505.c: Likewise.
1878 * features/rs6000/powerpc-601.c: Likewise.
1879 * features/rs6000/powerpc-602.c: Likewise.
1880 * features/rs6000/powerpc-603.c: Likewise.
1881 * features/rs6000/powerpc-604.c: Likewise.
1882 * features/rs6000/powerpc-64.c: Likewise.
1883 * features/rs6000/powerpc-64l.c: Likewise.
1884 * features/rs6000/powerpc-750.c: Likewise.
1885 * features/rs6000/powerpc-860.c: Likewise.
1886 * features/rs6000/powerpc-e500.c: Likewise.
1887 * features/rs6000/powerpc-e500l.c: Likewise.
1888 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1889 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1890 * features/rs6000/rs6000.c: Likewise.
1894 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1896 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1897 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1898 (stap_parse_argument) <e>: Likewise.
1899 (handle_stap_probe) <byte_order>: Likewise.
1903 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1904 init_and_read_dies_worker. All callers updated.
1905 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1906 replaced with init_cutu_and_read_dies.
1907 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1908 (find_partial_die): Remove FIXME. Don't free current CU.
1912 * contrib: New directory.
1913 * contrib/test_pubnames_and_indexes.py: New file.
1917 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1918 All callers updated.
1919 (init_cu_die_reader): Verify the section is non-empty.
1920 (dwarf_decode_line_header): Don't dereference section->asection
1921 until we know the section is present.
1925 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1930 * gdb-code-style.el: New hook gdb-markup-hook
1931 and gdb-comment-hook.
1935 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1936 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1938 * symfile.h (dwarf2_debug_sections): New member addr.
1939 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1940 (ctx_no_get_addr_index): New function.
1941 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1942 (ctx_no_get_addr_index): Declare.
1943 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1944 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1945 (dwarf_expr_ctx_funcs): Update.
1946 (needs_get_addr_index): New function.
1947 (needs_frame_ctx_funcs): Update.
1948 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1949 * dwarf2read.c: #include "gdbcore.h".
1950 (dwarf2_per_objfile): New members addr, dwo_files.
1951 (dwarf2_elf_names): Add entry for addr.
1952 (struct dwo_section_names): New type.
1953 (dwo_section_names): New static global.
1954 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1955 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1956 old debug_types_section member updated to use this.
1957 Rename member debug_types_section to info_or_types_section,
1959 (signatured_type): Rename member type_offset to type_offset_in_tu,
1960 all uses updated. New member type_offset_in_section.
1961 (struct dwo_sections): New type.
1962 (struct dwo_unit): New type.
1963 (struct dwo_file): New type.
1964 (die_reader_specs): New member dwo_file.
1965 (dwarf2_locate_sections): Watch for .debug_addr.
1966 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1967 (dwarf2_read_section): Get bfd of section from bfd's asection,
1969 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1970 (create_signatured_type_table_from_index): Initialize
1971 sig_type->info_or_types_section.
1972 (dw2_get_file_names): Statement lists for type units with DWO files
1973 live in the DWO file.
1974 (create_debug_types_hash_table): New function.
1975 (create_all_type_units): Rewrite.
1976 (init_cu_die_reader): New arg dwo_file, all callers updated.
1977 (init_and_read_dies_worker): Get section from
1978 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1979 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1980 continue reading the CU/TU from there.
1981 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1982 updated. Get section from this_cu->info_or_types_section.
1983 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1984 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1985 DW_FORM_GNU_str_index.
1986 (hash_dwo_file, eq_dwo_file): New functions.
1987 (allocate_dwo_file_hash_table): New function.
1988 (hash_dwo_unit, eq_dwo_unit): New functions.
1989 (allocate_dwo_unit_table): New function.
1990 (dwarf2_locate_dwo_sections): New function.
1991 (struct create_dwo_info_table_data): New type.
1992 (create_debug_info_hash_table_reader): New function.
1993 (create_debug_info_hash_table): New function.
1994 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1995 (lookup_dwo_file): New function.
1996 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1997 (free_dwo_file, free_dwo_file_cleanup): New functions.
1998 (free_dwo_file_from_slot, free_dwo_files): New functions.
1999 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2000 (dwarf2_record_block_ranges): Ditto.
2001 (read_partial_die): Ditto.
2002 (process_enumeration_scope): Update to use type_offset_in_section.
2003 (read_full_die_1): New function.
2004 (read_full_die): Rewrite.
2005 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2006 DW_FORM_GNU_str_index.
2007 (read_addr_index_1, read_addr_index): New functions.
2008 (read_addr_index_from_leb128): New function.
2009 (struct dwarf2_read_addr_index_data): New type.
2010 (dwarf2_read_addr_index_reader): New function.
2011 (dwarf2_read_addr_index): New function.
2012 (read_str_index): New function.
2013 (leb128_size): New function.
2014 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2015 If processing a type unit from a DWO file, get the line section
2017 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2018 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2019 DW_FORM_GNU_str_index.
2020 (lookup_die_type): Check whether section offset of type's die is
2021 known before looking it up. Remove assert. Condition can
2022 legimately happen for inter-cu type references.
2023 (dwarf_attr_name): Handle Fission attributes.
2024 (dwarf_form_name): Handle Fission forms.
2025 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2026 DW_FORM_GNU_str_index.
2027 (follow_die_sig): Update to use type_offset_in_section.
2028 (decode_locdesc): New case DW_OP_GNU_addr_index.
2029 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2030 DW_FORM_GNU_str_index.
2031 (cu_debug_loc_section): New function.
2032 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2033 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2034 Free DWO files if present.
2035 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2037 Refactor DIE reading.
2038 * dwarf2read.c (dwarf2_per_objfile): Replace members
2039 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2040 (die_reader_specs): New member "die_section". Temporarily make
2041 member "buffer" non-const, pending constifying all info_ptr uses.
2042 (die_reader_func_ftype): New typedef.
2043 (dw2_get_file_names_reader): New function.
2044 (dw2_get_file_names): Rewrite.
2045 (read_and_check_type_unit_head): Rename arg type_offset to
2047 (create_all_type_units): Improve debugging message.
2048 Improve dummy type unit check.
2049 (init_cu_die_reader): New arg "section". All callers updated.
2050 (init_and_read_dies_worker): New function.
2051 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2052 (init_cutu_and_read_dies_no_follow): New function.
2053 (init_cutu_and_read_dies_simple): New function.
2054 (process_psymtab_comp_unit_reader): New function.
2055 (process_psymtab_comp_unit): Delete args section,
2056 is_debug_types_section. Rewrite. All callers updated.
2057 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2058 All callers updated. Rewrite.
2059 (load_partial_comp_unit_reader): New function.
2060 (load_partial_comp_unit): Rewrite.
2061 (skip_children): New arg reader. Delete args buffer, cu.
2062 All callers updated.
2063 (skip_one_die): New arg reader. Delete args buffer, cu.
2064 All callers updated.
2065 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2066 All callers updated.
2067 (load_full_comp_unit_reader): New function.
2068 (load_full_comp_unit): Rewrite.
2069 (read_comp_unit): Delete.
2070 (read_die_and_children_1): Delete, contents moved ...
2071 (read_die_and_children): ... here.
2072 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2073 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2074 All callers updated.
2075 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2076 All callers updated.
2077 (find_partial_die): Rewrite load_all_dies support.
2078 (read_attribute_value): New arg reader. Delete args abfd, cu.
2079 All callers updated.
2080 (read_attribute): New arg reader. Delete args abfd, cu.
2081 All callers updated.
2082 (load_full_type_unit): Add assert.
2083 (read_signatured_type_reader): New function.
2084 (read_signatured_type): Rewrite.
2085 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2086 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2087 All callers updated. Set per_cu->cu = NULL after freeing it.
2088 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2089 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2090 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2091 (set_die_type): Update.
2092 (get_die_type_at_offset): Update.
2093 (read_file_scope): Call prepare_one_comp_unit.
2094 (read_type_unit_scope): Ditto.
2095 (prepare_one_comp_unit): Set producer if present.
2099 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2100 gettext function on `error'.
2104 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2110 * breakpoint.c (struct breakpoint_objfile_data)
2111 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2112 <exception_probes>: New fields.
2113 (free_breakpoint_probes): New function.
2114 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2115 `_Unwind_DebugHook'.
2116 (create_exception_master_breakpoint): Likewise.
2117 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2118 * infrun.c: Including necessary header files for handling SystemTap
2120 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2121 via SystemTap probes.
2122 (check_exception_resume): Remove `func' argument. Handle exception
2123 unwinding breakpoint set via a SystemTap probe.
2124 (insert_exception_resume_from_probe): New function.
2130 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2131 (COMMON_OBS): Likewise.
2132 (HFILES_NO_SRCDIR): Add `probe'.
2133 * NEWS: Mention support for static and SystemTap probes.
2134 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2135 SystemTap probes' arguments parser.
2136 * arm-linux-tdep.c: Including headers needed to perform the parsing
2137 of SystemTap probes' arguments.
2138 (arm_stap_is_single_operand): New function.
2139 (arm_stap_parse_special_token): Likewise.
2140 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2141 probes' arguments parser.
2142 * ax-gdb.c (require_rvalue): Removing static declaration.
2143 (gen_expr): Likewise.
2144 * ax-gdb.h (gen_expr): Declaring function.
2145 (require_rvalue): Likewise.
2146 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2147 (bkpt_probe_breakpoint_ops): New variable.
2148 (momentary_breakpoint_from_master): Set the `probe' value.
2149 (add_location_to_breakpoint): Likewise.
2150 (break_command_1): Using proper breakpoint_ops according to the
2151 argument passed by the user in the command line.
2152 (bkpt_probe_insert_location): New function.
2153 (bkpt_probe_remove_location): Likewise.
2154 (bkpt_probe_create_sals_from_address): Likewise.
2155 (bkpt_probe_decode_linespec): Likewise.
2156 (tracepoint_probe_create_sals_from_address): Likewise.
2157 (tracepoint_probe_decode_linespec): Likewise.
2158 (tracepoint_probe_breakpoint_ops): New variable.
2159 (trace_command): Using proper breakpoint_ops according to the
2160 argument passed by the user in the command line.
2161 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2162 static probes on breakpoints and tracepoints.
2163 * breakpoint.h (struct bp_location) <probe>: New field.
2164 * cli-utils.c (skip_spaces_const): New function.
2165 (extract_arg): Likewise.
2166 * cli-utils.h (skip_spaces_const): Likewise.
2167 (extract_arg): Likewise.
2168 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2169 * configure.ac: Append `stap-probe.o' to be generated when ELF
2171 * configure: Regenerate.
2172 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2173 * elfread.c: Include `probe.h' and `arch-utils.h'.
2174 (probe_key): New variable.
2175 (elf_get_probes): New function.
2176 (elf_get_probe_argument_count): Likewise.
2177 (elf_evaluate_probe_argument): Likewise.
2178 (elf_compile_to_ax): Likewise.
2179 (elf_symfile_relocate_probe): Likewise.
2180 (stap_probe_key_free): Likewise.
2181 (elf_probe_fns): New variable.
2182 (elf_sym_fns): Add `sym_probe_fns' value.
2183 (elf_sym_fns_lazy_psyms): Likewise.
2184 (elf_sym_fns_gdb_index): Likewise.
2185 (_initialize_elfread): Initialize objfile cache for static
2187 * gdb_vecs.h (struct probe): New forward declaration.
2188 (probe_p): New VEC declaration.
2189 * gdbarch.c: Regenerate.
2190 * gdbarch.h: Regenerate.
2191 * gdbarch.sh (stap_integer_prefix): New variable.
2192 (stap_integer_suffix): Likewise.
2193 (stap_register_prefix): Likewise.
2194 (stap_register_suffix): Likewise.
2195 (stap_register_indirection_prefix): Likewise.
2196 (stap_register_indirection_suffix): Likewise.
2197 (stap_gdb_register_prefix): Likewise.
2198 (stap_gdb_register_suffix): Likewise.
2199 (stap_is_single_operand): New function.
2200 (stap_parse_special_token): Likewise.
2201 (struct stap_parse_info): Forward declaration.
2202 * i386-tdep.c: Including headers needed to perform the parsing
2203 of SystemTap probes' arguments.
2204 (i386_stap_is_single_operand): New function.
2205 (i386_stap_parse_special_token): Likewise.
2206 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2207 probes' arguments parser.
2208 * i386-tdep.h (i386_stap_is_single_operand): New function.
2209 (i386_stap_parse_special_token): Likewise.
2210 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2211 * mipsread.c (ecoff_sym_fns): Likewise.
2212 * objfiles.c (objfile_relocate1): Support relocation for static
2214 * parse.c (prefixify_expression): Remove static declaration.
2215 (initialize_expout): Likewise.
2216 (reallocate_expout): Likewise.
2217 * parser-defs.h (initialize_expout): Declare function.
2218 (reallocate_expout): Likewise.
2219 (prefixify_expression): Likewise.
2220 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2221 of SystemTap probes' arguments.
2222 (ppc_stap_is_single_operand): New function.
2223 (ppc_stap_parse_special_token): Likewise.
2224 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2225 probes' arguments parser.
2226 * probe.c: New file, for generic statically defined probe support.
2227 * probe.h: Likewise.
2228 * s390-tdep.c: Including headers needed to perform the parsing of
2229 SystemTap probes' arguments.
2230 (s390_stap_is_single_operand): New function.
2231 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2232 probes' arguments parser.
2233 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2234 * stap-probe.c: New file, for SystemTap probe support.
2235 * stap-probe.h: Likewise.
2236 * symfile.h: Include `gdb_vecs.h'.
2237 (struct sym_probe_fns): New struct.
2238 (struct sym_fns) <sym_probe_fns>: New field.
2239 * symtab.c (init_sal): Initialize `probe' field.
2240 * symtab.h (struct probe): Forward declaration.
2241 (struct symtab_and_line) <probe>: New field.
2242 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2244 (stop_tracing): Likewise.
2245 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2250 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2251 and to compile agent expressions.
2252 * infrun.c (siginfo_make_value): New argument `ignore'.
2253 (siginfo_funcs): New struct.
2254 (_initialize_infrun): New argument when calling
2255 `create_internalvar_type_lazy'.
2256 * thread.c (thread_id_make_value): New argument `ignore'.
2257 (thread_funcs): New struct.
2258 (_initialize_thread): New argument when calling
2259 `create_internalvar_type_lazy'.
2260 * tracepoint.c (sdata_make_value): New argument `ignore'.
2261 (sdata_funcs): New struct.
2262 (_initialize_tracepoint): New argument when calling
2263 `create_internalvar_type_lazy'.
2264 * value.c (make_value): New struct.
2265 (create_internalvar_type_lazy): New argument `data'.
2266 (compile_internalvar_to_ax): New function.
2267 (value_of_internalvar): Properly handling `make_value' case.
2268 (clear_internalvar): Likewise.
2269 (show_convenience): Adding `TRY_CATCH' block.
2270 * value.h (internalvar_make_value): Delete, replace by...
2271 (struct internalvar_funcs): ... this.
2272 (create_internalvar_type_lazy) <fun>: Delete argument.
2273 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2274 (compile_internalvar_to_ax): New function.
2275 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2276 (tlb_funcs): New struct.
2277 (_initialize_windows_tdep): New argument when calling
2278 `create_internalvar_type_lazy'.
2282 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2283 see whether it is an address or a constant offset from DW_AT_low_pc.
2284 (dwarf2_record_block_ranges): Likewise.
2285 (read_partial_die): Likewise.
2289 * MAINTAINERS (Write After Approval): Add myself to the list.
2293 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2294 (proc_prettyprint_signal): Likewise.
2295 (proc_prettyprint_faultset): Likewise.
2296 (proc_prettyprint_fault): Likewise.
2297 (proc_prettyprint_actionset): Likewise.
2298 (proc_prettyprint_flags): Move to new proc-flags.c section.
2299 (proc_prettyfprint_flags): New prototype.
2300 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2301 (proc_syscall, proc_cursig): Likewise.
2302 (proc_set_kill_on_last_close): Likewise.
2303 (proc_unset_kill_on_last_close): Likewise.
2304 (proc_set_watchpoint): Make static.
2305 (proc_delete_dead_threads): Likewise.
2306 (procfs_set_watchpoint): Likewise.
2307 (_initialize_procfs): Add prototype.
2308 * proc-events.c: Include proc-utils.h.
2309 (init_syscall_table): Make static.
2310 * proc-api.c (_initialize_proc_api): Add prototype.
2311 * proc-flags.c: Include proc-utils.h.
2315 * configure.ac: Add AC_ARG_PROGRAM.
2316 * configure: Regenerate.
2320 Fix DW_AT_lower_bound defaults for DWARF-4+.
2321 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2322 high. New variable low_default_is_valid. Implement DWARF-4+
2323 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2324 no default by the DWARF standard.
2329 * infrun.c (handle_inferior_event): Move the check for return
2330 trampolines ahead of the check for function trampolines.
2331 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2332 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2333 (mips_str_mips16_ret_stub): Likewise.
2334 (mips_str_call_fp_stub): Likewise.
2335 (mips_str_call_stub): Likewise.
2336 (mips_str_fn_stub): Likewise.
2337 (mips_str_pic): Likewise.
2338 (mips_in_frame_stub): New function.
2339 (mips_unwind_pc): Return the return address rather than the PC
2340 if the PC of an intermediate frame is inside a call thunk.
2341 (mips_is_stub_suffix): New function.
2342 (mips_is_stub_mode): Likewise.
2343 (mips_get_mips16_fn_stub_pc): Likewise.
2344 (mips_skip_mips16_trampoline_code): Update to handle all the
2345 currently generated stub types. Don't recurse into __fn_stub
2346 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2347 Use cooked register accesses.
2348 (mips_in_return_stub): Reintroduce function.
2349 (mips_skip_trampoline_code): Traverse trampolines recursively.
2350 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2358 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2359 * features/arm-with-m-vfp-d16.xml: New file. Describes
2360 Cortex-M with VFPv4-sp-d16 FPU register layout.
2361 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2362 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2363 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2364 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2365 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2369 * cli/cli-decode.c (print_doc_line): Use stream instead of
2374 * features/arm-with-iwmmxt.c: Regenerate.
2375 * features/arm-with-m-fpa-layout.c: Likewise.
2376 * features/arm-with-m.c: Likewise.
2377 * features/arm-with-neon.c: Likewise.
2378 * features/arm-with-vfpv2.c: Likewise.
2379 * features/arm-with-vfpv3.c: Likewise.
2380 * features/mips-dsp-linux.c: Likewise.
2381 * features/mips-linux.c: Likewise.
2382 * features/mips64-dsp-linux.c: Likewise.
2383 * features/mips64-linux.c: Likewise.
2384 * features/s390-linux32.c: Likewise.
2385 * features/s390-linux32v1.c: Likewise.
2386 * features/s390-linux32v2.c: Likewise.
2387 * features/s390-linux64.c: Likewise.
2388 * features/s390-linux64v1.c: Likewise.
2389 * features/s390-linux64v2.c: Likewise.
2390 * features/s390x-linux64.c: Likewise.
2391 * features/s390x-linux64v1.c: Likewise.
2392 * features/s390x-linux64v2.c: Likewise.
2393 * features/tic6x-c62x-linux.c: Likewise.
2394 * features/tic6x-c62x.c: Likewise.
2395 * features/tic6x-c64x-linux.c: Likewise.
2396 * features/tic6x-c64x.c: Likewise.
2397 * features/tic6x-c64xp-linux.c: Likewise.
2398 * features/tic6x-c64xp.c: Likewise.
2399 * target-descriptions.c: Only generate `field_type' and `type'
2400 variables when needed.
2404 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2408 Initial pass at Go language support.
2410 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2412 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2413 (YYFILES): Add go-exp.c.
2414 (YYOBJ): Add go-exp.o.
2415 (local-maintainer-clean): Delete go-exp.c.
2416 * defs.h (enum language): Add language_go.
2417 * dwarf2read.c: #include "go-lang.h".
2418 (fixup_go_packaging): New function.
2419 (process_full_comp_unit): Call it when processing Go CUs.
2420 (dwarf2_physname): Add Go support.
2421 (read_file_scope): Handle missing language spec for GNU Go.
2422 (set_cu_language): Handle DW_LANG_Go.
2423 * go-exp.y: New file.
2424 * go-lang.h: New file.
2425 * go-lang.c: New file.
2426 * go-typeprint.c: New file.
2427 * go-valprint.c: New file.
2428 * symtab.c: #include "go-lang.h".
2429 (symbol_set_language): Handle language_go.
2430 (symbol_find_demangled_name, symbol_set_names): Ditto.
2431 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2435 avoid a few strncpy-induced buffer overruns
2436 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2437 fname and psargs before trying to concatenate.
2438 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2439 "name" before applying strchr.
2443 * CONTRIBUTE: Use unified diff instead of context diff when
2448 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2449 code. Handle JR.HB correctly.
2454 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2455 with the other MIPS16 helpers.
2459 * observer.sh: Conditionally declare `args', thus cleaning up
2460 unused instances of this variable.
2464 Revert this patch to allow breakpoint always-inserted
2467 * breakpoint.c: Include record.h.
2468 (breakpoints_always_inserted_mode): Return false when the record
2471 * breakpoint.c (iterate_over_bp_locations): New.
2472 * breakpoint.h: Declare.
2473 New typedef walk_bp_location_callback.
2474 * record.c (record_open): Call record_init_record_breakpoints.
2475 (record_sync_record_breakpoints): New.
2476 (record_init_record_breakpoints): New.
2477 * NEWS: Mention supporting breakpoint always-inserted mode in
2482 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2487 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2488 (is_catchpoint): ... it.
2489 (print_one_breakpoint_location): Caller update.
2490 * breakpoint.h: Update declaration.
2494 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2498 * buildsym.c (add_free_pendings): Remove.
2499 * buildsym.h (add_free_pendings): Remove.
2503 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2504 attr.u.unsnd instead of attr.u.addr.
2505 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2506 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2508 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2509 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2511 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2515 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2516 (mips_o32_return_value): Likewise.
2517 (mips_o64_return_value): Likewise.
2521 * ada-lang.c (ada_evaluate_subexp): Add cases for
2522 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2523 their treatment in eval.c.
2527 * sparc-tdep.c (X_DISP10): Define.
2528 (sparc_analyze_control_transfer): Handle compare-and-branch.
2532 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2533 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2538 * mips-tdep.c (mips_float_register_p): New function.
2539 (mips_convert_register_float_case_p): Use mips_float_register_p.
2540 (mips_register_type): Likewise.
2541 (mips_print_register): Likewise.
2542 (print_gp_register_row): Likewise.
2543 (mips_print_registers_info): Likewise.
2547 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2552 * MAINTAINERS (Write After Approval): Add myself to the list.
2556 * MAINTAINERS: Update my e-mail address.
2560 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2562 * configure: Regenerate.
2566 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2568 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2572 Fix compilation compatibility with python-2.4
2573 * python/py-type.c (convert_field): Cast ADDRSTRING for
2574 PyObject_SetAttrString as non-const. New comment.
2578 * top.c (quit_target): Use all_cleanups.
2579 * main.c (captured_command_loop): Use all_cleanups.
2580 * exceptions.c (throw_exception): Use all_cleanups.
2584 * Makefile.in (GNULIB_BUILDDIR): New.
2585 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2586 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2587 (CLEANDIRS). Remove gnulib/import.
2588 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2590 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2591 (gnulib/import/Makefile): Replace gnulib/import with
2592 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2593 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2594 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2595 acx_configure_dir.m4.
2596 * acinclude.m4: Include acx_configure_dir.m4.
2597 * acx_configure_dir.m4: New file.
2598 * aclocal.m4: Regenerate.
2599 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2600 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2601 (GNULIB): New variable.
2602 (GNULIB_STDINT_H): Adjust.
2603 (AC_OUTPUT): Don't output gnulib/Makefile.
2604 * gdb/defs.h: Include build-gnulib/config.h.
2605 * aclocal.m4: Regenerate.
2606 * config.in: Regenerate.
2607 * configure: Regenerate.
2609 * gnulib/Makefile.in: New file.
2610 * gnulib/configure.ac: New file.
2611 * gnulib/aclocal.m4: New file.
2612 * gnulib/config.in: New file.
2613 * gnulib/configure: New file.
2614 * gnulib/: Re-run gnulib-tool to adjust.
2618 * cleanups.h (struct cleanup): Move to cleanups.c.
2619 (make_cleanup_dtor_ftype): New typedef.
2620 (make_cleanup_dtor): Use it.
2621 (ALL_CLEANUPS): Replace with ...
2622 (all_cleanups): ... this. Declare. All uses updated.
2623 * cleanups.c: #include "gdb_assert.h".
2624 (sentinel_cleanup): New static global.
2625 (SENTINEL_CLEANUP): Define.
2626 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2627 (make_my_cleanup2): Assert result is non-NULL.
2628 (all_cleanups): New function.
2629 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2634 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2635 Adjust paths to gnulib imported files.
2639 * gnulib/: Move whole directory ...
2640 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2641 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2642 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2643 (aclocal_m4_deps): Adjust.
2644 * aclocal.m4: Regenerate.
2645 * configure: Regenerate.
2646 * configure.ac: Adjust AC_OUTPUT output.
2650 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2652 * vec.c: Move it ...
2653 * common/vec.c: ... here.
2654 * vec.h: Move it ...
2655 * common/vec.h: ... here.
2659 * gdb-code-style.el: New.
2663 Update gnulib from latest git.
2664 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2666 * gnulib/Makefile.am: Update.
2667 * gnulib/dummy.c: Update.
2668 * gnulib/extra/arg-nonnull.h: Update.
2669 * gnulib/extra/c++defs.h: Update.
2670 * gnulib/extra/update-copyright: Update.
2671 * gnulib/extra/warn-on-use.h: Update.
2672 * gnulib/inttypes.in.h: Update.
2673 * gnulib/m4/00gnulib.m4: Update.
2674 * gnulib/m4/extensions.m4: Update.
2675 * gnulib/m4/gnulib-cache.m4: Update.
2676 * gnulib/m4/gnulib-common.m4: Update.
2677 * gnulib/m4/gnulib-comp.m4: Update.
2678 * gnulib/m4/gnulib-tool.m4: Update.
2679 * gnulib/m4/include_next.m4: Update.
2680 * gnulib/m4/inttypes-pri.m4: Update.
2681 * gnulib/m4/inttypes.m4: Update.
2682 * gnulib/m4/longlong.m4: Update.
2683 * gnulib/m4/memchr.m4: Update.
2684 * gnulib/m4/memmem.m4: Update.
2685 * gnulib/m4/mmap-anon.m4: Update.
2686 * gnulib/m4/multiarch.m4: Update.
2687 * gnulib/m4/onceonly.m4: Update.
2688 * gnulib/m4/stddef_h.m4: Update.
2689 * gnulib/m4/stdint.m4: Update.
2690 * gnulib/m4/string_h.m4: Update.
2691 * gnulib/m4/warn-on-use.m4: Update.
2692 * gnulib/m4/wchar_h.m4: Update.
2693 * gnulib/m4/wchar_t.m4: Update.
2694 * gnulib/m4/wint_t.m4: Update.
2695 * gnulib/memchr.c: Update.
2696 * gnulib/memmem.c: Update.
2697 * gnulib/stddef.in.h: Update.
2698 * gnulib/stdint.in.h: Update.
2699 * gnulib/str-two-way.h: Update.
2700 * gnulib/string.in.h: Update.
2701 * gnulib/wchar.in.h: Update.
2703 * gnulib/extra/arg-nonnull.h: Delete.
2704 * gnulib/extra/c++defs.h: Delete.
2705 * gnulib/extra/warn-on-use.h: Delete.
2706 * gnulib/m4/wchar_h.m4: Delete.
2707 * gnulib/m4/wint_t.m4: Delete.
2708 * gnulib/wchar.in.h: Delete.
2710 * gnulib/extra/snippets/arg-nonnull.h: New.
2711 * gnulib/extra/snippets/c++defs.h: New.
2712 * gnulib/extra/snippets/warn-on-use.h: New.
2714 * aclocal.m4: Regenerate.
2715 * config.in: Regenerate.
2716 * configure: Regenerate.
2717 * gnulib/Makefile.in: Regenerate.
2721 Reimport the update-copyright module from gnulib
2722 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2724 * configure: Regenerate.
2725 * gnulib/Makefile.am: Update.
2726 * gnulib/Makefile.in: Regenerate.
2727 * gnulib/extra/update-copyright: Update.
2728 * gnulib/m4/gnulib-cache.m4: Update.
2729 * gnulib/m4/gnulib-comp.m4: Update.
2733 * configure.ac (aix): Put -lpthread into libs.
2734 * configure: Regenerate.
2738 * linespec.c (convert_linespec_to_sals): Don't use
2740 (compare_msymbols): Arguments are minsym_and_objfile, not
2741 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2745 Revert gnulib/ part of:
2747 Copyright year update in most files (performed by copyright.sh).
2751 Fix 64-bit constants on 32-bit hosts.
2752 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2753 from unsigned long to ULONGEST.
2754 (read_signed_leb128): Change declaration return type from long to
2756 (dwarf2_const_value_attr): Change declaration parameter value from long
2758 (dwarf2_compute_name): Change variable value from long to LONGEST.
2759 (read_unsigned_leb128): Change return type, variable result and some
2760 casts from unsigned long to ULONGEST.
2761 (read_signed_leb128): Change return type, variable result and some
2762 casts from long to LONGEST.
2763 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2764 value from long to LONGEST.
2765 (dwarf2_const_value): Change variable value from long to LONGEST.
2766 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2767 plongest and hex_string.
2768 * symtab.h (struct general_symbol_info): Change ivalue from long to
2769 LONGEST, remove the comment.
2770 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2771 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2776 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2777 * ada-lang.c (ada_discrete_type_high_bound)
2778 (ada_discrete_type_low_bound): Fix function comment. Use
2779 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2780 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2781 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2782 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2783 Use TYPE_FIELD_ENUMVAL.
2784 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2785 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2786 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2787 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2789 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2790 * dwarf2read.c (process_enumeration_scope): Likewise.
2791 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2793 (class StructMainTypePrettyPrinter): Support also
2794 FIELD_LOC_KIND_ENUMVAL.
2795 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2797 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2798 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2799 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2800 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2802 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2803 accommodate enumval.
2804 (struct call_site): Adjust loc_kind to accommodate enumval.
2805 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2806 (TYPE_FIELD_ENUMVAL): New macros.
2807 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2808 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2810 * p-typeprint.c (pascal_type_print_base): Likewise.
2811 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2813 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2814 * python/py-type.c (convert_field): New variable addrstring. Use
2815 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2816 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2817 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2818 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2820 * valprint.c (generic_val_print): Likewise.
2824 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2826 * dwarf2read.c: Whitespace fixes.
2827 (lookup_signatured_type): Tweak comment.
2828 (get_die_type_at_offset): Fix comment.
2832 * xcoffread.c (xcoff_secnum_to_sections): New function.
2833 (secnum_to_section, secnum_to_bfd_section): Reimplement
2834 using xcoff_secnum_to_sections. Rename "secnum" parameter
2836 (RECORD_MINIMAL_SYMBOL): Delete.
2837 (record_minimal_symbol): New function.
2838 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2839 by call to record_minimal_symbol and set misc_func_recorded
2840 to 1. Set last_csect_sec to the XCOFF section index instead
2841 of GDB's section_offset index. Update calls to
2842 prim_record_minimal_symbol_and_info to pass the BFD section
2847 * xcoffread.c (read_xcoff_symtab): Delete variables
2848 last_csect_val and last_csect_sec and associated code.
2852 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2853 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2854 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2855 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2857 * cleanups.h: New file.
2858 * cleanups.c: New file.
2859 * Makefile.in (SFILES): Add cleanups.c.
2860 (HFILES_NO_SRCDIR): Add cleanups.h.
2861 (COMMON_OBS): Add cleanups.o.
2862 * defs.h (struct cleanup): Moved to cleanups.h.
2863 (do_cleanups,do_final_cleanups): Ditto.
2864 (discard_cleanups,discard_final_cleanups): Ditto
2865 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2866 (save_cleanups,save_final_cleanups): Ditto.
2867 (restore_cleanups,restore_final_cleanups): Ditto.
2868 (null_cleanup): Ditto.
2869 (make_my_cleanup,make_my_cleanup2): Ditto.
2870 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2871 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2872 (do_cleanups,do_final_cleanups): Ditto.
2873 (discard_cleanups,discard_final_cleanups): Ditto
2874 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2875 (save_cleanups,save_final_cleanups): Ditto.
2876 (restore_cleanups,restore_final_cleanups): Ditto.
2877 (null_cleanup): Ditto.
2878 (make_my_cleanup,make_my_cleanup2): Ditto.
2879 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2881 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2883 (make_cleanup_dyn_string_delete): Ditto.
2884 (make_cleanup_ui_file_delete): Ditto.
2885 (make_cleanup_ui_out_redirect_pop): Ditto.
2886 (make_cleanup_free_section_addr_info): Ditto.
2887 (make_cleanup_restore_integer): Ditto.
2888 (make_cleanup_unpush_target): Ditto.
2889 (make_cleanup_value_free_to_mark): Ditto.
2890 (make_cleanup_value_free): Ditto.
2891 (make_cleanup_free_so): Ditto.
2895 New option "set debug auto-load".
2896 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2897 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2898 (auto_load_safe_path_vec_update)
2899 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2901 (file_is_auto_load_safe): New parameters debug_fmt and ....
2902 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2903 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2904 caller by explanatory string.
2905 (_initialize_auto_load): Register "set debug auto-load".
2906 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2908 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2909 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2910 by explanatory string.
2911 * main.c (captured_main): Likewise.
2912 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2913 (source_section_scripts): Likewise.
2917 New option "set auto-load safe-path".
2918 * NEWS: New commands "set auto-load safe-path"
2919 and "show auto-load safe-path".
2920 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2921 (auto_load_safe_path, auto_load_safe_path_vec)
2922 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2923 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2924 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2925 (source_gdb_script_for_objfile): New variable is_safe. Call
2926 file_is_auto_load_safe. Return if it is not.
2927 (struct loaded_script): New field loaded.
2928 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2929 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2930 output "Missing" to "No".
2931 (_initialize_auto_load): New variable cmd. Initialize
2932 auto_load_safe_path. Register "set auto-load safe-path",
2933 "show auto-load safe-path" and "add-auto-load-safe-path".
2934 * auto-load.h (maybe_add_script): Add parameter loaded.
2935 (file_is_auto_load_safe): New declaration.
2936 * config.in: Regenerate.
2937 * configure: Regenerate.
2938 * configure.ac: New parameters --with-auto-load-safe-path
2939 and --without-auto-load-safe-path.
2940 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2941 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2942 * main.c (captured_main): Check file_is_auto_load_safe for
2944 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2945 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2946 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2951 auto-load: Implementation.
2952 * NEWS: New descriptions for "info auto-load",
2953 "info auto-load gdb-scripts", "info auto-load python-scripts",
2954 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2955 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2956 and "show auto-load-scripts". New description for "set auto-load",
2957 "show auto-load", "set auto-load gdb-scripts",
2958 "show auto-load gdb-scripts", "set auto-load python-scripts",
2959 "show auto-load python-scripts", "set auto-load local-gdbinit",
2960 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2961 "show auto-load libthread-db".
2962 * auto-load.c: Remove include python/python-internal.h. Add includes
2963 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2965 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2966 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2967 (gdbpy_global_auto_load): Rename to ...
2968 (global_auto_load): ... here.
2969 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2970 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2971 (script_language_gdb, source_gdb_script_for_objfile): New.
2972 (struct loaded_script): New field language.
2973 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2975 (maybe_add_script): Add parameter language. Drop redundant
2976 entry.full_path initialization. Initialize entry.language and
2978 (auto_load_objfile_script): Change parameter suffix to language.
2979 Remove the call of maybe_add_script.
2980 Call language->source_script_for_objfile.
2981 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2983 (collect_matching_scripts): Adjust it for
2984 struct collect_matching_scripts_data.
2985 (auto_load_info_scripts_pattern_nl): New variable.
2986 (info_auto_load_scripts): Rename to ...
2987 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2988 for struct collect_matching_scripts_data.
2989 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2990 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2991 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2992 (auto_load_info_cmdlist_get): New.
2993 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2994 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2995 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2996 "info auto-load local-gdbinit".
2997 * auto-load.h (struct script_language): New.
2998 (gdbpy_global_auto_load): Rename to ...
2999 (global_auto_load): ... here.
3000 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3001 (auto_load_local_gdbinit_loaded): New declarations.
3002 (maybe_add_script): New parameter language.
3003 (auto_load_objfile_script): Change parameter suffix to language.
3004 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3005 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3006 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3008 * linux-thread-db.c: Include auto-load.h and ctype.h.
3009 (auto_load_thread_db, show_auto_load_thread_db): New.
3010 (struct thread_db_info): New field filename.
3011 (delete_thread_db_info): Call xfree for FILENAME.
3012 (try_thread_db_load): Initialize FILENAME.
3013 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3014 if !AUTO_LOAD_THREAD_DB.
3015 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3016 (_initialize_thread_db): Install auto_load_thread_db
3017 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3018 as "info auto-load libthread-db".
3019 * main.c (captured_main): Rename gdbpy_global_auto_load to
3020 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3021 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3022 (print_gdb_help): Extend the help for 'local init file'.
3023 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3024 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3025 (auto_load_scripts): Rename to ...
3026 (auto_load_python_scripts): ... here, update the comment.
3027 (gdbpy_load_auto_script_for_objfile): New declaration.
3028 (show_auto_load_python_scripts, script_language_python)
3029 (gdbpy_load_auto_script_for_objfile): New.
3030 (source_section_scripts): Refactor the code.
3031 (load_auto_scripts_for_objfile): Rename to ...
3032 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3033 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3034 (info_auto_load_python_scripts): New.
3035 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3036 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3037 Register "set auto-load-scripts" as its deprecated alias. Register
3038 "info auto-load python-scripts". Register "info auto-load-scripts" as
3039 its deprecated alias.
3040 (load_auto_scripts_for_objfile): Rename to ...
3041 (gdbpy_load_auto_scripts_for_objfile): ... here.
3042 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3043 (gdbpy_load_auto_scripts_for_objfile): ... here.
3047 auto-load: Move files.
3048 * Makefile.in (SFILES): Add auto-load.c.
3049 (HFILES_NO_SRCDIR): Add auto-load.h.
3050 (COMMON_OBS): Add auto-load.o.
3051 (distclean): Change .gdbinit for gdb-gdb.gdb.
3052 * auto-load.c: New file, with parts from python/py-auto-load.c.
3053 * auto-load.h: New file, with parts from python/python.h.
3054 * configure: Regenerate.
3055 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3056 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3057 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3058 * main.c: Include auto-load.h.
3059 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3060 command.h, observer.h and progspace.h to auto-load.c. Add include
3062 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3063 (struct loaded_script, auto_load_pspace_data)
3064 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3065 (hash_loaded_script_entry, eq_loaded_script_entry)
3066 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3067 (maybe_add_script): Move to auto-load.c.
3068 (source_section_scripts): Change maybe_add_script parameters passing,
3069 use script_not_found_warning_print.
3070 (clear_section_scripts, auto_load_objfile_script)
3071 (auto_load_new_objfile, loaded_script_ptr)
3072 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3073 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3074 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3075 auto_load_new_objfile and info_auto_load_scripts initizations to
3077 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3082 * charset.c (find_charset_names): Remove variables ix and elt.
3083 Use free_char_ptr_vec.
3084 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3085 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3086 debugdir_end. New variable debugdir_len.
3087 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3088 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3090 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3091 and elt. Use free_char_ptr_vec.
3092 * source.c (add_path): Remove variables argv, arg and argv_index.
3093 New variables dir_vec, back_to, ix and name.
3094 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3095 make_cleanup_freeargv. Remove variable separator. Simplify the code
3096 no longer expecting DIRNAME_SEPARATOR.
3097 (openp): Remove variable p, p1 and len. New variables dir_vec,
3098 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3099 no longer expecting DIRNAME_SEPARATOR.
3100 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3101 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3103 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3104 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3105 (dirnames_to_char_ptr_vec): New functions.
3110 * source.c (add_path): Remove always true conditional 'p == 0' and
3111 unindent its code block.
3115 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3116 (FIELD_BITPOS_LVAL): ... this.
3117 (FIELD_BITPOS): New.
3118 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3119 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3120 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3122 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3124 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3125 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3126 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3131 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3132 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3133 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3134 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3135 * jv-lang.c (java_link_class_type): Likewise, once.
3136 * stabsread.c (read_enum_type): Likewise.
3140 * common/agent.c (agent_run_command): Add one more parameter `len'.
3142 * common/agent.h: Update declaration.
3143 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3145 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3150 * value.c (value_actual_type): New function.
3151 * value.h (value_actual_type): New declaration.
3152 * varobj.c (update_type_if_necessary): New function.
3153 (varobj_create): Call value_actual_type instead of
3155 (install_dynamic_child): distinct changed and type changed MI variable
3157 (update_dynamic_varobj_children): Updated for install_dynamic_child
3158 change. All callers updated.
3159 (varobj_update): Support for MI variable object type change if
3160 the value changed and RTTI is used to determine the type.
3161 (create_child_with_value): Call value_actual_type instead of
3163 (adjust_value_for_child_access): Extended with a new parameter which
3164 specify whether the given value should be casted to enclosing type.
3165 All callers updated.
3169 Import gnulib module inttypes from git
3170 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3171 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3172 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3173 gnulib/m4/inttypes-pri.m4
3174 * aclocal.m4, config.in, configure: Regenerated.
3175 * gnulib/Makefile.am: Update.
3176 * gnulib/Makefile.in: Update.
3177 * gnulib/m4/gnulib-cache.m4: Update.
3178 * gnulib/m4/gnulib-comp.m4: Update.
3179 * gnulib/inttypes.in.h: New.
3180 * gnulib/m4/inttypes-pri.m4: New.
3181 * gnulib/m4/inttypes.m4: New.
3185 * infrun.c (resume): Update PC address to the real PC after
3186 preparing to do displaced stepping.
3190 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3191 All callers updated.
3195 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3199 * dwarf2read.c (create_all_type_units): Renamed from
3200 create_debug_types_hash_table. All callers updated.
3202 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3203 local type_sig to sig_type, type_offset to type_offset_in_tu.
3204 (hash_signatured_type): Renamed from hash_type_signature,
3205 all callers updated.
3206 (eq_signatured_type): Renamed from eq_type_signature,
3207 all callers updated.
3208 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3209 (process_enumeration_scope): Ditto.
3210 (lookup_signatured_type_at_offset): Ditto.
3211 (load_full_type_unit, read_signatured_type): Ditto.
3215 * remote.c (async_remote_interrupt): Correct function name in
3217 (async_remote_interrupt_twice): Ditto.
3221 * source.c (find_and_open_source): Consistently pass resulting
3222 full path through xfullpath.
3226 Provide more specific displaced-stepping memory error message.
3227 * infrun.c (displaced_step_prepare): New variable status. Call
3228 target_read_memory instead of read_memory, provide more specific
3234 * darwin-nat.c (darwin_execvp): Revert previous patch.
3239 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3244 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3249 New command 'explore' which helps explore values and types in
3251 * NEWS: Add an entry about the new 'explore' command.
3252 * data-directory/Makefile.in: Add gdb/command/explore.py
3253 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3254 command using the GDB Python API.
3258 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3259 extension in jump target calculation.
3263 * mips-tdep.c (mips32_next_pc): Handle JALX.
3267 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3271 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3272 and gnulib/m4/gnulib-tool.m4.
3276 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3277 (load_partial_dies): Clarify comment.
3278 (find_partial_die): Support rereading type units.
3279 Clarify CU handling, if we know offset is in CU, don't search for the
3280 containing CU. Add comment regarding memory waste.
3284 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3285 i386/x32-avx and i386/x32-avx-linux.
3286 (i386/x32-expedite): New.
3287 (i386/x32-linux-expedite): Likewise.
3288 (i386/x32-avx-expedite): Likewise.
3289 (i386/x32-avx-linux-expedite): Likewise.
3290 ($(outdir)/i386/x32.dat): Likewise.
3291 ($(outdir)/i386/x32-linux.dat): Likewise.
3292 ($(outdir)/i386/x32-avx.dat): Likewise.
3293 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3295 * features/i386/x32-avx-linux.xml: New file.
3296 * features/i386/x32-avx.xml: Likewise.
3297 * features/i386/x32-core.xml: Likewise.
3298 * features/i386/x32-linux.xml: Likewise.
3299 * features/i386/x32.xml: Likewise.
3301 * features/i386/x32-avx-linux.c: New. Generated.
3302 * features/i386/x32-avx.c: Likewise.
3303 * features/i386/x32-linux.c: Likewise.
3304 * features/i386/x32.c: Likewise.
3305 * regformats/i386/x32-avx-linux.dat: Likewise.
3306 * regformats/i386/x32-avx.dat: Likewise.
3307 * regformats/i386/x32-linux.dat: Likewise.
3308 * regformats/i386/x32.dat: Likewise.
3312 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3313 code to kill the inferior.
3317 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3319 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3321 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3322 (yyvsp): New defines.
3323 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3325 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3327 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3329 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3331 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3336 * sparc64-tdep.c (sparc64_store_arguments)
3337 (sparc64_store_arguments): Fix coding style.
3341 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3342 complex floats, adjust some related comments and tighten a related
3344 (sparc64_extract_return_value): Handle complex floats.
3348 * dwarf2read.c (load_partial_dies): Change condition to assert.
3352 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3357 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3359 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3360 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3365 * linespec.c (decode_compound): Remove.
3366 (enum offset_relative_sign): New enum.
3367 (struct line_offset): New struct.
3368 (struct linespec): New struct.
3369 (struct linespec_state): Move file_symtabs,
3370 user_filename, and user_function into struct linespec.
3371 Make result an anonymous struct holding vectors of
3372 symbolp and minsym_and_objfile_d.
3373 Add language member.
3374 (enum ls_token_type): New enum.
3375 (linespec_keywords): New array.
3376 (struct ls_token): New struct.
3377 (struct ls_parser): New struct.
3378 (linespec_lexer_lex_number): New function.
3379 (linespec_lexer_lex_keyword): New function.
3380 (is_ada_operator): New function.
3381 (skip_quote_char): New function.
3382 (copy_token_string): New function.
3383 (is_closing_quote_enclosed): New function.
3384 (find_parameter_list_end): New function.
3385 (linespec_lexer_lex_string): New function.
3386 (linespec_lexer_lex_one): New function.
3387 (linespec_lexer_consume_token): New function.
3388 (linespec_lexer_peek_token): New function.
3389 (cplusplus_error): Remove unused function.
3390 (find_methods): Update comment.
3391 (find_toplevel_char): Return const.
3392 (is_objc_method_format): Remove unused function.
3393 (find_toplevel_string): New function.
3394 (is_linespec_boundary): Remove.
3395 (symbol_not_found_error): New function.
3396 (find_method_overload_end): Remove function.
3397 (unexpected_linespec_error): New function.
3398 (keep_name_info): Remove.
3399 (linespec_parse_line_offset): New function.
3400 (linespec_parse_basic): New function.
3401 (canonicalize_linespec): New function.
3402 (decode_line_internal): Remove.
3403 (create_sals_line_offset): New function adapted from
3405 (convert_linespec_to_sals): New function.
3406 (parse_linespec): New function.
3407 (linespec_parser_new): New function.
3408 (linespec_state_destructor): Change parameter type to
3409 struct linespec_state *.
3410 Add language parameter.
3411 Remove freeing of moved members.
3412 (linespec_parser_delete): New function.
3413 (decode_line_full): Use parse_linespec and linespec_parser_new.
3414 (decode_line_1): Likewise.
3415 (decode_indirect): Rename to ...
3416 (linespec_expression_to_pc): ... this and rewrite
3417 to simply find CORE_ADDR, storing this result for later
3419 (locate_first_half): Remove.
3420 (deocde_objc): Add parameter LS.
3421 Initialize new struct collect_info members.
3422 Handle minimal symbols, too.
3423 (decode_compound): Delete.
3424 (lookup_prefix_sym): Rewrite.
3425 (compare_msymbols): New function.
3426 (find_method): Rewrite.
3427 Do not call cplusplus_error.
3428 (symtabs_from_filename): Rewrite.
3429 (collect_function_symbols): Delete.
3430 (find_function_symbols): Rewrite without ARGPTR-style
3432 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3433 (decode_dollar): Adapted and renamed to ...
3434 (linespec_parse_variable): ... this.
3435 (find_linespec_symbols): New function.
3436 (decode_label): Adapted and renamed to ...
3437 (find_label_symbols): ... this.
3438 (decode_digits_list_mode): Add and use LS argument.
3439 (decode_digits_ordinary): Likewise.
3440 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3441 If in list mode, allow any symbol class. Otherwise, only
3442 permit LOC_BLOCK symbols.
3443 (minsym_found): Update comments.
3444 (search_minsyms_for_name): Do not convert the matching symbol
3445 into a SAL. Simply push the symbol and objfile into the
3447 (decode_variable): Delete. Contents adapted into
3448 find_linespec_symbols.
3450 * cp-support.c (SKIP_SPACE): Remove.
3451 (operator_tokens): Remove unused global.
3452 (cp_validate_operator): Remove.
3453 * cp-support.h (cp_validate_operator): Remove declaration.
3457 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3458 for TYPE_VPTR_FIELDNO.
3459 * valprint.c (valprint_check_validity): Make it global, move the
3460 function comment ...
3461 * value.h (valprint_check_validity): ... to this new declaration.
3465 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3466 the STATE32 api for i386 state.
3467 (i386_darwin_store_inferior_registers): Likewise.
3471 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3473 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3479 * darwin-nat.c (darwin_execvp): Set binary preference.
3483 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3487 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3488 of TRY_CATCH. Fix error handling.
3489 * python/py-value.c (convert_value_from_python): Move 'old'
3490 declaration to innermost scope.
3495 -Wshadow warning fix.
3496 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3497 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3498 Adjust code accordingly.
3502 * ada-lang.c (symbol_completion_add): Rename parameter
3503 "encoded" into "encoded_p". Ajust code and documentation
3509 -Wshadow warning fix.
3510 * ada-lang.c (symbol_completion_add): Rename parameter
3511 "wild_match" into wild_match_p. Update code and documentation
3516 * ada-lang.c (symbol_completion_match): Rename parameter
3517 "encoded" into "encoded_p". Ajust code and documentation
3523 -Wshadow warning fix.
3524 * ada-lang.c (symbol_completion_match): Rename parameter
3525 "wild_match" into "wild_match_p". Adjust code and function
3526 documentation accordingly.
3531 -Wshadow warning fix.
3532 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3533 "symbol_info" into "info". Adjust code accordingly.
3534 (ada_lookup_symbol): Likewise.
3538 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3539 of this function's documentation.
3544 -Wshadow warning fix.
3545 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3546 variable into "wild_match_p". Adjust code accordingly.
3551 -Wshadow warning fix.
3552 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3553 parameter into "wild_match_p". Adjust code accordingly.
3554 Document this parameter in the function description.
3559 -Wshadow warning fix.
3560 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3561 "wild_match" parameter to "wild_match_p" (-Wshadow).
3565 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3566 in function documentation.
3571 -Wshadow warning fix.
3572 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3573 variable into wild_match_p. Adjust code accordingly.
3578 * ada-valprint.c (ada_val_print_1): Move the code handling
3579 TYPE_CODE_ENUM inside its own lexical block. Declare
3580 variables len and val there, instead of in the function's
3581 top level block. Avoid declaring deref_val again in a way
3582 that shadows another variable of the same name declared
3583 in one of the up-level blocks. Just re-use the up-level
3588 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3589 Replace block_found argument by symbol_info. Adjust
3590 implementation accordingly. Add function documentation.
3591 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3593 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3594 * ada-exp.y (write_object_renaming): Adjust to new
3595 ada_lookup_encoded_symbol API.
3599 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3604 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3605 (v850_register_name): Add the mpu and fpu register names.
3606 (v850e_register_name): Add the mpu and fpu register names.
3607 (v850e2_register_name): New function.
3608 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3613 * NEWS: Add entry for Ada varobj support.
3617 * varobj.c (default_value_is_changeable_p): New function,
3618 extracted from varobj_value_is_changeable_p. Add declaration.
3619 (ada_value_is_changeable_p): New function, extracted from
3620 varobj_value_is_changeable_p. Add declaration.
3621 (struct language_specific): New field "value_is_changeable_p".
3622 (languages): Add entries for new field.
3623 (varobj_create): Set language before calling install_new_value.
3624 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3625 "value_is_changeable_p" language callback.
3629 * ada-varobj.h, ada-varobj.c: New files.
3630 * Makefile.in (SFILES): Add ada-varobj.c.
3631 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3632 (COMMON_OBS): Add ada-varobj.o.
3636 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3637 (struct language_specific): New field "value_has_mutated".
3638 (languages): Set field "value_has_mutated" in each entry of array.
3639 (varobj_value_has_mutated): New function.
3640 (varobj_udpdate): Add handling of type mutation.
3641 (value_of_root): Add handling of type mutation.
3642 (ada_value_has_mutated): New function.
3646 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3647 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3651 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3652 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3657 * .dir-locals.el: New file.
3661 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3665 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3670 Eliminate struct ui_stream.
3672 * ui-out.h (struct ui_stream): Delete.
3673 (ui_out_field_stream): Adjust prototype.
3674 (ui_out_stream_new, ui_out_stream_delete)
3675 (make_cleanup_ui_out_stream_delete): Delete declarations.
3676 * ui-out.c (ui_out_field_stream): Change prototype to take a
3677 ui_file instead of a ui_stream. Adjust.
3678 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3679 (make_cleanup_ui_out_stream_delete): Delete.
3680 * breakpoint.c (print_breakpoint_location)
3681 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3682 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3683 * disasm.c (dump_insns): Ditto.
3684 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3686 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3687 ui_stream/ui_out_stream_new.
3688 * infcmd.c (print_return_value): Ditto.
3689 * osdata.c (info_osdata_command): Don't allocate a local
3691 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3692 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3693 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3694 allocate a local ui_stream.
3695 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3696 instead of ui_stream/ui_out_stream_new.
3697 (list_args_or_locals): Don't allocate a local ui_stream.
3698 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3699 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3700 ui_stream/ui_out_stream_new.
3701 * cli/cli-setshow.c (do_setshow_command): Ditto.
3705 * arm-linux-tdep.c (arm_linux_init_abi): Call
3706 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3707 * arm-tdep.c (arm_process_record): New function.
3708 (deallocate_reg_mem): New function.
3709 (decode_insn): New function.
3710 (thumb_record_branch): New function.
3711 (thumb_record_ldm_stm_swi(): New function.
3712 (thumb_record_misc): New function.
3713 (thumb_record_ld_st_stack): New function.
3714 (thumb_record_ld_st_imm_offset): New function.
3715 (thumb_record_ld_st_reg_offset(): New function.
3716 (thumb_record_add_sub_cmp_mov): New function.
3717 (thumb_record_shift_add_sub): New function.
3718 (arm_record_coproc_data_proc): New function.
3719 (arm_record_coproc): New function.
3720 (arm_record_b_bl): New function.
3721 (arm_record_ld_st_multiple): New function.
3722 (arm_record_ld_st_reg_offset): New function.
3723 (arm_record_ld_st_imm_offset): New function.
3724 (arm_record_data_proc_imm): New function.
3725 (arm_record_data_proc_misc_ld_str): New function.
3726 (arm_record_extension_space): New function.
3727 (arm_record_strx): New function.
3728 (sbo_sbz): New function.
3729 (struct insn_decode_record): New structure for arm insn record.
3730 (REG_ALLOC): New macro for reg allocations.
3731 (MEM_ALLOC): New macro for memory allocations.
3732 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3736 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3737 (store_register): Likewise.
3741 * MAINTAINERS (Write After Approval): Add myself to the list.
3745 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3746 Describe also the option "auto".
3750 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3751 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3755 * jit.c (jit_read_code_entry): Compute alignment and offset of
3756 int64_t member before computing entry_size.
3760 Python scripting: Add new method Value.referenced_value to
3761 gdb.Value which can dereference pointer as well as reference
3763 * NEWS: Add entry under 'Python scripting' about the new method
3764 Value.referenced_value on gdb.Value objects.
3765 * python/py-value.c (valpy_referenced_value): New function
3766 defining a new method on gdb.Value objects which can dereference
3767 pointer and reference values.
3771 * MAINTAINERS (Write After Approval): Add myself to the list.
3775 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3776 in addition to "main".
3780 * expression.h (op_name): Add declaration.
3781 * expprint.c (op_name): Remove declaration. Make non-static.
3782 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3786 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3788 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3789 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3790 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3791 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3792 (linux_nat_get_siginfo): Likewise.
3793 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3794 (linux_nat_get_siginfo): Likewise.
3795 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3796 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3797 * procfs.c (gdb_siginfo_t): Likewise.
3801 * .gitignore: Ignore more files.
3805 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3810 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3815 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3816 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3817 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3819 * dwarf2expr.h (cu_offset, sect_offset): New types.
3820 (struct dwarf_expr_context_funcs) <dwarf_call>
3821 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3823 (struct dwarf_expr_context) <len>: Improve the comment.
3824 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3825 cu_offset and sect_offset.
3826 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3827 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3828 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3829 * dwarf2loc.h: Include dwarf2expr.h.
3830 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3832 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3833 Improve the comment.
3834 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3835 (struct signatured_type, struct line_header, struct partial_die_info)
3836 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3837 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3838 (get_die_type_at_offset, create_cus_from_index)
3839 (create_signatured_type_table_from_index, dw2_get_file_names)
3840 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3841 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3842 (create_debug_types_hash_table, process_psymtab_comp_unit)
3843 (load_partial_comp_unit, create_all_comp_units)
3844 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3845 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3846 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3847 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3848 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3849 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3850 (find_partial_die, read_attribute_value, lookup_die_type)
3851 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3852 (is_ref_attr): New function comment.
3853 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3854 Use cu_offset and sect_offset.
3855 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3856 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3857 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3858 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3859 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3860 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3861 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3867 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3868 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3870 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3874 * NEWS: Describe new options --init-command=FILE, -ix and
3875 --init-eval-command=COMMAND, -iex.
3876 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3877 CMDARG_INIT_COMMAND.
3878 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3879 "init-command", "init-eval-command", "ix" and "iex" to the variable
3880 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3881 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3882 (print_gdb_help): Describe --init-command=FILE, -ix and
3883 --init-eval-command=COMMAND, -iex.
3888 * main.c (struct cmdarg): Move it here from main. Add more comments.
3889 (cmdarg_s, VEC (cmdarg_s)): New.
3890 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3891 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3892 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3893 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3898 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3903 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3908 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3913 * source.c (add_path): Use memmove instead of strcpy because the
3918 * value.h (set_value_parent): Add declaration.
3919 * value.c (set_value_parent): New function.
3920 (value_address): If VALUE->PARENT is not NULL, then use it as
3921 the base address instead of VALUE->LOCATION.address.
3922 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3923 the same as OBJ's address. Adjust V's offset accordingly.
3928 PR breakpoints/10738
3929 * dwarf2read.c (use_deprecated_index_sections): New global.
3930 (struct partial_die_info): New member may_be_inlined.
3931 (read_partial_die): Set may_be_inlined where appropriate.
3932 (add_partial_subprogram): Add partial symbols for partial
3933 DIEs that may be inlined.
3934 (new_symbol_full): Add inlined subroutines to the current
3936 (write_psymtabs_to_index): Bump version number.
3937 (dwarf2_read_index): Read only version 6 indices unless
3938 use_deprecated_index_sections is set.
3939 * linespec.c (symbol_and_data_callback): New structure.
3940 (iterate_inline_only): New function.
3941 (iterate_over_all_matching_symtabs): New argument
3942 "include_inline". If nonzero, also call the callback for
3943 symbols representing inlined subroutines.
3944 (lookup_prefix_sym): Pass extra argument to the above.
3945 (find_function_symbols): Likewise.
3946 (add_matching_symbols_to_info): Likewise.
3947 * NEWS: Mention that GDB can now set breakpoints on inlined
3952 * p-typeprint.c (pascal_type_print_method_args):
3953 Fix display of parameter of methods.
3957 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3958 Add missing prototype.
3963 Fix false compilation warning.
3964 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3969 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3970 (arm_register_g_packet_guesses): New function.
3971 (arm_gdbarch_init): Don't force a target description with
3972 registers when the executable is detected as M-profile. Instead
3973 set gdbarch->tdep->is_m. Register `g' packet guesses.
3974 (_initialize_arm_tdep): Initialize the new target description.
3975 * features/arm-with-m-fpa-layout.xml: New description.
3976 * features/arm-with-m-fpa-layout.c: New, generated.
3980 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3981 Update function description.
3982 (insert_bp_location): Do not wipe bl->target_info out.
3983 * mem-break.c: #include "gdb_string.h".
3984 (default_memory_insert_breakpoint): Do not call target_read_memory
3985 with a pointer to the breakpoint's shadow_contents buffer. Use
3986 a local buffer instead.
3987 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3991 * NEWS: Mention "info vtbl", not "info vtable".
3992 * cp-support.c (info_vtbl_command): Fix comment.
3993 (_initialize_cp_support): Fix text.
3997 * cp-valprint.c (cp_print_value_fields): Use
3998 print_function_pointer_address for vtable slot.
4002 * gnu-v3-abi.c (struct value_and_voffset): New.
4003 (hash_value_and_voffset, eq_value_and_voffset)
4004 (compare_value_and_voffset, compute_vtable_size)
4005 (print_one_vtable, gnuv3_print_vtable): New functions.
4006 (init_gnuv3_ops): Initialize 'print_vtable' field.
4007 * cp-support.c (info_vtbl_command): New function.
4008 (_initialize_cp_support): Add "info vtbl".
4009 * cp-abi.h (cplus_print_vtable): Declare.
4010 (struct cp_abi_ops) <print_vtable>: New field.
4011 * cp-abi.c (cplus_print_vtable): New function.
4016 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4017 iterate_over_symbols.
4021 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4022 DW_OP_GNU_parameter_ref.
4026 Fix double prompt of 'interpreter-exec mi'.
4027 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4028 (mi_interpreter_resume): use it.
4029 (mi_execute_command_input_handler): New function.
4030 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4031 mi_execute_command_input_handler.
4035 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4037 (darwin_debug_port_info): Make static.
4038 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4039 * machoread.c (_initialize_machoread): Add prototype.
4040 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4041 (i386_darwin_set_control, i386_darwin_get_control)
4042 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4043 i386_darwin_get_status, i386_darwin_get_control):
4044 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4048 * ax-gdb.c (gen_usual_unary): Remove special handling of
4049 enum and bool types.
4053 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4057 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4061 * aix-thread.c (fill_sprs): Store the floating point registers
4062 at the correct offsets into vals.
4066 * NEWS: Mention symbol-reloading has been deleted.
4067 * symfile.c (symbol_reloading): Delete.
4068 (show_symbol_reloading): Delete.
4069 (_initialize_symfile): Delete set/show symbol-reloading.
4071 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4072 read_in_chain until we have successfully read it in.
4073 (load_full_comp_unit): Ditto.
4074 (read_signatured_type): Add comment.
4078 * stabsread.c (fix_common_block): Change type of valu argument
4083 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4088 * common/linux-procfs.c (linux_proc_get_int): New, from
4089 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4091 (linux_proc_get_tgid): Only call linux_proc_get_int.
4092 (linux_proc_get_tracerpid): New.
4093 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4094 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4095 linux_proc_pid_has_state.
4096 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4097 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4098 (linux_ptrace_attach_warnings): New.
4099 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4101 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4102 (linux_nat_attach): New variables ex, buffer, message and message_s.
4103 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4107 * Makefile.in (linux-ptrace.o): New.
4108 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4110 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4111 * common/linux-ptrace.c: New file.
4112 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4113 * config/arm/linux.mh: Likewise.
4114 * config/i386/linux.mh: Likewise.
4115 * config/i386/linux64.mh: Likewise.
4116 * config/ia64/linux.mh: Likewise.
4117 * config/m32r/linux.mh: Likewise.
4118 * config/m68k/linux.mh: Likewise.
4119 * config/mips/linux.mh: Likewise.
4120 * config/pa/linux.mh: Likewise.
4121 * config/powerpc/linux.mh: Likewise.
4122 * config/powerpc/ppc64-linux.mh: Likewise.
4123 * config/powerpc/spu-linux.mh: Likewise.
4124 * config/s390/s390.mh: Likewise.
4125 * config/sparc/linux.mh: Likewise.
4126 * config/sparc/linux64.mh: Likewise.
4127 * config/xtensa/linux.mh: Likewise.
4128 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4129 common/linux-procfs.c.
4130 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4135 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4136 CREATE_BREAKPOINT_FLAGS_INSERTED.
4137 (create_breakpoint_sal, create_breakpoints_sal)
4138 (base_breakpoint_create_breakpoints_sal)
4139 (tracepoint_create_breakpoints_sal)
4140 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4142 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4143 (ftrace_command, strace_command): Adjust.
4144 (create_tracepoint_from_upload): Pass
4145 CREATE_BREAKPOINT_FLAGS_INSERTED.
4146 * breakpoint.h (enum breakpoint_create_flags): New.
4147 (create_breakpoint): New flags parameter.
4148 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4149 * python/py-breakpoint.c (bppy_init): Adjust.
4150 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4151 * spu-tdep.c (spu_catch_start): Adjust.
4157 * remote.c (struct remote_state): New field `starting_up'.
4158 (remote_start_remote): Set and clear it.
4159 (remote_can_download_tracepoint): If starting up, return false.
4163 * inferior.h (struct inferior): Remove fields any_syscall_count,
4164 syscalls_counts and total_syscalls_count. Move them to new
4165 struct catch_syscall_inferior_data in breakpoint.c.
4166 * breakpoint.c: Call DEF_VEC_I(int).
4167 (struct catch_syscall_inferior_data): New.
4168 (get_catch_syscall_inferior_data): New.
4169 (catch_syscall_inferior_data_cleanup): New.
4170 (insert_catch_syscall): Update to access data in
4171 struct catch_syscall_inferior_data.
4172 (insert_catch_syscall): Likewise.
4173 (remove_catch_syscall): Likewise.
4174 (remove_catch_syscall): Likewise.
4175 (is_syscall_catchpoint_enabled): Likewise.
4176 (add_catch_command): Likewise.
4177 (_initialize_breakpoint): Register cleanup.
4178 * breakpoint.h: Removed DEF_VEC_I(int).
4179 * dwarf2loc.c: Call DEF_VEC_I(int).
4180 * mi/mi-main.c: Likewise.
4184 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4188 * aix-thread.c (_initialize_aix_thread): Add prototype.
4189 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4190 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4194 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4195 include of "amd64-nat.h".
4199 * buildsym.c (record_pending_block): Now static.
4200 * buildsym.h: (record_pending_block): Remove.
4204 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4208 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4209 producer_is_gxx_lt_4_6>: New fields.
4210 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4214 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4218 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4223 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4227 Fix -Wmissing-prototypes build.
4228 * arm-linux-nat.c (get_thread_id): Make it static.
4229 * xtensa-linux-nat.c (get_thread_id): Likewise.
4233 * server.c (process_point_options): If a conditional expression
4234 is found, only print a message if remote_debug is nonzero.
4238 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4239 of internal error for unknown/unsupported types.
4243 Fix CU relative vs. absolute DIE offsets.
4244 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4245 offset to offset_in_cu.
4246 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4248 (dwarf2_fetch_die_location_block): Rename parameter offset to
4249 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4253 * libunwind-frame.c: Rename to ...
4254 * ia64-libunwind-tdep.c: ... here.
4255 * libunwind-frame.h: Rename to ...
4256 * ia64-libunwind-tdep.h: ... here.
4257 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4258 ia64-libunwind-tdep.h.
4259 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4260 * README (--with-libunwind): Rename to ...
4261 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4262 * config.in: Regenerate.
4263 * configure: Regenerate.
4264 * configure.ac: New option --with-libunwind-ia64, make the
4265 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4266 Remove AC_DEFINE for HAVE_LIBUNWIND.
4267 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4268 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4269 Rename libunwind-frame in the general comment.
4270 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4271 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4272 Move forward declarations inside #ifndef. Rename libunwind-frame in
4273 the general comment.
4274 * ia64-tdep.c: Rename libunwind-frame.h #include to
4275 ia64-libunwind-tdep.h.
4276 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4277 (ia64_libunwind_descr): Rename libunwind-frame to
4278 ia64-libunwind-tdep in these function comments.
4279 * ia64-tdep.h: Rename libunwind-frame.h #include to
4280 ia64-libunwind-tdep.h.
4281 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4282 ia64-libunwind-tdep in that data comment.
4286 * libunwind-frame.h (struct frame_unwind): New declaration.
4290 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4291 "set breakpoint condition-evaluation" command.
4295 * sparc-stub.c: Move to stubs/
4296 * sh-stub.c: Likewise.
4297 * m68k-stub.c: Likewise.
4298 * m32r-stub.c: Likewise.
4299 * i386-stub.c: Likewise.
4303 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4304 linux_get_siginfo_type.
4306 * m68klinux-nat.c: Include "gdb_proc_service.h".
4307 (PTRACE_GET_THREAD_AREA): Define.
4308 (ps_get_thread_area): New function.
4312 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4314 (remote_query_attached): Likewise.
4315 (remote_static_tracepoint_marker_at): Likewise.
4316 (remote_set_permissions): Likewise.
4317 (remote_detach_1, extended_remote_attach_1): Likewise.
4318 (send_g_packet, remote_vkill): Likewise.
4319 (extended_remote_disable_randomization): Likewise.
4320 (remote_add_target_side_condition): Likewise.
4321 (remote_insert_breakpoint): Likewise.
4322 (remote_remove_breakpoint): Likewise.
4323 (remote_insert_watchpoint): Likewise.
4324 (remote_remove_watchpoint): Likewise.
4325 (remote_insert_hw_breakpoint): Likewise.
4326 (remote_insert_hw_breakpoint): Likewise.
4327 (remote_remove_hw_breakpoint): Likewise.
4328 (remote_download_command_source): Likewise.
4329 (remote_download_tracepoint): Likewise.
4330 (remote_download_trace_state_variable): Likewise.
4331 (remote_disable_tracepoint): Likewise.
4332 (remote_trace_set_readonly_regions): Likewise.
4333 (remote_get_tracepoint_status): Likewise.
4334 (remote_trace_find): Likewise.
4335 (remote_get_trace_state_variable_value): Likewise.
4336 (remote_set_disconnected_tracing): Likewise.
4337 (remote_set_circular_trace_buffer): Likewise.
4338 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4339 (remote_use_agent): Likewise.
4340 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4345 * NEWS: Mention QProgramSignals.
4346 * inferior.h (update_signals_program_target): Declare.
4347 * infrun.c: (update_signals_program_target): New.
4348 (handle_command): Update the target of the new program signals
4350 * remote.c (PACKET_QProgramSignals): New enum.
4351 (last_program_signals_packet): New global.
4352 (remote_program_signals): New.
4353 (remote_start_remote): Update the target with the program signals
4355 (remote_protocol_features): Add entry for QPassSignals.
4356 (remote_open_1): Free anc clear last_program_signals_packet.
4357 (init_remote_ops): Install remote_program_signals.
4358 * target.c (update_current_target): Adjust.
4359 (target_program_signals): New.
4360 * target.h (struct target_ops) <to_program_signals>: New field.
4361 (target_program_signals): Declare.
4365 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4370 * m68klinux-nat.c (getregs_supplies): Make static.
4371 (getfpregs_supplies): Likewise.
4372 (have_ptrace_getregs): Likewise.
4376 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4377 in call to get_die_type_at_offset.
4381 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4382 * mi/mi-cmd-disas.c: Ditto.
4383 * mi/mi-cmd-env.c: Ditto.
4384 * mi/mi-cmd-file.c: Ditto.
4385 * mi/mi-cmd-stack.c: Ditto.
4386 * mi/mi-cmd-target.c: Ditto.
4387 * mi/mi-cmd-var.c: Ditto.
4388 * mi/mi-cmds.c: Ditto.
4389 * mi/mi-cmds.h: Ditto.
4390 * mi/mi-console.c: Ditto.
4391 * mi/mi-getopt.c: Ditto.
4392 * mi/mi-getopt.h: Ditto.
4393 * mi/mi-interp.c: Ditto.
4394 * mi/mi-main.c: Ditto.
4395 * mi/mi-out.c: Ditto.
4396 * mi/mi-parse.c: Ditto.
4397 * mi/mi-parse.h: Ditto.
4398 * mi/mi-symbol-cmds.c: Ditto.
4400 * mi/mi-getopt.h: Move mi_opt struct up.
4401 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4403 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4407 * proc-service.c (ps_pglobal_lookup): Set the current program
4412 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4416 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4421 * common/linux-osdata.c (linux_common_core_of_thread): New function
4423 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4424 call by linux_common_core_of_thread.
4425 (linux_nat_core_of_thread_1): Remove.
4426 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4427 * linux-thread-db.c: Include linux-osdata.h.
4428 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4429 linux_common_core_of_thread.
4433 * value.c (value_primitive_field): Don't fetch contents for
4438 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4442 * s390-nat.c: Include "gregset.h".
4446 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4447 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4448 (libunwind_load): New variable so_error, use it for dlerror. Try to
4449 load also LIBUNWIND_SO_7.
4453 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4454 is not NULL, and remove resulting dead code.
4458 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4459 prologue to sh_analyze_prologue.
4460 (sh_analyze_prologue): Make better use of such an upper limit, and
4461 generally be more cautious about accessing memory.
4465 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4466 _initialize_ia64_hpux_tdep.
4472 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4473 the register state is clear, supply explicit zero, instead of
4474 marking the register unavailable.
4478 * NEWS: Mention OpenVMS ia64 new target.
4482 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4483 (ia64_unw_accessors, ia64_unw_rse_accessors)
4484 (ia64_libunwind_descr): Declare.
4485 * ia64-vms-tdep.c: New file.
4486 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4487 (ia64_libunwind_descr): Make them public.
4488 * configure.tgt: Add ia64-*-*vms*.
4489 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4490 (ALLDEPFILES): Add ia64-vms-tdep.c
4494 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4495 * remote.c (PACKET_qXfer_uib): New enum value.
4496 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4497 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4498 (_initialize_remote): Call add_packet_config_cmd for
4503 * osabi.c (gdb_osabi_names): Add OpenVMS.
4504 (generic_elf_osabi_sniffer): Likewise.
4505 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4509 Removed unused code.
4510 * libunwind-frame.c (libunwind_frame_unwind)
4511 (libunwind_frame_base_address): Remove.
4512 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4516 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4517 remove trailing new line.
4518 (agent_run_command, agent_run_command): Add _ markup.
4519 (agent_capability_check): Likewise.
4523 * breakpoint.c (set_condition_evaluation_mode): Set
4524 CONDITION_EVALUATION_MODE unconditionally.
4528 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4529 * common/agent.h: Update declaration.
4530 * inf-child.c (inf_child_use_agent): New.
4531 (inf_child_can_use_agent): New.
4532 (inf_child_target): Initialize fields `to_use_agent'
4533 and `to_can_use_agent'.
4534 * agent.c (agent_new_objfile): New.
4535 (_initialize_agent): Add agent_new_objfile to new_objfile
4538 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4540 (linux_target_install_ops): Initialize field
4541 `to_static_tracepoint_markers_by_strid'.
4542 * remote.c (free_current_marker): Move it to ...
4543 * tracepoint.c (free_current_marker): ... here. New.
4544 (cleanup_target_stop): New.
4545 * tracepoint.h: Declare free_current_marker.
4546 * NEWS: Add one entry about `info static-tracepoint-marker'.
4550 * common/agent.c (agent_loaded_p): New.
4551 (agent_look_up_symbols): New global.
4552 * common/agent.h: Declare agent_loaded_p.
4556 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4557 (agent_capability_check, agent_capability_invalidate): New.
4558 (symbol_list): New array element.
4559 * common/agent.h (enum agent_capa): New.
4560 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4564 * target.h (struct target_ops) <to_use_agent>: New field.
4565 (struct target_ops) <to_can_use_agent>: New field.
4566 (target_use_agent, target_can_use_agent): New macro.
4567 * target.c (update_current_target): Update.
4568 * remote.c: New enum `PACKET_QAgent'.
4569 (remote_protocol_features): Add a new element.
4570 (remote_use_agent, remote_can_use_agent): New.
4571 (init_remote_ops): Initialize field `can_use_agent' with
4572 remote_can_use_agent. Intiailize field `use_agent' with
4574 * common/agent.c (use_agent): New global.
4575 * common/agent.h: Declare it.
4576 * tracepoint.c (info_static_tracepoint_markers_command): Add
4578 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4579 (COMMON_OBS): Add common/agent.o and agent.o
4580 (common-agent.o): New rule.
4585 * common/agent.c: New.
4586 * common/agent.h: New.
4587 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4589 * configure, configh.in: Regenerated.
4593 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4594 unless it exists for this architecture.
4598 * language.h (struct language_defn): New "method" la_read_var_value.
4599 * findvar.c: #include "language.h".
4600 (default_read_var_value): Renames read_var_value. Rewrite
4601 function description.
4602 (read_var_value): New function.
4603 * value.h (default_read_var_value): Add prototype.
4604 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4606 (ada_language_defn): Add entry for la_read_var_value.
4607 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4608 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4609 language_defn structures to add entry for new la_read_var_value
4615 PR breakpoints/13776:
4616 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4618 (delete_longjmp_breakpoint_at_next_stop): New.
4619 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4620 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4621 before deleting the inferior. Add comments.
4622 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4623 breakpoints immediately, but only on next stop. Move that code
4624 next to where we mark other breakpoints for deletion.
4628 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4630 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4635 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4639 Fix -Wmissing-prototypes build.
4640 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4641 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4642 (gdbsim_has_memory): Likewise.
4646 Fix -Wmissing-prototypes build.
4647 * charset.c (phony_iconv_open): Make static.
4648 (phony_iconv_close, phony_iconv): Likewise.
4649 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4650 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4652 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4653 * ser-mingw.c (create_select_thread): Make static.
4654 * windows-termcap.c (tgetent): New prototype.
4655 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4659 Fix -Wmissing-prototypes build.
4660 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4661 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4662 (_initialize_loadable): New prototypes.
4666 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4667 abbrev table, read_comp_unit will do it.
4671 Fix -Wmissing-prototypes build.
4672 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4673 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4674 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4675 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4676 (_initialize_arm_symbian_tdep): New prototype.
4677 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4678 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4679 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4681 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4682 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4684 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4685 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4686 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4688 * moxie-tdep.c (moxie_process_record): Likewise.
4689 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4690 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4691 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4692 (_initialize_rl78_tdep): New prototype.
4693 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4694 (_initialize_rx_tdep): New prototype.
4695 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4696 (_initialize_darwin_solib): New prototype.
4697 * solib-spu.c: Include solib-spu.h.
4698 (_initialize_spu_solib): New prototype.
4699 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4700 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4701 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4702 (tic6x_software_single_step): Make it static.
4703 (_initialize_tic6x_tdep): New prototype.
4707 Fix -Wmissing-prototypes build.
4708 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4709 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4713 Fix -Wmissing-prototypes build.
4714 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4715 (frv_have_stopped_data_address): Remove.
4719 Fix -Wmissing-prototypes build.
4720 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4721 * sh-tdep.c: Include sh64-tdep.h.
4722 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4723 * sh64-tdep.c: Include sh64-tdep.h.
4724 * sh64-tdep.h: New file.
4728 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4732 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4733 sp_regnum once the gdbarch_init_osabi hook has been called.
4737 * mips-tdep.c (mips32_bc1_pc): New function.
4738 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4739 BPOSGE32 and BPOSGE64 instructions.
4740 (deal_with_atomic_sequence): Likewise.
4741 (mips32_instruction_has_delay_slot): Likewise.
4748 * features/mips-dsp.xml: New file.
4749 * features/mips64-dsp.xml: New file.
4750 * features/mips-dsp-linux.xml: New file.
4751 * features/mips64-dsp-linux.xml: New file.
4752 * features/Makefile (WHICH): Add mips-dsp-linux and
4754 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4755 * features/mips-dsp-linux.c: New file.
4756 * features/mips64-dsp-linux.c: New file.
4757 * regformats/mips-dsp-linux.dat: New file.
4758 * regformats/mips64-dsp-linux.dat: New file.
4759 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4761 (mips64_linux_register_addr): Likewise.
4762 (mips64_linux_regsets_fetch_registers): Likewise.
4763 (mips64_linux_regsets_store_registers): Likewise.
4764 (mips64_linux_fetch_registers): Update call to
4765 mips64_linux_regsets_fetch_registers.
4766 (mips64_linux_store_registers): Update call to
4767 mips64_linux_regsets_store_registers.
4768 (mips_linux_read_description): Probe for DSP registers.
4769 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4770 and initialize_tdesc_mips64_dsp_linux.
4771 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4772 Remove padding of no longer used embedded register slots.
4773 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4774 (MIPS_RESTART_REGNUM): Redefine enum value.
4775 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4777 (mips_tx39_reg_names): Likewise.
4778 (mips_linux_reg_names): New array of register names for Linux
4780 (mips_register_name): Check for a null pointer in
4781 mips_processor_reg_names and return an empty string.
4782 (mips_register_type): Exclude embedded registers for the IRIX
4784 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4785 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4787 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4788 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4789 (mips_gdbarch_init): Likewise. Initialize internal register
4790 indices for the Linux ABI. Use dynamic numbers to refer to
4791 registers, as applicable, while parsing the target description.
4792 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4796 * frame.h (read_frame_register_unsigned): Fix typo in function
4801 * jit-reader.in [!__cplusplus]
4802 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4806 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4807 * configure: Regenerate.
4811 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4812 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4813 (ftrace_command, strace_command): Make static.
4814 * d-lang.c (_initialize_d_language): Declare.
4815 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4816 * dwarf2loc.c (_initialize_dwarf2loc):
4817 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4818 * exec.c (exec_get_section_table): Make static.
4819 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4820 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4821 * inferior.c (remove_inferior_command, add_inferior_command)
4822 (clone_inferior_command): Make static.
4823 * linux-nat.c (linux_nat_thread_address_space)
4824 (linux_nat_core_of_thread): Make static.
4825 * linux-tdep.c (_initialize_linux_tdep): Declare.
4826 * objc-lang.c (_initialize_objc_lang): Declare.
4827 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4829 (_initialize_opencl_language): Declare.
4830 * record.c (_initialize_record): Declare.
4831 * remote.c (demand_private_info, remote_get_tib_address)
4832 (remote_supports_cond_tracepoints)
4833 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4835 * skip.c (_initialize_step_skip): Declare.
4836 * symtab.c (skip_prologue_using_lineinfo): Make static.
4837 * tracepoint.c (delete_trace_state_variable)
4838 (trace_variable_command, delete_trace_variable_command)
4839 (get_uploaded_tsv, find_matching_tracepoint_location)
4840 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4842 * value.c (pack_unsigned_long): Make static.
4843 * varobj.c (varobj_ensure_python_env): Make static.
4844 * windows-tdep.c (_initialize_windows_tdep): Declare.
4845 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4849 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4851 (linux_init_abi): Install it as has_shared_address_space gdbarch
4856 * observer.c (observer_test_first_notification_function)
4857 (observer_test_second_notification_function)
4858 (observer_test_third_notification_function): Add declarations.
4862 * common/signals.c (default_target_signal_to_host)
4863 (default_target_signal_from_host): Move ...
4864 * arch-utils.c: ... here.
4865 * arch-utils.h (default_target_signal_to_host)
4866 (default_target_signal_from_host): Declare.
4868 * common/signals.c (target_signal_from_command): Move ...
4869 * infrun.c: ... here.
4870 * inferior.h (target_signal_from_command): Declare.
4871 * target.h (target_signal_from_command)
4872 (default_target_signal_from_host, default_target_signal_to_host):
4873 Delete declarations.
4875 * common/signals.c (_initialize_signals): Delete.
4879 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4880 both __cplusplus and !__cplusplus.
4884 * psymtab.c (find_and_open_source): Delete declaration.
4885 * source.c (find_and_open_source): Move comment ...
4886 * source.h (find_and_open_source): ... to this new declaration.
4890 * inline-frame.c: Include inline-frame.h.
4894 * tui/tui-data.c (set_gen_win_origin): Delete.
4895 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4896 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4900 * remote.c (encode_actions): Delete declaration.
4901 * tracepoint.c (encode_actions): Make extern.
4902 * tracepoint.h (encode_actions): Declare.
4906 * python/py-breakpoint.c: Include python.h.
4907 * python/py-continueevent.c (create_continue_event_object): Make
4909 * python/py-lazy-string.c (stpy_get_type): Make static.
4910 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4912 * python/py-utils.c (unicode_to_target_python_string): Make
4914 * python/py-value.c: Include python.h.
4918 * inferior.c (delete_threads_of_inferior): Delete.
4922 Import fallback definitions from glibc.
4924 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4925 ps_prochandle): Forward declare.
4926 (ps_err_e): Use glibc's comments.
4927 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4928 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4929 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4930 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4931 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4932 (struct ps_prochandle): Adjust comment.
4936 * ada-lang.c (ada_modulus_from_name): Delete.
4937 * ada-lex.l (lexer_init): Make static.
4943 * frame.c (read_frame_register_unsigned): New.
4944 * frame.h (read_frame_register_unsigned): Declare.
4945 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4947 (print_i387_control_word): New parameter `control_p'. Handle it.
4948 (i387_print_float_info): Handle unavailable float registers.
4952 * linespec.c (decode_line_2): Sort the list of methods
4953 alphabetically before presenting the user with a selection
4958 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4960 (dwarf2_read_abbrevs): Remove corresponding initialization.
4964 * NEWS: Mention new python command class gdb.COMMAND_USER.
4965 * cli/cli-cmds.c (show_user): Print error when used on a python
4967 (init_cli_cmds): Update documentation strings for "show user" and
4968 "set/show max-user-call-depth" to clarify that it does not apply to
4970 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4972 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4974 * top.c (execute_command): Only execute a user-defined command as a
4975 legacy macro if c->user_commands is set.
4979 * valprint.h (struct generic_val_print_decorations): New.
4980 (generic_val_print): Declare.
4981 * valprint.c (generic_val_print): New function.
4982 * p-valprint.c (p_decorations): New global.
4983 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4984 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4985 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4986 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4987 * m2-valprint.c (m2_decorations): New global.
4988 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4989 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4990 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4991 TYPE_CODE_ERROR>: Call generic_val_print.
4992 * f-valprint.c (f_decorations): New global.
4993 (f_val_print): Use print_function_pointer_address.
4994 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4995 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4996 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4998 * c-valprint.c (c_decorations): New global.
4999 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5000 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5001 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5002 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5003 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5004 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5009 * valprint.c (val_print): Update.
5010 * p-valprint (pascal_val_print): Return void.
5011 * p-lang.h (pascal_val_print): Return void.
5012 * m2-valprint.c (m2_val_print): Return void.
5013 * m2-lang.h (m2_val_print): Return void.
5014 * language.h (struct language_defn) <la_val_print>: Return void.
5015 * language.c (unk_lang_val_print): Return void.
5016 * jv-valprint.c (java_val_print): Return void.
5017 * jv-lang.h (java_val_print): Return void.
5018 * f-valprint.c (f_val_print): Return void.
5019 * f-lang.h (f_val_print): Return void.
5020 * d-valprint.c (d_val_print): Return void.
5021 (dynamic_array_type): Update.
5022 * d-lang.h (d_val_print): Return void.
5023 * c-valprint.c (c_val_print): Return void.
5024 * c-lang.h (c_val_print): Return void.
5025 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5027 * ada-lang.h (ada_val_print): Return void.
5031 * value.h (val_print): Return void.
5032 * valprint.c (val_print): Return void.
5036 * value.h (common_val_print): Return void.
5037 * valprint.c (common_val_print): Return void.
5041 * value.h (value_print): Return void.
5042 * valprint.c (value_print): Return void.
5043 * p-valprint.c (pascal_value_print): Return void.
5044 * p-lang.h (pascal_value_print): Return void.
5045 * language.h (struct language_defn) <la_value_print>: Return
5047 * language.c (unk_lang_value_print): Return void.
5048 * jv-valprint.c (java_value_print): Return void.
5049 * jv-lang.h (java_value_print): Return void.
5050 * f-valprint.c (c_value_print): Don't declare.
5052 * c-valprint.c (c_value_print): Return void.
5053 * c-lang.h (c_value_print): Return void.
5054 * ada-valprint.c (ada_value_print): Return void.
5055 * ada-lang.h (ada_value_print): Return void.
5059 * value.c (value_primitive_field): Handle virtual base classes.
5063 * gdbtypes.h (struct vbase): Remove.
5067 * c-valprint.c (print_function_pointer_address): Move...
5068 * valprint.c: ... here. Make non-static.
5069 * m2-valprint.c (print_function_pointer_address): Remove.
5070 * valprint.h (print_function_pointer_address): Declare.
5074 * NEWS: Document the fact that one can provide a condition when
5075 creating an Ada exception catchpoint.
5079 * valprint.c (val_print_type_code_flags): Fix placement of
5084 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5085 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5086 environment variable before calling update-copyright.
5090 * gnulib/extra/update-copyright: Update to the latest from
5091 gnulib's git repository.
5092 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5093 variable to 2 instead of 1.
5097 * varobj.c (c_value_of_variable): Remove dead code.
5101 * ada-lex.p (processId): Do not modify already encoded IDs.
5102 Update function documentation.
5106 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5107 "name" with "struct symbol *name_sym".
5108 * ada-exp.y (write_var_or_type): Update call to
5109 ada_find_renaming_symbol.
5110 "name" with "struct symbol *name_sym". Adjust Implementation
5111 accordingly. Adjust the function documentation.
5115 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5116 * ada-lang.c (ada_find_any_type): Add advance declaration.
5117 Make static. Replace ada_find_any_symbol by
5118 ada_find_any_type_symbol.
5119 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5120 Improve function description. Make static.
5121 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5122 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5126 * ada-lang.c (struct tag_args): Delete.
5127 (ada_get_tsd_type): Function body moved up in source file.
5128 (ada_tag_name_1, ada_tag_name_2): Delete.
5129 (ada_get_tsd_from_tag): New function.
5130 (ada_tag_name_from_tsd): New function.
5131 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5132 to determine the tag name.
5136 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5138 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5143 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5147 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5152 * ada-lang.c (constrained_packed_array_type): If there is a
5153 parallel XA type, use it to determine the array index type.
5157 * ada-valprint.c (ada_val_print_1): If our value is a reference
5158 to an array descriptor, dereference it before converting it
5163 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5164 creating fixed value.
5165 (ada_value_ind, ada_coerce_ref, assign_component)
5166 (ada_evaluate_subexp): Remove call to unwrap_value before
5167 call to ada_to_fixed_value.
5171 * ada-lang.c (to_fixed_array_type): Set result's type name.
5175 * ada-lang.c (catch_ada_exception_command_split): Add new
5176 argument cond_string. Add support for condition at end of
5177 "catch exception" commands.
5178 (ada_decode_exception_location): Add new argument cond_string.
5179 Update call to catch_ada_exception_command_split.
5180 (create_ada_exception_catchpoint): Add new argument cond_string.
5181 Set the breakpoint condition if needed.
5182 (catch_ada_exception_command): Update call to
5183 ada_decode_exception_location.
5184 (ada_decode_assert_location): Add function documentation.
5185 Add support for condition at end of "catch assert" command.
5186 (catch_assert_command): Update calls to ada_decode_assert_location
5187 and create_ada_exception_catchpoint.
5191 Fix disp-step-syscall.exp: fork: single step over fork.
5192 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5193 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5194 comment, change parameters gdbarch and ptid to regcache. Remove
5195 parameter regcache, initialize gdbarch from regcache here.
5196 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5198 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5200 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5201 'syscall'. Make the 'int' check more strict.
5205 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5206 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5207 (i386_linux_intx80_sysenter_syscall_record): ... here.
5208 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5209 Use the renamed function name.
5213 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5214 * breakpoint.c (until_break_command): Likewise.
5215 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5216 * infcall.c (call_function_by_hand): Likewise.
5217 * infcmd.c (finish_forward): Likewise.
5218 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5222 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5223 avoid variable assignments inside condition.
5227 Fix static analysis issue found by cppcheck.
5228 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5229 uninitialized BUF for size 2.
5235 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5236 (mips16_instruction_has_delay_slot): Likewise.
5237 (mips_segment_boundary): Likewise.
5238 (mips_adjust_breakpoint_address): Likewise.
5239 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5244 * infrun.c (handle_inferior_event): Don't proceed through
5245 shared library trampolines if stepping at the machine
5250 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5255 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5256 (sh_stub_unwind_sniffer): New functions.
5257 (sh_stub_unwind): New variable.
5258 (sh_gdbarch_init): Wire everything.
5262 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5263 (linux_nat_post_attach_wait): Adjust to use
5264 linux_proc_pid_is_stopped.
5265 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5266 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5267 based on pid_is_stopped from both linux-nat.c and
5268 gdbserver/linux-low.c, and renamed.
5272 * remote.c (remote_watchpoint_addr_within_range): New function.
5273 (init_remote_ops): Use it.
5277 * target.h (target_watchpoint_addr_within_range): Document macro.
5281 * stack.c (set_last_displayed_sal): Issue internal_error instead
5282 of warning, and issue it after clearing the last displayed sal.
5287 * breakpoint.c (until_break_command): Install breakpoints after
5288 all frame manipulations.
5292 * remote.c (remote_supports_cond_breakpoints): New forward
5294 (remote_add_target_side_condition): New function.
5295 (remote_insert_breakpoint): Add target-side breakpoint
5296 conditional if supported.
5297 (remote_insert_hw_breakpoint): Likewise.
5298 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5301 * target.c (update_current_target): Inherit
5302 to_supports_evaluation_of_breakpoint_conditions.
5303 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5305 * target.h (struct target_ops)
5306 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5307 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5309 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5310 (condition_evaluation_both, condition_evaluation_auto,
5311 condition_evaluation_host, condition_evaluation_target,
5312 condition_evaluation_enums, condition_evaluation_mode_1,
5313 condition_evaluation_mode): New static globals.
5314 (translate_condition_evaluation_mode): New function.
5315 (breakpoint_condition_evaluation_mode): New function.
5316 (gdb_evaluates_breakpoint_condition_p): New function.
5317 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5318 (mark_breakpoint_modified): New function.
5319 (mark_breakpoint_location_modified): New function.
5320 (set_condition_evaluation_mode): New function.
5321 (show_condition_evaluation_mode): New function.
5322 (bp_location_compare_addrs): New function.
5323 (get_first_location_gte_addr): New helper function.
5324 (set_breakpoint_condition): Free condition bytecode if locations
5325 has become unconditional. Call mark_breakpoint_modified (...).
5326 (condition_command): Call update_global_location_list (1) for
5328 (breakpoint_xfer_memory): Use is_breakpoint (...).
5329 (is_breakpoint): New function.
5330 (parse_cond_to_aexpr): New function.
5331 (build_target_condition_list): New function.
5332 (insert_bp_location): Handle target-side conditional
5333 breakpoints and call build_target_condition_list (...).
5334 (update_inserted_breakpoint_locations): New function.
5335 (insert_breakpoint_locations): Handle target-side conditional
5337 (bpstat_check_breakpoint_conditions): Add comment.
5338 (bp_condition_evaluator): New function.
5339 (bp_location_condition_evaluator): New function.
5340 (print_breakpoint_location): Print information on where the condition
5342 (print_one_breakpoint_location): Likewise.
5343 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5344 breakpoint location.
5345 (force_breakpoint_reinsertion): New functions.
5346 (update_global_location_list): Handle target-side breakpoint
5348 Reinsert locations that are already inserted if conditions have
5350 (bp_location_dtor): Free agent expression bytecode.
5351 (disable_breakpoint): Call mark_breakpoint_modified (...).
5352 Call update_global_location_list (...) with parameter 1 for breakpoints.
5353 (disable_command): Call mark_breakpoint_location_modified (...).
5354 Call update_global_location_list (...) with parameter 1 for breakpoints.
5355 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5356 (enable_command): mark_breakpoint_location_modified (...).
5357 (_initialize_breakpoint): Update documentation and add
5358 condition-evaluation breakpoint subcommand.
5360 * breakpoint.h: Include ax.h.
5361 (condition_list): New data structure.
5362 (condition_status): New enum.
5363 (bp_target_info) <cond_list>: New field.
5364 (bp_location) <condition_changed, cond_bytecode>: New fields.
5365 (is_breakpoint): New prototype.
5369 * remote.c (remote_state) <cond_breakpoints>: New field.
5370 (PACKET_ConditionalBreakpoints): New enum.
5371 (remote_cond_breakpoint_feature): New function.
5372 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5373 (remote_supports_cond_breakpoints): New function.
5374 (_initialize_remote): Add new packet configuration for
5375 target-side conditional breakpoints.
5379 * NEWS: Mention target-side conditional breakpoint support,
5380 new condition-evaluation breakpoint subcommand and remote
5385 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5390 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5391 (after_prologue): Remove.
5395 * jv-valprint.c (java_val_print): Remove dead code.
5399 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5400 known_tasks_element and known_tasks_length fields.
5401 (read_known_tasks_array): Change argument type. Use pointer type
5402 and number of elements from DATA. Adjust.
5403 (read_known_tasks_list): Likewise.
5404 (get_known_tasks_addr): Remove.
5405 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5406 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5407 type and array length. Merge former get_known_tasks_addr code.
5412 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5413 it after set_momentary_breakpoint.
5418 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5422 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5423 (find_slot_in_mapped_hash): Likewise.
5428 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5429 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5430 * configure: Regenerate.
5435 * ia64-tdep.c: Do not include libunwind-ia64.h.
5436 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5437 Include libunwind-ia64.h instead of libunwind.h.
5438 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5439 for libunwind.h existence.
5440 * configure, config.in: Regenerate.
5444 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5445 instead of value_rtti_target_type.
5446 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5447 instead of value_rtti_target_type.
5448 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5449 value_rtti_target_type.
5450 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5451 (value_rtti_target_type): Rename to ...
5452 (value_rtti_indirect_type): ... here and make it indirect. Update
5454 * value.c (readjust_indirect_value_type): New function.
5455 (coerce_ref): Support for enclosing type setting for references
5456 with readjust_indirect_value_type.
5457 * value.h (readjust_value_type): New declaration.
5458 (value_rtti_target_type): Rename to ...
5459 (value_rtti_indirect_type): ... here.
5463 * MAINTAINERS (Write After Approval): Add myself to the list.
5467 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5468 Rename objfile_p_char parameter to objfilep.
5469 (build_objfile_section_table): Result is now void. All callers
5471 * objfiles.h (struct objfile): Tweak comments, whitespace.
5472 (build_objfile_section_table): Update.
5474 * elfread.c (elf_symfile_segments): Fix warning text.
5479 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5480 particular set of file names once.
5481 (dw2_map_symbol_filenames): Likewise.
5486 * main.c (write_files): Remove the declaration.
5487 (external_editor_command): Move the declaration ...
5488 [GDBTK] (external_editor_command): ... here. Fix the comment.
5492 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5497 * darwin-nat.h (enum darwin_msg_state): Add comments.
5501 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5506 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5507 between function description and implementation.
5512 * python/py-event.c (event_object_getset): New global.
5513 (event_object_type): Reference it.
5514 * python/py-type.c (field_object_getset): New global.
5515 (field_object_type): Reference it.
5516 * python/python-internal.h (gdb_py_generic_dict): Declare.
5517 * python/py-utils.c (gdb_py_generic_dict): New function.
5521 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5525 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5526 TYPE_CALLING_CONVENTION annotation.
5530 * MAINTAINERS: Add rx to target ISA section.
5531 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5532 (ALLDEPFILES): Add rx-tdep.c.
5536 * symfile.c (symbol_file_add_main_1): Use inferior's
5538 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5539 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5541 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5543 (follow_exec): Use inferior's symfile_flags.
5544 * inferior.h (struct inferior) <symfile_flags>: New field.
5549 * remote-sim.c (gdbsim_create_inferior): Call error() when
5550 sim_create_inferior() fails.
5554 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5559 * thread.c (struct current_thread_cleanup) <was_removable>: New
5561 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5562 (make_cleanup_restore_current_thread): Initialize new field.
5566 * MAINTAINERS: Add rl78 to target ISA section.
5567 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5568 (ALLDEPFILES): Add rl78-tdep.c.
5569 * NEWS: Mention rl78 as a new target.
5573 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5575 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5580 * infcmd.c (registers_info): Print just the current register's
5585 * python/py-symbol.c (sympy_value): Use _().
5589 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5590 output to be like native targets'.
5591 (remote_pid_to_str): Special case the null ptid.
5595 * NEWS: Mention enable count command.
5596 * breakpoint.h (struct breakpoint): New field enable_count.
5597 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5598 (enable_breakpoint): Add arg to call.
5599 (struct disp_data): New struct.
5600 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5601 (do_map_enable_once_breakpoint): Create a struct and pass it.
5602 (do_map_enable_delete_breakpoint): Ditto.
5603 (do_map_enable_count_breakpoint): New function.
5604 (enable_count_command): New function.
5605 (bpstat_stop_status): Decrement enable_count.
5606 (print_one_breakpoint_location): Report enable count.
5607 (_initialize_breakpoint): Add enable count command.
5611 * rl78-tdep.c (reggroups.h): Include.
5612 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5613 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5614 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5615 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5616 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5617 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5618 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5619 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5620 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5621 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5622 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5623 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5624 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5625 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5626 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5627 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5628 beginning of register list.
5629 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5630 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5631 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5632 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5633 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5634 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5635 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5636 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5637 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5638 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5639 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5640 the pseudo registers. Rearrange other pseudo registers too so
5641 that the bank registers appear at the end.
5642 (rl78_register_type): Account for the fact that the byte sized
5643 bank registers are now pseudo-registers.
5644 (rl78_register_name): Rearrange the register name array. Make
5645 initial set of raw banked registers inaccessible.
5646 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5647 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5648 case for copying bytes back and forth between raw and pseudo
5649 versions of the banked registers. Update other cases to reflect
5651 (rl78_return_value): Update to account for changed names of
5653 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5654 rl78_register_sim_regno().
5658 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5659 the name parameter being passed to find_pc_partial_function().
5663 * MAINTAINERS: Step down from being ia64 target maintainer.
5667 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5668 compilation warning.
5672 Fix crash on loaded shlibs without loaded exec_bfd.
5673 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5674 (set_section_command): Replace exec_bfd by p->bfd.
5678 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5679 when we have a C++ qualified name.
5683 * inferior.c (inferior_pid_to_str): New.
5684 (print_inferior, inferior_command): Use it.
5688 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5690 * configure: Regenerate.
5694 * linespec.c (decode_line_internal): Fix comment correctness.
5699 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5700 * amd64bsd-nat.c: Add support for debug registers (adapted from
5702 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5703 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5704 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5705 (amd64bsd_dr_get_control): New functions.
5706 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5707 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5708 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5709 watchpoints initialization.
5710 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5714 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5716 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5720 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5724 * language.h (symbol_name_cmp_ftype): Renames
5725 symbol_name_match_p_ftype.
5726 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5727 la_get_symbol_name_match_p.
5728 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5729 ada_get_symbol_name_match_p. Update comment.
5730 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5731 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5732 Renames symbol_name_match_p. Update field type.
5733 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5734 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5735 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5736 "la_get_symbol_name_cmp" in comments.
5737 * language.c: Likewise.
5741 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5743 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5744 (amd64_sol2_gregset32_reg_offs): Likewise.
5748 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5749 of the returned BFD is allocated by GDB.
5754 * python/python-internal.h (frame_object_type): Declare.
5755 * python/py-symbol.c (sympy_needs_frame): New function.
5756 (sympy_value): New function.
5757 (symbol_object_getset): Add "needs_frame".
5758 (symbol_object_methods): Add "value".
5759 * python/py-frame.c (frame_object_type): No longer static.
5764 * python/py-symbol.c (sympy_line): New function.
5765 (symbol_object_getset): Add "line".
5769 * charset.c (find_charset_names): Check 'in' against NULL.
5773 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5774 and fields.name members from char * to const char *. All uses updated.
5775 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5776 from char * to const char *. All uses updated.
5777 (type_name_no_tag): Update.
5778 (lookup_unsigned_typename, lookup_signed_typename): Update.
5779 * gdbtypes.c (type_name_no_tag): Change result type
5780 from char * to const char *. All callers updated.
5781 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5782 name parameter from char * to const char *.
5783 * symtab.h (struct cplus_specific): Change type of demangled_name
5784 member from char * to const char *. All uses updated.
5785 (struct general_symbol_info): Change type of name and
5786 mangled_lang.demangled_name members from char * to const char *.
5788 (symbol_get_demangled_name, symbol_natural_name): Update.
5789 (symbol_demangled_name, symbol_search_name): Update.
5790 * symtab.c (symbol_get_demangled_name): Change result type
5791 from char * to const char *. All callers updated.
5792 (symbol_natural_name, symbol_demangled_name): Ditto.
5793 (symbol_search_name): Ditto.
5794 (completion_list_add_name): Change type of symname,sym_text,
5795 text,word parameters from char * to const char *.
5796 (completion_list_objc_symbol): Change type of sym_text,
5797 text,word parameters from char * to const char *.
5798 * ada-lang.c (find_struct_field): Change type of name parameter
5799 from char * to const char *.
5800 (encoded_ordered_before): Similarly for N0,N1 parameters.
5801 (old_renaming_is_invisible): Similarly for function_name parameter.
5802 (ada_type_name): Change result type from char * to const char *.
5803 All callers updated.
5804 * ada-lang.h (ada_type_name): Update.
5805 * buildsym.c (hashname): Change type of name parameter
5806 from char * to const char *.
5807 * buildsym.h (hashname): Update.
5808 * dbxread.c (end_psymtab): Change type of include_list parameter
5809 from char ** to const char **.
5810 * dwarf2read.c (determine_prefix): Change result type
5811 from char * to const char *. All callers updated.
5812 * f-lang.c (find_common_for_function): Change type of name, funcname
5813 parameters from char * to const char *.
5814 * f-lang.c (find_common_for_function): Update.
5815 * f-valprint.c (list_all_visible_commons): Change type of funcname
5816 parameters from char * to const char *.
5817 * gdbarch.sh (static_transform_name): Change type of name parameter
5818 and result from char * to const char *.
5819 * gdbarch.c: Regenerate.
5820 * gdbarch.h: Regenerate.
5821 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5822 of name parameter from char * to const char *.
5823 * jv-lang.c (java_primitive_type_from_name): Ditto.
5824 (java_demangled_signature_length): Similarly for signature parameter.
5825 (java_demangled_signature_copy): Ditto.
5826 (java_demangle_type_signature): Ditto.
5827 * jv-lang.h (java_primitive_type_from_name): Update.
5828 (java_demangle_type_signature): Update.
5829 * objc-lang.c (specialcmp): Change type of a,b parameters
5830 from char * to const char *.
5831 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5832 from char * to const char *. All callers updated.
5833 * p-lang.h (is_pascal_string_type): Update.
5834 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5835 of name parameter from char * to const char *.
5836 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5837 * utils.c (fprintf_symbol_filtered): Ditto.
5838 * defs.h (fprintf_symbol_filtered): Update.
5839 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5840 * stabsread.h (end_psymtab): Update.
5841 * stack.c (find_frame_funname): Change type of funname parameter
5842 from char ** to const char **.
5843 * stack.h (find_frame_funname): Update.
5844 * typeprint.c (type_print): Change type of varstring parameter
5845 from char * to const char *.
5846 * value.h (type_print): Update.
5847 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5848 from char * to const char *. All callers updated.
5849 (xcoff_end_psymtab): Change type of include_list parameter
5850 from char ** to const char **. All callers updated.
5851 (swap_sym): Similarly for name parameter. All callers updated.
5852 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5854 (process_coff_symbol): Use xstrdup.
5855 * stabsread.c (stabs_method_name_from_physname): Renamed from
5856 update_method_name_from_physname. Change result type from void
5857 to char *. All callers updated.
5858 (read_member_functions): In has_destructor case, store name in objfile
5859 obstack instead of malloc space. In !has_stub case, fix mem leak.
5863 * configure: Rebuild.
5864 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5869 * configure.tgt (rl78-*-elf): New target.
5870 * rl78-tdep.c: New file.
5874 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5875 and continue the loop. Add QUIT statement.
5880 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5881 bfd_lookup_symbol_from_symtab.
5882 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5883 gdb_bfd_lookup_symbol_from_symtab.
5887 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5888 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5889 symbol. Add assertion that sym2 is never NULL.
5893 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5894 "name" parameter to const char ** from char **. All callers updated.
5895 (find_pc_partial_function): Ditto.
5896 (cache_pc_function_name): Change type to const char * from char *.
5897 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5898 (find_pc_partial_function): Update.
5899 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5900 type of "name" parameter to const char * from char *.
5902 * arch-utils.c (generic_in_solib_return_trampoline): Change
5903 type of "name" parameter to const char * from char *.
5904 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5905 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5906 type of "name" parameter to const char * from char *.
5907 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5908 * gdbarch.c: Regenerate.
5909 * gdbarch.h: Regenerate.
5910 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5911 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5912 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5913 type of "name" parameter to const char * from char *.
5914 * skip.c (skip_function_pc): Ditto.
5915 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5916 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5917 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5918 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5919 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5920 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5921 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5922 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5923 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5927 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5928 the current inferior has no execution. Make sure the current
5929 remote process matches gdb's current inferior.
5934 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5940 * symtab.c (lookup_language_this): Set block_found.
5945 * jit.c (struct jit_inferior_data): Rewrite.
5946 (struct jit_objfile_data): New.
5947 (get_jit_objfile_data): New function.
5948 (add_objfile_entry): Update.
5949 (jit_read_descriptor): Return int. Replace descriptor_addr
5950 argument with inf_data. Update. Don't call error.
5951 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5953 (jit_inferior_init): Don't look up descriptor. Don't call error.
5954 (jit_reset_inferior_data_and_breakpoints)
5955 (jit_inferior_created_observer): Remove.
5956 (jit_inferior_exit_hook): Update.
5957 (jit_executable_changed_observer): Remove.
5958 (jit_event_handler): Update.
5959 (free_objfile_data): Reset inferior data if needed.
5960 (_initialize_jit): Update.
5964 * jit.c (bfd_open_from_target_memory): Move higher in file.
5968 * libunwind-frame.c (libunwind_load): Display message if dlopen
5973 * symtab.h (symbol_found_callback_ftype): New typedef.
5974 (iterate_over_symbols): Use the above.
5975 * symtab.c (iterate_over_symbols): Likewise.
5976 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5977 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5978 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5979 (iterate_name_matcher): Document return values.
5980 (collect_one_symbol): Likewise.
5981 (collect_function_symbols): Likewise.
5982 (collect_symbols): Likewise.
5986 * ada-lang.c (resolve_subexp): Update.
5987 (ada_lookup_symbol_list): Add 'full_search' argument.
5988 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5989 ada_lookup_symbol_list.
5990 (ada_lookup_encoded_symbol): Update.
5991 (get_var_value): Update.
5992 * ada-exp.y (block_lookup): Update.
5993 (write_var_or_type): Update.
5994 (write_name_assoc): Update.
5995 * ada-lang.h (ada_lookup_symbol_list): Update.
5999 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6004 * symtab.h: Remove outdated comment.
6005 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6009 Fix build error in Darwin port.
6010 * i386-darwin-nat.c: Include i386-nat.h.
6014 PR breakpoints/13568:
6015 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6016 argument. Check for recursive includes.
6017 (dwarf_decode_macros): Create an include hash.
6021 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6022 * ppc-linux-tdep.c: Include glibc-tdep.h.
6023 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6024 (powerpc_linux_in_plt_stub): New function.
6025 (powerpc_linux_in_dynsym_resolve_code): New function.
6026 (ppc_skip_trampoline_code): New function.
6027 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6028 Use glibc_skip_solib_resolver.
6032 Code cleanup: Make 1440 bytes of data segment read-only.
6033 * arch-utils.c (endian_enum): Make it const char *const [].
6034 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6036 * breakpoint.c (always_inserted_enums): Likewise.
6037 * cli/cli-cmds.c (script_ext_enums): Likewise.
6038 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6039 enumlist parameter const char *const *.
6040 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6041 const char *const *.
6042 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6043 parameter const char *const *.
6044 * cris-tdep.c (cris_modes): Make it const char *const [].
6045 * filesystem.c (target_file_system_kinds): Likewise.
6046 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6047 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6048 (can_use_displaced_stepping_enum, scheduler_enums)
6049 (exec_direction_names): Likewise.
6050 * language.c (_initialize_language): Make the type_or_range_names and
6051 case_sensitive_names variables const char *const [].
6052 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6053 * python/python.c (python_excp_enums): Likewise.
6054 * remote.c (interrupt_sequence_modes): Likewise.
6055 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6056 * serial.c (logbase_enums): Likewise.
6057 * sh-tdep.c (sh_cc_enum): Likewise.
6058 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6060 * symtab.c (multiple_symbols_modes): Likewise.
6061 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6063 * utils.c (internal_problem_modes): Likewise.
6067 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6068 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6073 * configure.ac (with_python): Fix absolute path handling for win32.
6074 * configure: Regenerate.
6078 * symtab.c: Whitespace cleanup, no code changes.
6080 * symtab.c (lookup_symbol_in_language): Improve comment.
6081 (lookup_symbol_aux): Fix comment.
6083 * psymtab.c (add_psymbol_to_list): Result is now "void".
6084 * psympriv.h (add_psymbol_to_list): Update.
6086 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6090 Do not open script filenames twice.
6091 * cli/cli-cmds.c (source_script_from_stream): Pass to
6092 source_python_script also STREAM.
6093 * python/py-auto-load.c (source_section_scripts): Pass to
6094 source_python_script_for_objfile also STREAM.
6095 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6097 * python/python-internal.h (source_python_script_for_objfile): New
6098 parameter file, rename parameter file to filename.
6099 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6100 instead if !_WIN32. Update the function comment.
6101 (source_python_script, source_python_script_for_objfile)
6102 (source_python_script): New parameter file, rename parameter file to
6103 filename. Pass FILENAME to python_run_simple_file.
6104 * python/python.h (source_python_script): New parameter file, rename
6105 parameter file to filename.
6109 * corelow.c (core_has_fake_pid): Delete.
6110 (core_close): Delete references to `core_has_fake_pid'.
6111 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6112 (core_open): Delete references to `core_has_fake_pid'.
6113 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6118 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6119 Remove language parameter from name_matcher. Adjust the comment.
6120 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6121 Remove language parameter.
6122 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6123 * linespec.c (iterate_name_matcher): Likewise.
6124 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6125 name_matcher. Adjust call accordingly.
6126 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6127 (maintenance_check_symtabs): Adjust type of parameter "fun".
6128 * psymtab.h (maintenance_check_symtabs): Likewise.
6132 * language.h (symbol_name_match_p_ftype): New typedef.
6133 (struct language_defn): Replace field la_symbol_name_compare
6134 by la_get_symbol_name_match_p.
6135 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6136 (ada_language_defn): Use it.
6137 * linespec.c (struct symbol_matcher_data): New type.
6138 (iterate_name_matcher): Rewrite.
6139 (iterate_over_all_matching_symtabs): Pass a pointer to
6140 a symbol_matcher_data struct to expand_symtabs_matching
6141 instead of just the lookup name.
6142 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6143 opencl-lang.c, p-lang.c, language.c: Delete field
6144 la_symbol_name_compare, and replace by NULL for new field
6145 la_get_symbol_name_match_p.
6146 * symfile.h (struct quick_symbol_functions): Update comment.
6150 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6156 * solib.c (update_solib_list): Update the program space's
6157 added_solibs and deleted_solibs fields.
6158 * progspace.h (struct program_space) <added_solibs,
6159 deleted_solibs>: New fields.
6160 (clear_program_space_solib_cache): Declare.
6161 * progspace.c (release_program_space): Call
6162 clear_program_space_solib_cache.
6163 (clear_program_space_solib_cache): New function.
6164 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6165 bpstat_stop_status. Use handle_solib_event.
6166 * breakpoint.c: Include gdb_regex.h.
6167 (print_solib_event): New function.
6168 (bpstat_print): Use print_solib_event.
6169 (bpstat_stop_status): Add special case for bp_shlib_event.
6170 (handle_solib_event): New function.
6171 (bpstat_what): Use handle_solib_event.
6172 (struct solib_catchpoint): New.
6173 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6174 (breakpoint_hit_catch_solib, check_status_catch_solib)
6175 (print_it_catch_solib, print_one_catch_solib)
6176 (print_mention_catch_solib, print_recreate_catch_solib): New
6178 (catch_solib_breakpoint_ops): New global.
6179 (catch_load_or_unload, catch_load_command_1)
6180 (catch_unload_command_1): New functions.
6181 (internal_bkpt_check_status): Add special case for
6183 (internal_bkpt_print_it): Use print_solib_event.
6184 (initialize_breakpoint_ops): Initialize
6185 catch_solib_breakpoint_ops.
6186 (_initialize_breakpoint): Register "catch load" and "catch
6188 * breakpoint.h (handle_solib_event): Declare.
6189 * NEWS: Add entry for "catch load" and "catch unload".
6193 * ada-lang.c: Include gdb_vecs.h.
6194 * charset.c: Include gdb_vecs.h.
6195 * tracepoint.h: Include gdb_vecs.h.
6196 * gdb_vecs.h: New file.
6200 * breakpoint.c (breakpoint_hit_catch_fork)
6201 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6202 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6203 * infrun.c (inferior_has_forked, inferior_has_vforked)
6204 (inferior_has_execd, inferior_has_called_syscall): Delete.
6205 (handle_syscall_event): Get syscall_number from the execution
6206 control state's wait status.
6207 (wait_for_inferior): Don't clear syscall_number.
6211 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6212 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6213 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6214 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6216 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6217 false for events other than TARGET_SIGNAL_TRAP.
6218 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6220 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6221 events other than TARGET_SIGNAL_TRAP.
6222 (tracepoint_breakpoint_hit): Add `ws' parameter.
6223 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6225 (bpstat_stop_status): Same.
6226 (pc_at_non_inline_function): Same.
6227 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6228 to pass the current event's waitstatus to bpstat_stop_status
6229 and pc_at_non_inline_function.
6234 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6235 Update the function comment for it.
6236 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6237 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6242 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6243 outside `bs->stop' block.
6244 (bpstat_what): Rework bp_shlib_event handling.
6245 (internal_bkpt_check_status): If the breakpoint is a
6246 bp_shlib_event, then set bs->stop and bs->print if
6247 stop_on_solib_events is set.
6251 Delete #if 0'd out code.
6252 * stack.c (print_frame_label_vars): Remove.
6253 (catch_info): Likewise.
6254 (_initialize_stack): Remove "info catch" command.
6255 * NEWS: Mention the above.
6259 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6261 (remote_notice_new_inferior): If the remote end doesn't support
6262 the multiprocess extensions, then the PID is fake.
6263 (add_current_inferior_and_thread): New.
6264 (remote_start_remote): Use it.
6265 (extended_remote_attach_1): Adjust.
6266 (extended_remote_create_inferior_1): Use
6267 add_current_inferior_and_thread.
6271 Fix watchpoints to be specific for each inferior.
6272 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6273 current_program_space.
6274 * i386-nat.c (i386_inferior_data_cleanup): New.
6275 (i386_inferior_data_get): Replace variable inf_data_local by an
6277 (i386_use_watchpoints): Initialize i386_inferior_data.
6278 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6279 specific iterate_over_lwps.
6283 Fix watchpoints across inferior fork.
6284 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6285 comment for linux_nat_iterate_watchpoint_lwps.
6286 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6287 linux_nat_iterate_watchpoint_lwps.
6288 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6289 * i386-linux-nat.c (update_debug_registers_callback): Update the
6290 comment for linux_nat_iterate_watchpoint_lwps.
6291 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6292 linux_nat_iterate_watchpoint_lwps.
6293 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6294 * i386-nat.c: Include inferior.h.
6295 (dr_mirror): Remove.
6296 (i386_inferior_data, struct i386_inferior_data)
6297 (i386_inferior_data_get): New.
6298 (i386_debug_reg_state): Use i386_inferior_data_get.
6299 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6300 (i386_insert_watchpoint, i386_remove_watchpoint)
6301 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6302 (i386_remove_hw_breakpoint): New variable state, use
6303 i386_debug_reg_state instead of DR_MIRROR.
6304 * linux-nat.c (delete_lwp): New declaration.
6305 (num_lwps): Move here from downwards.
6306 (delete_lwp_cleanup): New.
6307 (linux_child_follow_fork): Create new child_lp, call
6308 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6310 (num_lwps): Move upwards.
6311 (linux_nat_iterate_watchpoint_lwps): New.
6312 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6313 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6321 * top.c (caution): Rename to ...
6322 (confirm): ... this.
6323 (show_caution): Rename to ...
6324 (show_confirm): ... this.
6325 (quit_cover): Adjust.
6326 (init_main): Adjust.
6327 * top.h (caution): Rename to ...
6328 (confirm): ... this.
6329 * utils.c (internal_vproblem, defaulted_query): Adjust.
6333 * top.c (caution): Update comment.
6334 (execute_command): Don't consider the current value of `caution'.
6338 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6342 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6343 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6344 * target.c (target_fileio_pwrite): Remove buffer address from
6346 (target_fileio_pread): Likewise.
6350 * NEWS: Document remote "info proc" and "generate-core-file".
6354 * gdbarch.sh (find_memory_regions): New callback.
6355 * gdbarch.c, gdbarch.h: Regenerate.
6357 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6358 callback before falling back to target method.
6360 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6361 (linux_target_install_ops): No longer install it.
6363 * linux-tdep.c (linux_find_memory_regions): New function.
6364 (linux_init_abi): Install it.
6368 * gdbarch.sh (make_corefile_notes): New architecture callback.
6369 * gdbarch.c: Regenerate.
6370 * gdbarch.h: Likewise.
6372 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6373 before target_make_corefile_notes. If NULL is returned, the
6374 target does not support core file generation.
6376 * linux-nat.c: Include "linux-tdep.h".
6377 (find_signalled_thread, find_stop_signal): Remove.
6378 (linux_nat_do_thread_registers): Likewise.
6379 (struct linux_nat_corefile_thread_data): Likewise.
6380 (linux_nat_corefile_thread_callback): Likewise.
6381 (iterate_over_spus): Likewise.
6382 (struct linux_spu_corefile_data): Likewise.
6383 (linux_spu_corefile_callback): Likewise.
6384 (linux_spu_make_corefile_notes): Likewise.
6385 (linux_nat_collect_thread_registers): New function.
6386 (linux_nat_make_corefile_notes): Replace contents by call to
6387 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6388 as native-only callback.
6390 * linux-tdep.h: Include "bfd.h".
6391 (struct regcache): Add forward declaration.
6392 (linux_collect_thread_registers_ftype): New typedef.
6393 (linux_make_corefile_notes): Add prototype.
6394 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6395 "regset.h", and "elf-bfd.h".
6396 (find_signalled_thread, find_stop_signal): New functions.
6397 (linux_spu_make_corefile_notes): Likewise.
6398 (linux_collect_thread_registers): Likewise.
6399 (struct linux_corefile_thread_data): New data structure.
6400 (linux_corefile_thread_callback): New funcion.
6401 (linux_make_corefile_notes): Likewise.
6402 (linux_make_corefile_notes_1): Likewise.
6403 (linux_init_abi): Install it.
6407 * gdbarch.sh (info_proc): New callback.
6408 * gdbarch.c, gdbarch.h: Regenerate.
6410 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6411 before falling back to the target info_proc callback.
6413 * linux-nat.c: Do not include "cli/cli-utils.h".
6414 (linux_nat_info_proc): Remove.
6415 (linux_target_install_ops): No longer install it.
6417 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6418 (read_mapping): New function.
6419 (linux_info_proc): Likewise.
6420 (linux_init_abi): Install it.
6424 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6425 * infcmd.c: (info_proc_cmd_1): New function.
6426 (info_proc_cmd): New function, moved here from equivalent routine
6427 orignally in linux-nat.c.
6428 (info_proc_cmd_mappings): Likewise.
6429 (info_proc_cmd_stat): Likewise.
6430 (info_proc_cmd_status): Likewise.
6431 (info_proc_cmd_cwd): Likewise.
6432 (info_proc_cmd_cmdline): Likewise.
6433 (info_proc_cmd_exe): Likewise.
6434 (info_proc_cmd_all): Likewise.
6435 (_initialize_infcmd): Install "info proc" command and subcommands.
6437 * target.h (struct target_ops): Add to_info_proc.
6438 (target_info_proc): Add prototype.
6439 * target.c (target_info_proc): New function.
6441 * procfs.c (procfs_info_proc): Add prototype.
6442 (info_proc_cmd): Rename into ...
6443 (procfs_info_proc): ... this. Update argument types as appropriate
6444 for a to_info_proc implementation. Handle "what" argument.
6445 (procfs_target): Install procfs_info_proc.
6446 (_initialize_procfs): No longer install "info proc" command.
6448 * linux-nat.c: (enum info_proc_what): Remove.
6449 (linux_nat_info_proc_cmd_1): Rename into ...
6450 (linux_nat_info_proc): ... this. Update argument types as appropriate
6451 for a to_info_proc implementation.
6452 (linux_nat_info_proc_cmd): Remove.
6453 (linux_nat_info_proc_cmd_mappings): Likewise.
6454 (linux_nat_info_proc_cmd_stat): Likewise.
6455 (linux_nat_info_proc_cmd_status): Likewise.
6456 (linux_nat_info_proc_cmd_cwd): Likewise.
6457 (linux_nat_info_proc_cmd_cmdline): Likewise.
6458 (linux_nat_info_proc_cmd_exe): Likewise.
6459 (linux_nat_info_proc_cmd_all): Likewise.
6460 (linux_target_install_ops): Install linux_nat_info_proc.
6461 (_initialize_linux_nat): No longer install "info proc" command
6466 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6467 * config.in, configure: Regenerate.
6469 * target.h (struct target_ops): Add to_fileio_readlink.
6470 (target_fileio_readlink): Add prototype.
6471 * target.c (target_fileio_readlink): New function.
6473 * inf-child.c: Conditionally include <sys/param.h>.
6474 (inf_child_fileio_readlink): New function.
6475 (inf_child_target): Install it.
6477 * remote.c (PACKET_vFile_readlink): New enum value.
6478 (remote_hostio_readlink): New function.
6479 (init_remote_ops): Install it.
6480 (_initialize_remote): Handle vFile:readlink packet type.
6485 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6486 * config.in, configure: Regenerate.
6488 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6489 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6490 (target_fileio_open): Add prototype.
6491 (target_fileio_pwrite): Likewise.
6492 (target_fileio_pread): Likewise.
6493 (target_fileio_close): Likewise.
6494 (target_fileio_unlink): Likewise.
6495 (target_fileio_read_alloc): Likewise.
6496 (target_fileio_read_stralloc): Likewise.
6498 * target.c: Include "gdb/fileio.h".
6499 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6500 (default_fileio_target): New function.
6501 (target_fileio_open): Likewise.
6502 (target_fileio_pwrite): Likewise.
6503 (target_fileio_pread): Likewise.
6504 (target_fileio_close): Likewise.
6505 (target_fileio_unlink): Likewise.
6506 (target_fileio_close_cleanup): Likewise.
6507 (target_fileio_read_alloc_1): Likewise.
6508 (target_fileio_read_alloc): Likewise.
6509 (target_fileio_read_stralloc): Likewise.
6511 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6512 <fcntl.h>, and <unistd.h>.
6513 (inf_child_fileio_open_flags_to_host): New function.
6514 (inf_child_errno_to_fileio_error): Likewise.
6515 (inf_child_fileio_open): Likewise.
6516 (inf_child_fileio_pwrite): Likewise.
6517 (inf_child_fileio_pread): Likewise.
6518 (inf_child_fileio_close): Likewise.
6519 (inf_child_fileio_unlink): Likewise.
6520 (inf_child_target): Install to_fileio routines.
6522 * remote.c (init_remote_ops): Install to_fileio routines.
6527 * remote.c (remote_multi_process_p): Only check for multi-process
6528 protocol feature, do not check for extended protocol.
6529 (remote_supports_multi_process): Check for extended protocol here.
6530 (set_general_process): Likewise.
6531 (extended_remote_kill): Likewise.
6532 (remote_pid_to_str): Likewise.
6533 (remote_query_supported): Always query multiprocess mode.
6538 * inferior.h (struct inferior): Add fake_pid_p.
6539 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6540 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6541 magic_null_ptid since the remote side doesn't provide a real PID.
6545 * NEWS: Combine the two Python sections.
6549 * target.h (target_close): Update comment on the target's unpush state.
6553 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6554 linux_nat_async directly instead of going through the target
6556 * target.c (unpush_target): Close target after unpushing it, not
6561 * mdebugread.c (sort_blocks): Replace integer constants with ones
6562 derived from FIRST_LOCAL_BLOCK.
6568 * symfile.c (find_separate_debug_file): New function.
6569 (terminate_after_last_dir_separator): Likewise.
6570 (find_separate_debug_file_by_debuglink): Also try realpath.
6571 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6572 * configure: Regenerate.
6573 * config.in: Regenerate.
6577 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6578 (main.o): Remove rule.
6579 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6580 (--with-sysroot): Rewrite.
6581 * configure: Regenerate.
6582 * config.in: Regenerate.
6586 * parse.c (initialize_expout): New function.
6587 (reallocate_expout): Likewise.
6588 (parse_exp_in_context): Use `initialize_expout' and
6589 `reallocate_expout' when appropriate.
6593 * record.c (struct record_breakpoint, record_breakpoint_p)
6594 (record_breakpoints): New.
6595 (record_insert_breakpoint, record_remove_breakpoint): Manage
6596 record breakpoints list. Only remove breakpoints from the
6597 inferior if they had been inserted there in the first place.
6601 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6602 if we know we don't have a file name to look for.
6606 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6607 the frame's stop reason is UNWIND_UNAVAILABLE.
6611 Fix compilation error.
6612 * m2-exp.y (yyerror): Use ANSI C prototype.
6616 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6617 (growbuf_by_size): Likewise.
6618 (yyerror): Likewise.
6619 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6620 (modblock): Remove variable (was #if 0'ed).
6621 (parse_number): Convert prototype from K&R to ANSI C.
6622 (yyerror): Likewise.
6623 * objc-exp.y (parse_number): Likewise.
6624 (yyerror): Likewise.
6625 (yylex): Remove #if 0'ed code.
6626 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6627 (yyerror): Likewise.
6632 * symtab.h (compare_filenames_for_search): Declare.
6633 * symtab.c (compare_filenames_for_search): New function.
6634 (iterate_over_some_symtabs): Use it.
6635 * symfile.h (struct quick_symbol_functions)
6636 <map_symtabs_matching_filename>: Change spec.
6637 * psymtab.c (partial_map_symtabs_matching_filename): Use
6638 compare_filenames_for_search. Update for new spec.
6639 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6640 compare_filenames_for_search. Update for new spec.
6641 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6646 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6647 (struct main_type) <flag_flag_enum>: New field.
6648 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6649 * NEWS: Add entries.
6650 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6652 * python/lib/gdb/printing.py (_EnumInstance): New class.
6653 (FlagEnumerationPrinter): Likewise.
6657 * breakpoint.c (create_sals_from_address_default): New function.
6658 (create_breakpoints_sal_default): Likewise.
6659 (decode_linespec_default): Likewise.
6660 (is_marker_spec): Removed.
6661 (strace_marker_p): New function.
6662 (init_breakpoint_sal): Using `strace_marker_p' instead of
6664 (create_breakpoint): Call method `create_sals_from_address' from
6665 breakpoint_ops, replacing code that created SALs conditionally
6666 on the type of the breakpoint. Call method `create_breakpoints_sal',
6667 replacing code that created breakpoints conditionally on the type
6669 (base_breakpoint_create_sals_from_address): New function.
6670 (base_breakpoint_create_breakpoints_sal): Likewise.
6671 (base_breakpoint_decode_linespec): Likewise.
6672 (base_breakpoint_ops): Add methods
6673 `base_breakpoint_create_sals_from_address',
6674 `base_breakpoint_create_breakpoints_sal' and
6675 `base_breakpoint_decode_linespec'.
6676 (bkpt_create_sals_from_address): New function.
6677 (bkpt_create_breakpoints_sal): Likewise.
6678 (bkpt_decode_linespec): Likewise.
6679 (tracepoint_create_sals_from_address): Likewise.
6680 (tracepoint_create_breakpoints_sal): Likewise.
6681 (tracepoint_decode_linespec): Likewise.
6682 (strace_marker_create_sals_from_address): Likewise.
6683 (strace_marker_create_breakpoints_sal): Likewise.
6684 (strace_marker_decode_linespec): Likewise.
6685 (strace_marker_breakpoint_ops): New variable.
6686 (addr_string_to_sals): Remove `marker_spec'. Call method
6687 `decode_linespec' from breakpoint_ops, replacing code that decoded
6688 an address string into a SAL. Use `strace_marker_p' instead of
6690 (strace_command): Decide whether we are dealing with a static
6691 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6692 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6693 * breakpoint.h (linespec_result, linespec_sals): New forward
6695 (breakpoint_ops) <create_sals_from_address>,
6696 <create_breakpoints_sal>, <decode_linespec>: New methods.
6700 * NEWS: Update text for "maint set python print-stack".
6701 It is deprecated in gdb 7.4 and deleted in 7.5.
6705 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6710 * configure: Regenerate.
6711 * config.in: Regenerate.
6716 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6717 (ANONYMOUS_UNION_NAME): Define.
6718 (is_path_expr_parent): New function.
6719 (get_path_expr_parent): New function.
6720 (is_anonymous_child): New function.
6721 (create_child_with_value): If the child is anonymous and without
6722 a name, assign an object name to it.
6723 (c_describe_child): Use get_path_expr_parent to determine
6724 the parent expression.
6725 If there field represents an anonymous struct or union and
6726 has no name, set an appropriate display name and expression.
6727 (cplus_describe_child): Likewise.
6731 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6732 available when %ebp is found to be zero (outermost).
6736 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6737 an internal gdb_static_assert.
6738 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6743 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6744 catch" and "catch throw".
6748 * blockframe.c (block_innermost_frame): Start search from selected
6749 frame, if present, or otherwise the current frame.
6751 * c-exp.y (variable): Update innermost_block for
6752 'block COLONCOLON NAME' clause.
6753 * m2-exp.y (variable): Ditto.
6754 * objc-exp.y (variable): Ditto.
6759 * python/python.c (finish_python_initialization): Set sys.argv.
6763 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6764 "want_line_info". All callers updated.
6765 (dwarf_decode_lines_1): New function.
6766 (handle_DW_AT_stmt_list): Add function comment.
6767 New arg "want_line_info". All callers updated.
6768 (read_file_scope,read_type_unit_scope): Move comment from
6769 handle_DW_AT_stmt_list to here.
6773 Fix regression after libiberty/ update for GCC PR 6057 and others.
6774 * c-exp.y (operator) <OPERATOR DELETE>
6775 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6776 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6777 (make_builtin_type, make_name): New variable i, add gdb_assert.
6778 (operator) <OPERATOR NEW>: Update ARGS to 3.
6779 (operator) <OPERATOR DELETE>: Add trailing space.
6780 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6781 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6782 * cp-support.c (cp_canonicalize_string): Check NULL from
6783 cp_comp_to_string, call warning and return.
6787 Fix duplicate .o files after omitting libbfd.a.
6788 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6789 (SFILES): Add corelow.c.
6790 (COMMON_OBS): Add corelow.o.
6791 (ALLDEPFILES): Remove corelow.c.
6792 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6793 * config/alpha/alpha-osf3.mh: Likewise.
6794 * config/alpha/fbsd.mh: Likewise.
6795 * config/arm/nbsdaout.mh: Likewise.
6796 * config/arm/nbsdelf.mh: Likewise.
6797 * config/i386/i386gnu.mh: Likewise.
6798 * config/ia64/hpux.mh: Likewise.
6799 * config/ia64/linux.mh: Likewise.
6800 * config/m32r/linux.mh: Likewise.
6801 * config/m68k/linux.mh: Likewise.
6802 * config/mips/irix5.mh: Likewise.
6803 * config/mips/irix6.mh: Likewise.
6804 * config/pa/hpux.mh: Likewise.
6805 * config/pa/linux.mh: Likewise.
6806 * config/powerpc/aix.mh: Likewise.
6807 * config/sparc/linux.mh: Likewise.
6808 * config/sparc/linux64.mh: Likewise.
6809 * config/sparc/sol2.mh: Likewise.
6810 * config/vax/vax.mh: Likewise.
6811 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6812 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6813 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6814 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6815 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6816 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6817 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6818 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6819 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6820 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6821 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6822 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6823 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6824 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6825 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6826 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6827 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6828 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6829 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6830 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6831 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6832 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6833 corelow.o from gdb_target_obs.
6834 * corefile.c (core_target): Update the comment on NULL value.
6835 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6836 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6837 MATCHES. Drop YUMMY set on NULL.
6838 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6839 reclaim CORE_DATA if it is already NULL.
6843 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6844 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6848 * breakpoint.c (wrapper.h): Don't include.
6852 * Makefile.in (SFILES): Remove wrapper.c.
6853 (HFILES_NO_SRCDIR): Remove wrapper.h.
6854 (COMMON_OBS): Remove wrapper.o.
6855 * cli/cli-interp.c: Don't inlude wrapper.h.
6856 * corelow.c: Likewise.
6857 (core_open): Replace gdb_target_find_new_threads with
6858 TRY_CATCH around target_find_new_threads.
6859 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6860 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6861 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6862 evaluate_expression.
6863 (varobj_set_value): Likewise for evaluate_expression and
6865 (install_new_variable): Likewise for value_fetch_lazy.
6866 (adjust_value_for_child_access): Likewise for value_ind.
6867 (c_describe_child): Likewise for value_subscript and
6869 (c_value_of_root): Likewise for evaluate_expression.
6870 * wrapper.c: Remove.
6871 * wrapper.h: Remove.
6875 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6876 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6877 "abfd" args with "section". All callers updated.
6878 Error checking code moved ...
6879 (error_check_comp_unit_head): ... here. New function.
6880 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6881 Delete arg "abfd". New arg "type_offset". All callers updated.
6882 (create_debug_types_hash_table): Simplify by using
6883 read_and_check_type_unit_head.
6885 * parser-defs.h (namecopy): Delete.
6886 * parse.c (namecopy, namecopy_size): Move into copy_name.
6890 Partially fix duplicate .o files after omitting libbfd.a.
6891 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6892 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6893 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6894 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6895 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6896 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6897 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6901 * MAINTAINERS: Update my email address.
6905 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6906 n_type_units. Rename type_comp_units to all_type_units.
6908 (add_signatured_type_cu_to_table): Renamed from
6909 add_signatured_type_cu_to_list. All callers updated.
6911 * gdbtypes.h (struct cplus_struct_type): Delete member
6912 nfn_fields_total. All uses removed.
6916 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6918 (dwarf2_find_comp_unit): Delete.
6919 (process_psymtab_comp_unit): Make result "void".
6920 Delete args buffer, info_ptr, buffer_size, and replace with
6921 "section". All callers updated.
6922 (dwarf2_build_psymtabs_hard): Simplify.
6927 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6928 before `struct gdb_exception'.
6929 * breakpoint.c (update_global_location_list_nothrow)
6930 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6931 * cp-abi.c (value_rtti_type): Likewise.
6932 * cp-support.c (cp_validate_operator): Likewise.
6933 * infrun.c (insert_exception_resume_breakpoint)
6934 (check_exception_resume, keep_going): Likewise.
6935 * mi-interp.c (mi_breakpoint_created)
6936 (mi_breakpoint_modified): Likewise.
6937 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6938 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6939 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6943 * dwarf2read.c (statement_prologue): Delete, unused.
6945 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6946 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6948 * dwarf2read.c (comp_unit_header): Delete, unused.
6952 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6953 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6957 * infrun.c (normal_stop): Don't skip calling the normal_stop
6958 observers if the thread was doing a multi-step, but stopped for
6959 some reason other than stepping.
6963 * cli/cli-decode.h: Add comments.
6964 (CMD_LIST_AMBIGUOUS): Moved to command.h
6965 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6966 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6967 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6968 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6969 (add_com, add_com_alias, add_info, add_info_alias)
6970 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6972 * command.h: Add and adjust comments.
6973 (CMD_LIST_AMBIGUOUS): Moved here.
6974 (help_cmd, help_cmd_list): Delete declarations.
6978 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6979 All callers updated.
6980 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6981 Replace all arguments with "per_cu". All callers updated.
6983 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6985 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6986 New arg "per_cu". All callers updated.
6988 Delete #if 0'd out code.
6989 * language.c (binop_result_type): Delete.
6990 (simple_type, ordered_type, same_type, integral_type): Delete.
6991 (numeric_type, character_type, string_type, boolean_type): Delete.
6992 (float_type, structured_type): Delete.
6993 * language.h: Update.
6997 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7001 * corefile.c (close_exec_file): Delete.
7002 (reopen_exec_file): Remove commented out code that seems related
7003 to close_exec_file, which is being deleted here.
7004 * inferior.h (close_exec_file): Delete.
7005 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7009 * ada-lang.c: #include "cli/cli-utils.h".
7010 (get_selections): Use skip_spaces.
7011 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7012 (catch_ada_exception_command_split): Use skip_spaces.
7013 (ada_decode_assert_location): Likewise.
7017 * linespec.c (decode_line_internal): Check for C++ or Java
7018 compound constructs only if the current language is C, C++
7026 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7027 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7029 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7030 fall through into AT_ENTRY_POINT.
7031 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7033 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7034 PPC_INSN_SIZE skip to 3 times.
7038 * linespec.c (add_minsym): Preserve function descriptors.
7042 * breakpoint.c (all_locations_are_pending): Consider locations
7043 in program spaces executing during startup pending as well.
7047 Copyright year update in most files of the GDB Project.
7051 * copyright.sh: Delete.
7052 * copyright.py: Rewrite.
7056 * gnulib/extra/update-copyright: New file, imported from gnulib.
7060 * README (Copyright and License Notices): New section.
7065 * python/py-value.c (valpy_dereference, valpy_get_address
7066 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7067 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7068 (valpy_absolute, valpy_richcompare): Free intermediate values.
7072 * ada-lang.c: Reformat the copyright notice.
7076 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7077 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7078 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7079 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7080 Revert this part of:
7082 Build gdb directly from *.o files not using libgdb.a.
7083 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7087 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7088 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7089 Reformat the copyright header.
7093 Revert this part of:
7095 Remove the gdbtui binary.
7096 * gdb.c (main): Remove args.interpreter_p initialization.
7097 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7098 * main.h (struct captured_main_args): Remove interpreter_p.
7102 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7106 * top.c (print_gdb_version): Update copyright year.
7110 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7115 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7116 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7118 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7119 fall through into AT_ENTRY_POINT.
7120 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7122 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7123 PPC_INSN_SIZE skip to 3 times.
7127 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7129 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7133 Build gdb directly from *.o files not using libgdb.a.
7134 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7135 (COMMON_OBS): Remove solib-target.o.
7136 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7137 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7138 (LIBGDB_OBS, libgdb.a): Move it above.
7139 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7140 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7141 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7142 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7143 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7144 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7145 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7146 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7147 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7148 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7149 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7150 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7151 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7152 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7153 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7154 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7155 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7156 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7157 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7158 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7159 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7160 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7161 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7162 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7163 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7164 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7165 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7169 Remove the gdbtui binary.
7170 * .gitignore (/gdbtui): Remove.
7171 * Makefile.in (TUI): Remove.
7172 (SUBDIR_TUI_OBS): Remove tui-main.o.
7173 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7174 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7175 (tui-main.o): Remove.
7176 (all_object_files): Remove tui-main.o.
7177 * NEWS: New note for the gdbtui removal.
7178 * configure: Rebuilt.
7179 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7180 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7181 CONFIG_UNINSTALL respectively.
7182 * gdb.c (main): Remove args.interpreter_p initialization.
7183 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7184 * main.h (struct captured_main_args): Remove interpreter_p.
7185 * tui/tui-main.c: Remove.
7189 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7190 (dwarf2_physname, read_import_statement): Ditto.
7191 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7192 (process_structure_scope read_subroutine_type): Ditto.
7193 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7194 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7195 (dwarf2_fetch_die_location_block): Ditto.
7196 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7198 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7199 All callers updated.
7200 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7201 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7202 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7204 * dwarf2read.c (load_cu): Move assert to more useful location.
7206 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7207 All callers updated.
7209 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7210 (dwarf2_elf_names): Minor reformat.
7211 (dwarf2_per_cu_data): Tweak comment.
7212 (dwarf2_read_section): Fix comment.
7213 (create_all_comp_units): Fix comment.
7214 (load_full_comp_unit): Fix comment.
7215 (process_full_comp_unit): Fix comment.
7216 (read_signatured_type): Fix comment.
7218 For older changes see ChangeLog-2011.
7224 version-control: never