5 * NEWS: Add "catch signal".
6 * breakpoint.c (base_breakpoint_ops): No longer static.
7 (bpstat_explains_signal): New function.
8 (init_catchpoint): No longer static.
9 (base_breakpoint_explains_signal): New function.
10 (base_breakpoint_ops): Initialize new field.
11 * breakpoint.h (enum bpstat_signal_value): New.
12 (struct breakpoint_ops) <explains_signal>: New field.
13 (bpstat_explains_signal): Remove macro, declare as function.
14 (base_breakpoint_ops, init_catchpoint): Declare.
15 * break-catch-sig.c: New file.
16 * inferior.h (signal_catch_update): Declare.
17 * infrun.c (signal_catch): New global.
18 (handle_syscall_event): Update for change to
19 bpstat_explains_signal.
20 (handle_inferior_event): Likewise. Always handle random signals
22 (signal_cache_update): Check signal_catch.
23 (signal_catch_update): New function.
24 (_initialize_infrun): Initialize signal_catch.
25 * Makefile.in (SFILES): Add break-catch-sig.c.
26 (COMMON_OBS): Add break-catch-sig.o.
30 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
31 (print_one_catch_solib, print_one_catch_syscall)
32 (print_one_catch_exec, print_one_exception_catchpoint): Emit
37 * printcmd.c (current_display_number): Make it static.
41 * infcmd.c (step_once): Don't check '!single_inst' as it was
46 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
50 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
52 * command.h (add_setshow_string_noescape_cmd): Update.
53 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
54 (complete_set_gnutarget): New function.
55 (_initialize_core): Set the "set gnutarget" completer.
60 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
61 (c_type_print_modifier): Likewise.
62 * dwarf2read.c (read_tag_restrict_type): New function.
63 (read_type_die_1): Handle DW_TAG_restrict_type.
64 * gdbtypes.c (make_restrict_type): New function.
65 (recursive_dump_type): Handle TYPE_RESTRICT.
66 * gdbtypes.h (enum type_flag_values): Renumber.
67 (enum type_instance_flag_value): Add
68 TYPE_INSTANCE_FLAG_RESTRICT.
69 (TYPE_RESTRICT): New macro.
70 (make_restrict_type): Declare.
75 * psymtab.c (struct psymtab_state): New.
76 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
78 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
79 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
86 * remote.c (remote_threads_info): Make a copy of the reply from
87 qfThreadInfo and use that instead of rs->buf.
91 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
92 (dbx_psymtab_to_symtab): Likewise.
93 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
94 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
95 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
99 * parse.c (parse_exp_in_context): New variable inner_chain. Call
100 make_cleanup_restore_current_language. Call set_language. Move
101 OLD_CHAIN and INNER_CHAIN cleanups.
102 * utils.c (do_restore_current_language)
103 (make_cleanup_restore_current_language): New functions.
104 * utils.h (make_cleanup_restore_current_language): New declaration.
108 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
111 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
112 non-existing files if FILENAME is already absolute.
116 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
117 fputs_filtered. Append trailing newline.
122 * psymtab.c (init_psymbol_list): Clarify the comment.
126 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
127 (update_dprintf_command_list): Assert that 'printf_line' is
128 non-null. Remove condition check.
133 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
135 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
137 * tui/tui-source.h (tui_source_is_displayed): Likewise.
141 * cp-abi.c (cplus_print_vtable): Don't return value from void
143 * ada-lang.c (re_set_catch_assert): Ditto.
147 * symfile.h (quick_symbol_functions): Delete member
148 pre_expand_symtabs_matching. All uses removed.
149 * dwarf2read.c (dw2_lookup_symbol): Implement.
150 (dw2_do_expand_symtabs_matching): Delete.
151 (dw2_pre_expand_symtabs_matching): Delete.
152 (struct dw2_symtab_iterator): New type.
153 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
154 (dw2_expand_symtabs_for_function): Rewrite.
155 (dwarf2_gdb_index_functions): Update.
156 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
157 (psym_functions): Update.
161 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
162 * configure: Rebuild.
163 * configure.ac: Add somread.o to the build if BFD has SOM
165 * somread.c: Include som/aout.h, not syms.h.
166 (som_symtab_read): Use som_external_symbol_dictionary_record.
167 Unpack records manually.
168 (_initialize_somread): Declare.
172 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
173 Cast return_address to 64bits.
177 * printcmd.c: Remove define of function output_command.
178 * tracepoint.c: Remove extern of function output_command.
179 * valprint.h: (output_command): New extern.
183 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
185 (objc_language_defn): Use c_printchar, c_printstr,
192 * ada-valprint.c (printstr, print_field_values): Remove
194 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
196 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
198 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
199 * main.c (captured_main): Remove "epoch" argument.
200 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
201 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
202 * p-valprint.c (pascal_object_print_value_fields): Remove
204 * printcmd.c (print_command_1): Remove 'inspect' argument.
205 (print_command, call_command): Update.
206 (inspect_command): Remove.
207 (_initialize_printcmd): Make "inspect" an alias for "print".
208 * top.c (epoch_interface): Remove.
209 * top.h (epoch_interface): Remove.
210 * valprint.c (user_print_options): Update.
211 (print_converted_chars_to_obstack): Remove "inspect_it" code.
212 * valprint.h (struct value_print_options) <inspect_it>: Remove
217 * valprint.h (read_string): Add 'extern'.
221 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
222 used to decide whether to define darwin_read_dyld_info or not.
226 * main.c (relocate_gdb_directory): Avoid calling stat function
231 * psymtab.c (fixup_psymbol_section): Update declaration.
232 (fixup_psymbol_section): Remove code returning value.
236 * symtab.h: Remove some out of date comments.
237 (enum exception_event_kind): Move it ...
238 * breakpoint.c: ... here.
243 * darwin-nat.c (darwin_read_dyld_info): Only build if
244 TASK_DYLD_INFO_COUNT is defined.
245 (darwin_xfer_partial): Call darwin_read_dyld_info only if
246 TASK_DYLD_INFO_COUNT is defined.
250 * symfile.h (struct ecoff_debug_hack): Remove.
251 * objfiles.c: Don't include mdebugread.h.
255 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
256 * configure.ac: Check for Mach-O support in BFD. Update
258 * configure: Rebuild.
262 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
263 * configure.ac: Use GDB_AC_CHECK_BFD.
264 * configure: Rebuild.
268 * MAINTAINERS: Update my email.
272 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
276 * rs6000-nat.c (bss_data_overlap): New function.
277 (vmap_symtab): Use it to adjust the .bss section's offset.
281 Update year range in copyright notice of all files.
285 * top.c (print_gdb_version): Update copyright year.
287 For older changes see ChangeLog-2012.
293 version-control: never