1 2013-01-21 Tom Tromey <tromey@redhat.com>
3 * gdbtypes.c (init_type): Make 'name' const.
4 * gdbtypes.h (init_type): Update.
6 2013-01-21 Tom Tromey <tromey@redhat.com>
8 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9 (start_symtab): Make 'name' and 'dirname' const. Use
11 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12 (last_source_file): Define. Now static.
13 (set_last_source_file, get_last_source_file): New functions.
14 * buildsym.h (last_source_file): Don't declare.
15 (start_symtab): Update.
16 (set_last_source_file, get_last_source_file): Declare.
17 * coffread.c (complete_symtab): Use set_last_source_file.
18 (coff_end_symtab): Likewise.
19 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
20 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
22 (process_one_symbol): Use get_last_source_file.
23 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
24 (psymtab_to_symtab_1): Use get_last_source_file.
25 * xcoffread.c (process_linenos): Use get_last_source_file.
26 (complete_symtab): Use set_last_source_file.
27 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
28 (scan_xcoff_symtab): Use set_last_source_file.
30 2013-01-21 Tom Tromey <tromey@redhat.com>
32 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
33 (symbol_set_names): Remove casts. Handle field const-ness.
35 2013-01-21 Tom Tromey <tromey@redhat.com>
37 * dwarf2read.c (new_symbol_full): Remove cast.
38 * symtab.c (symbol_set_demangled_name): Make 'name' const.
39 * symtab.h (symbol_set_demangled_name): Update.
41 2013-01-21 Tom Tromey <tromey@redhat.com>
43 * main.c (captured_main): Call bfd_init.
45 2013-01-21 Tom Tromey <tromey@redhat.com>
47 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
48 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
49 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
52 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
54 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
56 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
58 Fix gdb.fortran/common-block.exp crash in PIE mode.
59 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
61 * f-valprint.c (info_common_command_for_block): Expect
62 LOC_COMMON_BLOCK in gdb_assert.
63 * symtab.h (struct general_symbol_info): Update comment for the
65 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
66 (enum address_class): New member LOC_COMMON_BLOCK.
68 2013-01-18 David Blaikie <dblaikie@gmail.com>
70 * MAINTAINERS (Write After Approval): Add "David Blaikie".
72 2013-01-18 Tom Tromey <tromey@redhat.com>
75 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
78 2013-01-18 Yao Qi <yao@codesourcery.com>
80 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
81 (dbx_read_symtab): New declaration.
82 (dbx_psymtab_to_symtab): Delete.
83 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
84 Rename parameter PST to SELF. Exchanged two parameters.
85 (start_psymtab): Caller update.
86 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
87 (dwarf2_read_symtab): New declaration.
88 (dwarf2_psymtab_to_symtab): Delete.
89 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
90 Rename parameter PST to SELF. Exchanged two parameters.
91 (create_partial_symtab): Caller update.
92 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
93 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
94 Rename parameter PST to SELF. Exchanged two parameters.
95 (parse_partial_symbols, new_psymtab): Caller update.
96 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
98 * psymtab.c (psymtab_to_symtab): Caller update.
99 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
100 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
101 Rename parameter PST to SELF. Exchanged two parameters.
102 (xcoff_start_psymtab): Caller update.
104 2013-01-18 Yao Qi <yao@codesourcery.com>
106 * infrun.c (proceed): Rename local variable 'oneproc' to
109 2013-01-17 Doug Evans <dje@google.com>
111 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
112 (dw2_build_type_unit_groups): Delete. All uses updated.
114 * symtab.h (struct symbol_search): Add comment.
116 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
118 * symtab.c (compare_filenames_for_search): New comment for
121 2013-01-17 Tom Tromey <tromey@redhat.com>
123 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
125 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
127 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
128 initialize it by existing make_cleanup. Call new do_cleanups.
130 2013-01-17 Tom Tromey <tromey@redhat.com>
132 * cp-abi.c (cp_abi_completer): New function.
133 (_initialize_cp_abi): Set completer for "set cp-abi".
135 2013-01-17 Tom Tromey <tromey@redhat.com>
137 * mem-break.c: Remove obsolete comment.
138 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
140 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
142 * jit.c (jit_reader_load_command): Interpret the jit reader name
143 as an absolute path if it begins with a forward slash.
145 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
149 * jit.c (finalize_symtab): Ensure that only the global block has a
152 2013-01-17 Pedro Alves <palves@redhat.com>
154 * acinclude.m4: Include ../config/plugins.m4,
155 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
156 * Makefile.in (aclocal_m4_deps): Update.
157 * aclocal.m4: Renegerate.
159 2013-01-16 Doug Evans <dje@google.com>
161 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
163 2013-01-16 Pedro Alves <palves@redhat.com>
164 Tom Tromey <tromey@redhat.com>
167 * NEWS: Add "catch signal".
168 * breakpoint.c (base_breakpoint_ops): No longer static.
169 (bpstat_explains_signal): New function.
170 (init_catchpoint): No longer static.
171 (base_breakpoint_explains_signal): New function.
172 (base_breakpoint_ops): Initialize new field.
173 * breakpoint.h (enum bpstat_signal_value): New.
174 (struct breakpoint_ops) <explains_signal>: New field.
175 (bpstat_explains_signal): Remove macro, declare as function.
176 (base_breakpoint_ops, init_catchpoint): Declare.
177 * break-catch-sig.c: New file.
178 * inferior.h (signal_catch_update): Declare.
179 * infrun.c (signal_catch): New global.
180 (handle_syscall_event): Update for change to
181 bpstat_explains_signal.
182 (handle_inferior_event): Likewise. Always handle random signals
184 (signal_cache_update): Check signal_catch.
185 (signal_catch_update): New function.
186 (_initialize_infrun): Initialize signal_catch.
187 * Makefile.in (SFILES): Add break-catch-sig.c.
188 (COMMON_OBS): Add break-catch-sig.o.
190 2013-01-16 Tom Tromey <tromey@redhat.com>
192 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
193 (print_one_catch_solib, print_one_catch_syscall)
194 (print_one_catch_exec, print_one_exception_catchpoint): Emit
197 2013-01-16 Yao Qi <yao@codesourcery.com>
199 * printcmd.c (current_display_number): Make it static.
201 2013-01-16 Yao Qi <yao@codesourcery.com>
203 * infcmd.c (step_once): Don't check '!single_inst' as it was
206 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
208 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
210 2013-01-14 Tom Tromey <tromey@redhat.com>
212 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
214 * command.h (add_setshow_string_noescape_cmd): Update.
215 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
216 (complete_set_gnutarget): New function.
217 (_initialize_core): Set the "set gnutarget" completer.
219 2013-01-14 Tom Tromey <tromey@redhat.com>
222 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
223 (c_type_print_modifier): Likewise.
224 * dwarf2read.c (read_tag_restrict_type): New function.
225 (read_type_die_1): Handle DW_TAG_restrict_type.
226 * gdbtypes.c (make_restrict_type): New function.
227 (recursive_dump_type): Handle TYPE_RESTRICT.
228 * gdbtypes.h (enum type_flag_values): Renumber.
229 (enum type_instance_flag_value): Add
230 TYPE_INSTANCE_FLAG_RESTRICT.
231 (TYPE_RESTRICT): New macro.
232 (make_restrict_type): Declare.
234 2013-01-14 Tom Tromey <tromey@redhat.com>
237 * psymtab.c (struct psymtab_state): New.
238 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
240 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
241 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
243 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
244 Pedro Alves <palves@redhat.com>
248 * remote.c (remote_threads_info): Make a copy of the reply from
249 qfThreadInfo and use that instead of rs->buf.
251 2013-01-14 Yao Qi <yao@codesourcery.com>
253 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
254 (dbx_psymtab_to_symtab): Likewise.
255 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
256 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
257 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
259 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
261 * parse.c (parse_exp_in_context): New variable inner_chain. Call
262 make_cleanup_restore_current_language. Call set_language. Move
263 OLD_CHAIN and INNER_CHAIN cleanups.
264 * utils.c (do_restore_current_language)
265 (make_cleanup_restore_current_language): New functions.
266 * utils.h (make_cleanup_restore_current_language): New declaration.
268 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
270 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
273 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
274 non-existing files if FILENAME is already absolute.
276 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
278 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
279 fputs_filtered. Append trailing newline.
281 2013-01-11 Yao Qi <yao@codesourcery.com>
282 Stan Shebs <stan@codesourcery.com>
284 * psymtab.c (init_psymbol_list): Clarify the comment.
286 2013-01-11 Yao Qi <yao@codesourcery.com>
288 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
289 (update_dprintf_command_list): Assert that 'printf_line' is
290 non-null. Remove condition check.
292 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
295 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
297 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
299 * tui/tui-source.h (tui_source_is_displayed): Likewise.
301 2013-01-09 Anthony Green <green@moxielogic.com>
303 * cp-abi.c (cplus_print_vtable): Don't return value from void
305 * ada-lang.c (re_set_catch_assert): Ditto.
307 2013-01-09 Doug Evans <dje@google.com>
309 * symfile.h (quick_symbol_functions): Delete member
310 pre_expand_symtabs_matching. All uses removed.
311 * dwarf2read.c (dw2_lookup_symbol): Implement.
312 (dw2_do_expand_symtabs_matching): Delete.
313 (dw2_pre_expand_symtabs_matching): Delete.
314 (struct dw2_symtab_iterator): New type.
315 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
316 (dw2_expand_symtabs_for_function): Rewrite.
317 (dwarf2_gdb_index_functions): Update.
318 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
319 (psym_functions): Update.
321 2013-01-09 Tom Tromey <tromey@redhat.com>
323 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
324 * configure: Rebuild.
325 * configure.ac: Add somread.o to the build if BFD has SOM
327 * somread.c: Include som/aout.h, not syms.h.
328 (som_symtab_read): Use som_external_symbol_dictionary_record.
329 Unpack records manually.
330 (_initialize_somread): Declare.
332 2012-01-08 Mike Frysinger <vapier@gentoo.org>
334 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
335 Cast return_address to 64bits.
337 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
339 * printcmd.c: Remove define of function output_command.
340 * tracepoint.c: Remove extern of function output_command.
341 * valprint.h: (output_command): New extern.
343 2013-01-07 Tom Tromey <tromey@redhat.com>
345 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
347 (objc_language_defn): Use c_printchar, c_printstr,
350 2013-01-07 Tom Tromey <tromey@redhat.com>
354 * ada-valprint.c (printstr, print_field_values): Remove
356 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
358 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
360 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
361 * main.c (captured_main): Remove "epoch" argument.
362 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
363 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
364 * p-valprint.c (pascal_object_print_value_fields): Remove
366 * printcmd.c (print_command_1): Remove 'inspect' argument.
367 (print_command, call_command): Update.
368 (inspect_command): Remove.
369 (_initialize_printcmd): Make "inspect" an alias for "print".
370 * top.c (epoch_interface): Remove.
371 * top.h (epoch_interface): Remove.
372 * valprint.c (user_print_options): Update.
373 (print_converted_chars_to_obstack): Remove "inspect_it" code.
374 * valprint.h (struct value_print_options) <inspect_it>: Remove
377 2013-01-04 Tom Tromey <tromey@redhat.com>
379 * valprint.h (read_string): Add 'extern'.
381 2013-01-07 Joel Brobecker <brobecker@adacore.com>
383 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
384 used to decide whether to define darwin_read_dyld_info or not.
386 2013-01-03 Pierre Muller <muller@sourceware.org>
388 * main.c (relocate_gdb_directory): Avoid calling stat function
391 2013-01-03 Yao Qi <yao@codesourcery.com>
393 * psymtab.c (fixup_psymbol_section): Update declaration.
394 (fixup_psymbol_section): Remove code returning value.
396 2013-01-03 Yao Qi <yao@codesourcery.com>
398 * symtab.h: Remove some out of date comments.
399 (enum exception_event_kind): Move it ...
400 * breakpoint.c: ... here.
402 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
405 * darwin-nat.c (darwin_read_dyld_info): Only build if
406 TASK_DYLD_INFO_COUNT is defined.
407 (darwin_xfer_partial): Call darwin_read_dyld_info only if
408 TASK_DYLD_INFO_COUNT is defined.
410 2013-01-02 Tom Tromey <tromey@redhat.com>
412 * symfile.h (struct ecoff_debug_hack): Remove.
413 * objfiles.c: Don't include mdebugread.h.
415 2013-01-02 Tom Tromey <tromey@redhat.com>
417 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
418 * configure.ac: Check for Mach-O support in BFD. Update
420 * configure: Rebuild.
422 2013-01-02 Tom Tromey <tromey@redhat.com>
424 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
425 * configure.ac: Use GDB_AC_CHECK_BFD.
426 * configure: Rebuild.
428 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
430 * MAINTAINERS: Update my email.
432 2013-01-01 Joel Brobecker <brobecker@adacore.com>
434 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
436 2013-01-01 Joel Brobecker <brobecker@adacore.com>
438 * rs6000-nat.c (bss_data_overlap): New function.
439 (vmap_symtab): Use it to adjust the .bss section's offset.
441 2013-01-01 Joel Brobecker <brobecker@adacore.com>
443 Update year range in copyright notice of all files.
445 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
447 * top.c (print_gdb_version): Update copyright year.
449 For older changes see ChangeLog-2012.
455 version-control: never