1 2013-01-21 Tom Tromey <tromey@redhat.com>
3 * gdb_obstack.h (obconcat): Move declaration here, from...
4 * symfile.h (obconcat): ... here.
5 * gdb_obstack.c: New file.
6 (obconcat): Move from...
7 * symfile.c (obconcat): ... here.
8 * Makefile.in (SFILES): Add gdb_obstack.c.
9 (COMMON_OBS): Add gdb_obstack.o.
11 2013-01-21 Tom Tromey <tromey@redhat.com>
13 * symfile.h (obsavestring): Don't declare.
14 * symfile.c (obsavestring): Remove.
15 * ada-exp.y: Use obstack_copy0, not obsavestring.
16 * ada-lang.c: Use obstack_copy0, not obsavestring.
17 * coffread.c: Use obstack_copy0, not obsavestring.
18 * cp-namespace.c: Use obstack_copy0, not obsavestring.
19 * dbxread.c: Use obstack_copy0, not obsavestring.
20 * dwarf2read.c: Use obstack_copy0, not obsavestring.
21 * jit.c: Use obstack_copy0, not obsavestring.
22 * mdebugread.c: Use obstack_copy0, not obsavestring.
23 * psymtab.c: Use obstack_copy0, not obsavestring.
24 * stabsread.c: Use obstack_copy0, not obsavestring.
25 * xcoffread.c: Use obstack_copy0, not obsavestring.
27 2013-01-21 Tom Tromey <tromey@redhat.com>
29 * dwarf2read.c (fixup_go_packaging): Save package name
31 * gdbtypes.c (init_type): Don't copy name.
33 2013-01-21 Tom Tromey <tromey@redhat.com>
35 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
37 (struct attribute) <u.str>: Now const.
38 (struct fnfieldlist) <name>: Now const.
39 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
40 (partial_die_parent_scope): Make return type const.
41 (partial_die_full_name, add_partial_symbol): Update.
42 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
44 (find_file_and_directory): Make 'name' and 'comp_dir' const.
45 (read_file_scope, read_func_scope, dwarf2_add_field)
46 (dwarf2_add_member_fn, read_structure_type)
47 (process_enumeration_scope, read_array_type, read_module_type)
48 (read_base_type, read_subrange_type): Update.
49 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
50 (new_symbol_full, guess_full_die_structure_name): Update.
51 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
52 (dwarf2_name): Return const type.
53 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
56 2013-01-21 Tom Tromey <tromey@redhat.com>
58 * gdbtypes.c (init_type): Make 'name' const.
59 * gdbtypes.h (init_type): Update.
61 2013-01-21 Tom Tromey <tromey@redhat.com>
63 * buildsym.c (patch_subfile_names): Use set_last_source_file.
64 (start_symtab): Make 'name' and 'dirname' const. Use
66 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
67 (last_source_file): Define. Now static.
68 (set_last_source_file, get_last_source_file): New functions.
69 * buildsym.h (last_source_file): Don't declare.
70 (start_symtab): Update.
71 (set_last_source_file, get_last_source_file): Declare.
72 * coffread.c (complete_symtab): Use set_last_source_file.
73 (coff_end_symtab): Likewise.
74 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
75 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
77 (process_one_symbol): Use get_last_source_file.
78 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
79 (psymtab_to_symtab_1): Use get_last_source_file.
80 * xcoffread.c (process_linenos): Use get_last_source_file.
81 (complete_symtab): Use set_last_source_file.
82 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
83 (scan_xcoff_symtab): Use set_last_source_file.
85 2013-01-21 Tom Tromey <tromey@redhat.com>
87 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
88 (symbol_set_names): Remove casts. Handle field const-ness.
90 2013-01-21 Tom Tromey <tromey@redhat.com>
92 * dwarf2read.c (new_symbol_full): Remove cast.
93 * symtab.c (symbol_set_demangled_name): Make 'name' const.
94 * symtab.h (symbol_set_demangled_name): Update.
96 2013-01-21 Tom Tromey <tromey@redhat.com>
98 * main.c (captured_main): Call bfd_init.
100 2013-01-21 Tom Tromey <tromey@redhat.com>
102 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
103 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
104 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
107 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
109 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
111 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
113 Fix gdb.fortran/common-block.exp crash in PIE mode.
114 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
116 * f-valprint.c (info_common_command_for_block): Expect
117 LOC_COMMON_BLOCK in gdb_assert.
118 * symtab.h (struct general_symbol_info): Update comment for the
120 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
121 (enum address_class): New member LOC_COMMON_BLOCK.
123 2013-01-18 David Blaikie <dblaikie@gmail.com>
125 * MAINTAINERS (Write After Approval): Add "David Blaikie".
127 2013-01-18 Tom Tromey <tromey@redhat.com>
130 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
133 2013-01-18 Yao Qi <yao@codesourcery.com>
135 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
136 (dbx_read_symtab): New declaration.
137 (dbx_psymtab_to_symtab): Delete.
138 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
139 Rename parameter PST to SELF. Exchanged two parameters.
140 (start_psymtab): Caller update.
141 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
142 (dwarf2_read_symtab): New declaration.
143 (dwarf2_psymtab_to_symtab): Delete.
144 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
145 Rename parameter PST to SELF. Exchanged two parameters.
146 (create_partial_symtab): Caller update.
147 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
148 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
149 Rename parameter PST to SELF. Exchanged two parameters.
150 (parse_partial_symbols, new_psymtab): Caller update.
151 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
153 * psymtab.c (psymtab_to_symtab): Caller update.
154 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
155 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
156 Rename parameter PST to SELF. Exchanged two parameters.
157 (xcoff_start_psymtab): Caller update.
159 2013-01-18 Yao Qi <yao@codesourcery.com>
161 * infrun.c (proceed): Rename local variable 'oneproc' to
164 2013-01-17 Doug Evans <dje@google.com>
166 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
167 (dw2_build_type_unit_groups): Delete. All uses updated.
169 * symtab.h (struct symbol_search): Add comment.
171 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
173 * symtab.c (compare_filenames_for_search): New comment for
176 2013-01-17 Tom Tromey <tromey@redhat.com>
178 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
180 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
182 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
183 initialize it by existing make_cleanup. Call new do_cleanups.
185 2013-01-17 Tom Tromey <tromey@redhat.com>
187 * cp-abi.c (cp_abi_completer): New function.
188 (_initialize_cp_abi): Set completer for "set cp-abi".
190 2013-01-17 Tom Tromey <tromey@redhat.com>
192 * mem-break.c: Remove obsolete comment.
193 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
195 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
197 * jit.c (jit_reader_load_command): Interpret the jit reader name
198 as an absolute path if it begins with a forward slash.
200 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
204 * jit.c (finalize_symtab): Ensure that only the global block has a
207 2013-01-17 Pedro Alves <palves@redhat.com>
209 * acinclude.m4: Include ../config/plugins.m4,
210 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
211 * Makefile.in (aclocal_m4_deps): Update.
212 * aclocal.m4: Renegerate.
214 2013-01-16 Doug Evans <dje@google.com>
216 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
218 2013-01-16 Pedro Alves <palves@redhat.com>
219 Tom Tromey <tromey@redhat.com>
222 * NEWS: Add "catch signal".
223 * breakpoint.c (base_breakpoint_ops): No longer static.
224 (bpstat_explains_signal): New function.
225 (init_catchpoint): No longer static.
226 (base_breakpoint_explains_signal): New function.
227 (base_breakpoint_ops): Initialize new field.
228 * breakpoint.h (enum bpstat_signal_value): New.
229 (struct breakpoint_ops) <explains_signal>: New field.
230 (bpstat_explains_signal): Remove macro, declare as function.
231 (base_breakpoint_ops, init_catchpoint): Declare.
232 * break-catch-sig.c: New file.
233 * inferior.h (signal_catch_update): Declare.
234 * infrun.c (signal_catch): New global.
235 (handle_syscall_event): Update for change to
236 bpstat_explains_signal.
237 (handle_inferior_event): Likewise. Always handle random signals
239 (signal_cache_update): Check signal_catch.
240 (signal_catch_update): New function.
241 (_initialize_infrun): Initialize signal_catch.
242 * Makefile.in (SFILES): Add break-catch-sig.c.
243 (COMMON_OBS): Add break-catch-sig.o.
245 2013-01-16 Tom Tromey <tromey@redhat.com>
247 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
248 (print_one_catch_solib, print_one_catch_syscall)
249 (print_one_catch_exec, print_one_exception_catchpoint): Emit
252 2013-01-16 Yao Qi <yao@codesourcery.com>
254 * printcmd.c (current_display_number): Make it static.
256 2013-01-16 Yao Qi <yao@codesourcery.com>
258 * infcmd.c (step_once): Don't check '!single_inst' as it was
261 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
263 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
265 2013-01-14 Tom Tromey <tromey@redhat.com>
267 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
269 * command.h (add_setshow_string_noescape_cmd): Update.
270 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
271 (complete_set_gnutarget): New function.
272 (_initialize_core): Set the "set gnutarget" completer.
274 2013-01-14 Tom Tromey <tromey@redhat.com>
277 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
278 (c_type_print_modifier): Likewise.
279 * dwarf2read.c (read_tag_restrict_type): New function.
280 (read_type_die_1): Handle DW_TAG_restrict_type.
281 * gdbtypes.c (make_restrict_type): New function.
282 (recursive_dump_type): Handle TYPE_RESTRICT.
283 * gdbtypes.h (enum type_flag_values): Renumber.
284 (enum type_instance_flag_value): Add
285 TYPE_INSTANCE_FLAG_RESTRICT.
286 (TYPE_RESTRICT): New macro.
287 (make_restrict_type): Declare.
289 2013-01-14 Tom Tromey <tromey@redhat.com>
292 * psymtab.c (struct psymtab_state): New.
293 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
295 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
296 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
298 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
299 Pedro Alves <palves@redhat.com>
303 * remote.c (remote_threads_info): Make a copy of the reply from
304 qfThreadInfo and use that instead of rs->buf.
306 2013-01-14 Yao Qi <yao@codesourcery.com>
308 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
309 (dbx_psymtab_to_symtab): Likewise.
310 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
311 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
312 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
314 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
316 * parse.c (parse_exp_in_context): New variable inner_chain. Call
317 make_cleanup_restore_current_language. Call set_language. Move
318 OLD_CHAIN and INNER_CHAIN cleanups.
319 * utils.c (do_restore_current_language)
320 (make_cleanup_restore_current_language): New functions.
321 * utils.h (make_cleanup_restore_current_language): New declaration.
323 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
325 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
328 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
329 non-existing files if FILENAME is already absolute.
331 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
333 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
334 fputs_filtered. Append trailing newline.
336 2013-01-11 Yao Qi <yao@codesourcery.com>
337 Stan Shebs <stan@codesourcery.com>
339 * psymtab.c (init_psymbol_list): Clarify the comment.
341 2013-01-11 Yao Qi <yao@codesourcery.com>
343 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
344 (update_dprintf_command_list): Assert that 'printf_line' is
345 non-null. Remove condition check.
347 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
350 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
352 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
354 * tui/tui-source.h (tui_source_is_displayed): Likewise.
356 2013-01-09 Anthony Green <green@moxielogic.com>
358 * cp-abi.c (cplus_print_vtable): Don't return value from void
360 * ada-lang.c (re_set_catch_assert): Ditto.
362 2013-01-09 Doug Evans <dje@google.com>
364 * symfile.h (quick_symbol_functions): Delete member
365 pre_expand_symtabs_matching. All uses removed.
366 * dwarf2read.c (dw2_lookup_symbol): Implement.
367 (dw2_do_expand_symtabs_matching): Delete.
368 (dw2_pre_expand_symtabs_matching): Delete.
369 (struct dw2_symtab_iterator): New type.
370 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
371 (dw2_expand_symtabs_for_function): Rewrite.
372 (dwarf2_gdb_index_functions): Update.
373 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
374 (psym_functions): Update.
376 2013-01-09 Tom Tromey <tromey@redhat.com>
378 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
379 * configure: Rebuild.
380 * configure.ac: Add somread.o to the build if BFD has SOM
382 * somread.c: Include som/aout.h, not syms.h.
383 (som_symtab_read): Use som_external_symbol_dictionary_record.
384 Unpack records manually.
385 (_initialize_somread): Declare.
387 2012-01-08 Mike Frysinger <vapier@gentoo.org>
389 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
390 Cast return_address to 64bits.
392 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
394 * printcmd.c: Remove define of function output_command.
395 * tracepoint.c: Remove extern of function output_command.
396 * valprint.h: (output_command): New extern.
398 2013-01-07 Tom Tromey <tromey@redhat.com>
400 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
402 (objc_language_defn): Use c_printchar, c_printstr,
405 2013-01-07 Tom Tromey <tromey@redhat.com>
409 * ada-valprint.c (printstr, print_field_values): Remove
411 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
413 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
415 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
416 * main.c (captured_main): Remove "epoch" argument.
417 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
418 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
419 * p-valprint.c (pascal_object_print_value_fields): Remove
421 * printcmd.c (print_command_1): Remove 'inspect' argument.
422 (print_command, call_command): Update.
423 (inspect_command): Remove.
424 (_initialize_printcmd): Make "inspect" an alias for "print".
425 * top.c (epoch_interface): Remove.
426 * top.h (epoch_interface): Remove.
427 * valprint.c (user_print_options): Update.
428 (print_converted_chars_to_obstack): Remove "inspect_it" code.
429 * valprint.h (struct value_print_options) <inspect_it>: Remove
432 2013-01-04 Tom Tromey <tromey@redhat.com>
434 * valprint.h (read_string): Add 'extern'.
436 2013-01-07 Joel Brobecker <brobecker@adacore.com>
438 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
439 used to decide whether to define darwin_read_dyld_info or not.
441 2013-01-03 Pierre Muller <muller@sourceware.org>
443 * main.c (relocate_gdb_directory): Avoid calling stat function
446 2013-01-03 Yao Qi <yao@codesourcery.com>
448 * psymtab.c (fixup_psymbol_section): Update declaration.
449 (fixup_psymbol_section): Remove code returning value.
451 2013-01-03 Yao Qi <yao@codesourcery.com>
453 * symtab.h: Remove some out of date comments.
454 (enum exception_event_kind): Move it ...
455 * breakpoint.c: ... here.
457 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
460 * darwin-nat.c (darwin_read_dyld_info): Only build if
461 TASK_DYLD_INFO_COUNT is defined.
462 (darwin_xfer_partial): Call darwin_read_dyld_info only if
463 TASK_DYLD_INFO_COUNT is defined.
465 2013-01-02 Tom Tromey <tromey@redhat.com>
467 * symfile.h (struct ecoff_debug_hack): Remove.
468 * objfiles.c: Don't include mdebugread.h.
470 2013-01-02 Tom Tromey <tromey@redhat.com>
472 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
473 * configure.ac: Check for Mach-O support in BFD. Update
475 * configure: Rebuild.
477 2013-01-02 Tom Tromey <tromey@redhat.com>
479 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
480 * configure.ac: Use GDB_AC_CHECK_BFD.
481 * configure: Rebuild.
483 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
485 * MAINTAINERS: Update my email.
487 2013-01-01 Joel Brobecker <brobecker@adacore.com>
489 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
491 2013-01-01 Joel Brobecker <brobecker@adacore.com>
493 * rs6000-nat.c (bss_data_overlap): New function.
494 (vmap_symtab): Use it to adjust the .bss section's offset.
496 2013-01-01 Joel Brobecker <brobecker@adacore.com>
498 Update year range in copyright notice of all files.
500 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
502 * top.c (print_gdb_version): Update copyright year.
504 For older changes see ChangeLog-2012.
510 version-control: never