1 2013-01-21 Tom Tromey <tromey@redhat.com>
3 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
5 (struct attribute) <u.str>: Now const.
6 (struct fnfieldlist) <name>: Now const.
7 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
8 (partial_die_parent_scope): Make return type const.
9 (partial_die_full_name, add_partial_symbol): Update.
10 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12 (find_file_and_directory): Make 'name' and 'comp_dir' const.
13 (read_file_scope, read_func_scope, dwarf2_add_field)
14 (dwarf2_add_member_fn, read_structure_type)
15 (process_enumeration_scope, read_array_type, read_module_type)
16 (read_base_type, read_subrange_type): Update.
17 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
18 (new_symbol_full, guess_full_die_structure_name): Update.
19 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
20 (dwarf2_name): Return const type.
21 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
24 2013-01-21 Tom Tromey <tromey@redhat.com>
26 * gdbtypes.c (init_type): Make 'name' const.
27 * gdbtypes.h (init_type): Update.
29 2013-01-21 Tom Tromey <tromey@redhat.com>
31 * buildsym.c (patch_subfile_names): Use set_last_source_file.
32 (start_symtab): Make 'name' and 'dirname' const. Use
34 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
35 (last_source_file): Define. Now static.
36 (set_last_source_file, get_last_source_file): New functions.
37 * buildsym.h (last_source_file): Don't declare.
38 (start_symtab): Update.
39 (set_last_source_file, get_last_source_file): Declare.
40 * coffread.c (complete_symtab): Use set_last_source_file.
41 (coff_end_symtab): Likewise.
42 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
43 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
45 (process_one_symbol): Use get_last_source_file.
46 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
47 (psymtab_to_symtab_1): Use get_last_source_file.
48 * xcoffread.c (process_linenos): Use get_last_source_file.
49 (complete_symtab): Use set_last_source_file.
50 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
51 (scan_xcoff_symtab): Use set_last_source_file.
53 2013-01-21 Tom Tromey <tromey@redhat.com>
55 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
56 (symbol_set_names): Remove casts. Handle field const-ness.
58 2013-01-21 Tom Tromey <tromey@redhat.com>
60 * dwarf2read.c (new_symbol_full): Remove cast.
61 * symtab.c (symbol_set_demangled_name): Make 'name' const.
62 * symtab.h (symbol_set_demangled_name): Update.
64 2013-01-21 Tom Tromey <tromey@redhat.com>
66 * main.c (captured_main): Call bfd_init.
68 2013-01-21 Tom Tromey <tromey@redhat.com>
70 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
71 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
72 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
75 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
77 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
79 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
81 Fix gdb.fortran/common-block.exp crash in PIE mode.
82 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
84 * f-valprint.c (info_common_command_for_block): Expect
85 LOC_COMMON_BLOCK in gdb_assert.
86 * symtab.h (struct general_symbol_info): Update comment for the
88 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
89 (enum address_class): New member LOC_COMMON_BLOCK.
91 2013-01-18 David Blaikie <dblaikie@gmail.com>
93 * MAINTAINERS (Write After Approval): Add "David Blaikie".
95 2013-01-18 Tom Tromey <tromey@redhat.com>
98 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
101 2013-01-18 Yao Qi <yao@codesourcery.com>
103 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
104 (dbx_read_symtab): New declaration.
105 (dbx_psymtab_to_symtab): Delete.
106 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
107 Rename parameter PST to SELF. Exchanged two parameters.
108 (start_psymtab): Caller update.
109 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
110 (dwarf2_read_symtab): New declaration.
111 (dwarf2_psymtab_to_symtab): Delete.
112 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
113 Rename parameter PST to SELF. Exchanged two parameters.
114 (create_partial_symtab): Caller update.
115 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
116 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
117 Rename parameter PST to SELF. Exchanged two parameters.
118 (parse_partial_symbols, new_psymtab): Caller update.
119 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
121 * psymtab.c (psymtab_to_symtab): Caller update.
122 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
123 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
124 Rename parameter PST to SELF. Exchanged two parameters.
125 (xcoff_start_psymtab): Caller update.
127 2013-01-18 Yao Qi <yao@codesourcery.com>
129 * infrun.c (proceed): Rename local variable 'oneproc' to
132 2013-01-17 Doug Evans <dje@google.com>
134 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
135 (dw2_build_type_unit_groups): Delete. All uses updated.
137 * symtab.h (struct symbol_search): Add comment.
139 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
141 * symtab.c (compare_filenames_for_search): New comment for
144 2013-01-17 Tom Tromey <tromey@redhat.com>
146 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
148 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
150 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
151 initialize it by existing make_cleanup. Call new do_cleanups.
153 2013-01-17 Tom Tromey <tromey@redhat.com>
155 * cp-abi.c (cp_abi_completer): New function.
156 (_initialize_cp_abi): Set completer for "set cp-abi".
158 2013-01-17 Tom Tromey <tromey@redhat.com>
160 * mem-break.c: Remove obsolete comment.
161 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
163 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
165 * jit.c (jit_reader_load_command): Interpret the jit reader name
166 as an absolute path if it begins with a forward slash.
168 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
172 * jit.c (finalize_symtab): Ensure that only the global block has a
175 2013-01-17 Pedro Alves <palves@redhat.com>
177 * acinclude.m4: Include ../config/plugins.m4,
178 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
179 * Makefile.in (aclocal_m4_deps): Update.
180 * aclocal.m4: Renegerate.
182 2013-01-16 Doug Evans <dje@google.com>
184 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
186 2013-01-16 Pedro Alves <palves@redhat.com>
187 Tom Tromey <tromey@redhat.com>
190 * NEWS: Add "catch signal".
191 * breakpoint.c (base_breakpoint_ops): No longer static.
192 (bpstat_explains_signal): New function.
193 (init_catchpoint): No longer static.
194 (base_breakpoint_explains_signal): New function.
195 (base_breakpoint_ops): Initialize new field.
196 * breakpoint.h (enum bpstat_signal_value): New.
197 (struct breakpoint_ops) <explains_signal>: New field.
198 (bpstat_explains_signal): Remove macro, declare as function.
199 (base_breakpoint_ops, init_catchpoint): Declare.
200 * break-catch-sig.c: New file.
201 * inferior.h (signal_catch_update): Declare.
202 * infrun.c (signal_catch): New global.
203 (handle_syscall_event): Update for change to
204 bpstat_explains_signal.
205 (handle_inferior_event): Likewise. Always handle random signals
207 (signal_cache_update): Check signal_catch.
208 (signal_catch_update): New function.
209 (_initialize_infrun): Initialize signal_catch.
210 * Makefile.in (SFILES): Add break-catch-sig.c.
211 (COMMON_OBS): Add break-catch-sig.o.
213 2013-01-16 Tom Tromey <tromey@redhat.com>
215 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
216 (print_one_catch_solib, print_one_catch_syscall)
217 (print_one_catch_exec, print_one_exception_catchpoint): Emit
220 2013-01-16 Yao Qi <yao@codesourcery.com>
222 * printcmd.c (current_display_number): Make it static.
224 2013-01-16 Yao Qi <yao@codesourcery.com>
226 * infcmd.c (step_once): Don't check '!single_inst' as it was
229 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
231 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
233 2013-01-14 Tom Tromey <tromey@redhat.com>
235 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
237 * command.h (add_setshow_string_noescape_cmd): Update.
238 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
239 (complete_set_gnutarget): New function.
240 (_initialize_core): Set the "set gnutarget" completer.
242 2013-01-14 Tom Tromey <tromey@redhat.com>
245 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
246 (c_type_print_modifier): Likewise.
247 * dwarf2read.c (read_tag_restrict_type): New function.
248 (read_type_die_1): Handle DW_TAG_restrict_type.
249 * gdbtypes.c (make_restrict_type): New function.
250 (recursive_dump_type): Handle TYPE_RESTRICT.
251 * gdbtypes.h (enum type_flag_values): Renumber.
252 (enum type_instance_flag_value): Add
253 TYPE_INSTANCE_FLAG_RESTRICT.
254 (TYPE_RESTRICT): New macro.
255 (make_restrict_type): Declare.
257 2013-01-14 Tom Tromey <tromey@redhat.com>
260 * psymtab.c (struct psymtab_state): New.
261 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
263 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
264 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
266 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
267 Pedro Alves <palves@redhat.com>
271 * remote.c (remote_threads_info): Make a copy of the reply from
272 qfThreadInfo and use that instead of rs->buf.
274 2013-01-14 Yao Qi <yao@codesourcery.com>
276 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
277 (dbx_psymtab_to_symtab): Likewise.
278 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
279 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
280 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
282 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
284 * parse.c (parse_exp_in_context): New variable inner_chain. Call
285 make_cleanup_restore_current_language. Call set_language. Move
286 OLD_CHAIN and INNER_CHAIN cleanups.
287 * utils.c (do_restore_current_language)
288 (make_cleanup_restore_current_language): New functions.
289 * utils.h (make_cleanup_restore_current_language): New declaration.
291 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
293 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
296 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
297 non-existing files if FILENAME is already absolute.
299 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
301 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
302 fputs_filtered. Append trailing newline.
304 2013-01-11 Yao Qi <yao@codesourcery.com>
305 Stan Shebs <stan@codesourcery.com>
307 * psymtab.c (init_psymbol_list): Clarify the comment.
309 2013-01-11 Yao Qi <yao@codesourcery.com>
311 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
312 (update_dprintf_command_list): Assert that 'printf_line' is
313 non-null. Remove condition check.
315 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
318 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
320 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
322 * tui/tui-source.h (tui_source_is_displayed): Likewise.
324 2013-01-09 Anthony Green <green@moxielogic.com>
326 * cp-abi.c (cplus_print_vtable): Don't return value from void
328 * ada-lang.c (re_set_catch_assert): Ditto.
330 2013-01-09 Doug Evans <dje@google.com>
332 * symfile.h (quick_symbol_functions): Delete member
333 pre_expand_symtabs_matching. All uses removed.
334 * dwarf2read.c (dw2_lookup_symbol): Implement.
335 (dw2_do_expand_symtabs_matching): Delete.
336 (dw2_pre_expand_symtabs_matching): Delete.
337 (struct dw2_symtab_iterator): New type.
338 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
339 (dw2_expand_symtabs_for_function): Rewrite.
340 (dwarf2_gdb_index_functions): Update.
341 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
342 (psym_functions): Update.
344 2013-01-09 Tom Tromey <tromey@redhat.com>
346 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
347 * configure: Rebuild.
348 * configure.ac: Add somread.o to the build if BFD has SOM
350 * somread.c: Include som/aout.h, not syms.h.
351 (som_symtab_read): Use som_external_symbol_dictionary_record.
352 Unpack records manually.
353 (_initialize_somread): Declare.
355 2012-01-08 Mike Frysinger <vapier@gentoo.org>
357 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
358 Cast return_address to 64bits.
360 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
362 * printcmd.c: Remove define of function output_command.
363 * tracepoint.c: Remove extern of function output_command.
364 * valprint.h: (output_command): New extern.
366 2013-01-07 Tom Tromey <tromey@redhat.com>
368 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
370 (objc_language_defn): Use c_printchar, c_printstr,
373 2013-01-07 Tom Tromey <tromey@redhat.com>
377 * ada-valprint.c (printstr, print_field_values): Remove
379 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
381 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
383 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
384 * main.c (captured_main): Remove "epoch" argument.
385 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
386 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
387 * p-valprint.c (pascal_object_print_value_fields): Remove
389 * printcmd.c (print_command_1): Remove 'inspect' argument.
390 (print_command, call_command): Update.
391 (inspect_command): Remove.
392 (_initialize_printcmd): Make "inspect" an alias for "print".
393 * top.c (epoch_interface): Remove.
394 * top.h (epoch_interface): Remove.
395 * valprint.c (user_print_options): Update.
396 (print_converted_chars_to_obstack): Remove "inspect_it" code.
397 * valprint.h (struct value_print_options) <inspect_it>: Remove
400 2013-01-04 Tom Tromey <tromey@redhat.com>
402 * valprint.h (read_string): Add 'extern'.
404 2013-01-07 Joel Brobecker <brobecker@adacore.com>
406 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
407 used to decide whether to define darwin_read_dyld_info or not.
409 2013-01-03 Pierre Muller <muller@sourceware.org>
411 * main.c (relocate_gdb_directory): Avoid calling stat function
414 2013-01-03 Yao Qi <yao@codesourcery.com>
416 * psymtab.c (fixup_psymbol_section): Update declaration.
417 (fixup_psymbol_section): Remove code returning value.
419 2013-01-03 Yao Qi <yao@codesourcery.com>
421 * symtab.h: Remove some out of date comments.
422 (enum exception_event_kind): Move it ...
423 * breakpoint.c: ... here.
425 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
428 * darwin-nat.c (darwin_read_dyld_info): Only build if
429 TASK_DYLD_INFO_COUNT is defined.
430 (darwin_xfer_partial): Call darwin_read_dyld_info only if
431 TASK_DYLD_INFO_COUNT is defined.
433 2013-01-02 Tom Tromey <tromey@redhat.com>
435 * symfile.h (struct ecoff_debug_hack): Remove.
436 * objfiles.c: Don't include mdebugread.h.
438 2013-01-02 Tom Tromey <tromey@redhat.com>
440 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
441 * configure.ac: Check for Mach-O support in BFD. Update
443 * configure: Rebuild.
445 2013-01-02 Tom Tromey <tromey@redhat.com>
447 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
448 * configure.ac: Use GDB_AC_CHECK_BFD.
449 * configure: Rebuild.
451 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
453 * MAINTAINERS: Update my email.
455 2013-01-01 Joel Brobecker <brobecker@adacore.com>
457 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
459 2013-01-01 Joel Brobecker <brobecker@adacore.com>
461 * rs6000-nat.c (bss_data_overlap): New function.
462 (vmap_symtab): Use it to adjust the .bss section's offset.
464 2013-01-01 Joel Brobecker <brobecker@adacore.com>
466 Update year range in copyright notice of all files.
468 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
470 * top.c (print_gdb_version): Update copyright year.
472 For older changes see ChangeLog-2012.
478 version-control: never