1 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
3 * python/lib/gdb/commands/explore.py
4 (CompoundExplorer.explore_expr): Correct the name of a method
6 (ExploreTypeCommand.invoke): Add a missing 'return'.
8 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
10 * breakpoint.c (print_one_breakpoint_location): Add MI
11 field 'thread-groups' when printing a breakpoint.
12 (output_thread_groups): New function.
14 2013-01-21 Tom Tromey <tromey@redhat.com>
16 * gdb_obstack.h (obconcat): Move declaration here, from...
17 * symfile.h (obconcat): ... here.
18 * gdb_obstack.c: New file.
19 (obconcat): Move from...
20 * symfile.c (obconcat): ... here.
21 * Makefile.in (SFILES): Add gdb_obstack.c.
22 (COMMON_OBS): Add gdb_obstack.o.
24 2013-01-21 Tom Tromey <tromey@redhat.com>
26 * symfile.h (obsavestring): Don't declare.
27 * symfile.c (obsavestring): Remove.
28 * ada-exp.y: Use obstack_copy0, not obsavestring.
29 * ada-lang.c: Use obstack_copy0, not obsavestring.
30 * coffread.c: Use obstack_copy0, not obsavestring.
31 * cp-namespace.c: Use obstack_copy0, not obsavestring.
32 * dbxread.c: Use obstack_copy0, not obsavestring.
33 * dwarf2read.c: Use obstack_copy0, not obsavestring.
34 * jit.c: Use obstack_copy0, not obsavestring.
35 * mdebugread.c: Use obstack_copy0, not obsavestring.
36 * psymtab.c: Use obstack_copy0, not obsavestring.
37 * stabsread.c: Use obstack_copy0, not obsavestring.
38 * xcoffread.c: Use obstack_copy0, not obsavestring.
40 2013-01-21 Tom Tromey <tromey@redhat.com>
42 * dwarf2read.c (fixup_go_packaging): Save package name
44 * gdbtypes.c (init_type): Don't copy name.
46 2013-01-21 Tom Tromey <tromey@redhat.com>
48 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
50 (struct attribute) <u.str>: Now const.
51 (struct fnfieldlist) <name>: Now const.
52 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
53 (partial_die_parent_scope): Make return type const.
54 (partial_die_full_name, add_partial_symbol): Update.
55 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
57 (find_file_and_directory): Make 'name' and 'comp_dir' const.
58 (read_file_scope, read_func_scope, dwarf2_add_field)
59 (dwarf2_add_member_fn, read_structure_type)
60 (process_enumeration_scope, read_array_type, read_module_type)
61 (read_base_type, read_subrange_type): Update.
62 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
63 (new_symbol_full, guess_full_die_structure_name): Update.
64 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
65 (dwarf2_name): Return const type.
66 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
69 2013-01-21 Tom Tromey <tromey@redhat.com>
71 * gdbtypes.c (init_type): Make 'name' const.
72 * gdbtypes.h (init_type): Update.
74 2013-01-21 Tom Tromey <tromey@redhat.com>
76 * buildsym.c (patch_subfile_names): Use set_last_source_file.
77 (start_symtab): Make 'name' and 'dirname' const. Use
79 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
80 (last_source_file): Define. Now static.
81 (set_last_source_file, get_last_source_file): New functions.
82 * buildsym.h (last_source_file): Don't declare.
83 (start_symtab): Update.
84 (set_last_source_file, get_last_source_file): Declare.
85 * coffread.c (complete_symtab): Use set_last_source_file.
86 (coff_end_symtab): Likewise.
87 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
88 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
90 (process_one_symbol): Use get_last_source_file.
91 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
92 (psymtab_to_symtab_1): Use get_last_source_file.
93 * xcoffread.c (process_linenos): Use get_last_source_file.
94 (complete_symtab): Use set_last_source_file.
95 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
96 (scan_xcoff_symtab): Use set_last_source_file.
98 2013-01-21 Tom Tromey <tromey@redhat.com>
100 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
101 (symbol_set_names): Remove casts. Handle field const-ness.
103 2013-01-21 Tom Tromey <tromey@redhat.com>
105 * dwarf2read.c (new_symbol_full): Remove cast.
106 * symtab.c (symbol_set_demangled_name): Make 'name' const.
107 * symtab.h (symbol_set_demangled_name): Update.
109 2013-01-21 Tom Tromey <tromey@redhat.com>
111 * main.c (captured_main): Call bfd_init.
113 2013-01-21 Tom Tromey <tromey@redhat.com>
115 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
116 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
117 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
120 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
122 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
124 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
126 Fix gdb.fortran/common-block.exp crash in PIE mode.
127 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
129 * f-valprint.c (info_common_command_for_block): Expect
130 LOC_COMMON_BLOCK in gdb_assert.
131 * symtab.h (struct general_symbol_info): Update comment for the
133 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
134 (enum address_class): New member LOC_COMMON_BLOCK.
136 2013-01-18 David Blaikie <dblaikie@gmail.com>
138 * MAINTAINERS (Write After Approval): Add "David Blaikie".
140 2013-01-18 Tom Tromey <tromey@redhat.com>
143 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
146 2013-01-18 Yao Qi <yao@codesourcery.com>
148 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
149 (dbx_read_symtab): New declaration.
150 (dbx_psymtab_to_symtab): Delete.
151 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
152 Rename parameter PST to SELF. Exchanged two parameters.
153 (start_psymtab): Caller update.
154 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
155 (dwarf2_read_symtab): New declaration.
156 (dwarf2_psymtab_to_symtab): Delete.
157 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
158 Rename parameter PST to SELF. Exchanged two parameters.
159 (create_partial_symtab): Caller update.
160 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
161 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
162 Rename parameter PST to SELF. Exchanged two parameters.
163 (parse_partial_symbols, new_psymtab): Caller update.
164 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
166 * psymtab.c (psymtab_to_symtab): Caller update.
167 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
168 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
169 Rename parameter PST to SELF. Exchanged two parameters.
170 (xcoff_start_psymtab): Caller update.
172 2013-01-18 Yao Qi <yao@codesourcery.com>
174 * infrun.c (proceed): Rename local variable 'oneproc' to
177 2013-01-17 Doug Evans <dje@google.com>
179 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
180 (dw2_build_type_unit_groups): Delete. All uses updated.
182 * symtab.h (struct symbol_search): Add comment.
184 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
186 * symtab.c (compare_filenames_for_search): New comment for
189 2013-01-17 Tom Tromey <tromey@redhat.com>
191 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
193 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
195 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
196 initialize it by existing make_cleanup. Call new do_cleanups.
198 2013-01-17 Tom Tromey <tromey@redhat.com>
200 * cp-abi.c (cp_abi_completer): New function.
201 (_initialize_cp_abi): Set completer for "set cp-abi".
203 2013-01-17 Tom Tromey <tromey@redhat.com>
205 * mem-break.c: Remove obsolete comment.
206 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
208 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
210 * jit.c (jit_reader_load_command): Interpret the jit reader name
211 as an absolute path if it begins with a forward slash.
213 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
217 * jit.c (finalize_symtab): Ensure that only the global block has a
220 2013-01-17 Pedro Alves <palves@redhat.com>
222 * acinclude.m4: Include ../config/plugins.m4,
223 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
224 * Makefile.in (aclocal_m4_deps): Update.
225 * aclocal.m4: Renegerate.
227 2013-01-16 Doug Evans <dje@google.com>
229 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
231 2013-01-16 Pedro Alves <palves@redhat.com>
232 Tom Tromey <tromey@redhat.com>
235 * NEWS: Add "catch signal".
236 * breakpoint.c (base_breakpoint_ops): No longer static.
237 (bpstat_explains_signal): New function.
238 (init_catchpoint): No longer static.
239 (base_breakpoint_explains_signal): New function.
240 (base_breakpoint_ops): Initialize new field.
241 * breakpoint.h (enum bpstat_signal_value): New.
242 (struct breakpoint_ops) <explains_signal>: New field.
243 (bpstat_explains_signal): Remove macro, declare as function.
244 (base_breakpoint_ops, init_catchpoint): Declare.
245 * break-catch-sig.c: New file.
246 * inferior.h (signal_catch_update): Declare.
247 * infrun.c (signal_catch): New global.
248 (handle_syscall_event): Update for change to
249 bpstat_explains_signal.
250 (handle_inferior_event): Likewise. Always handle random signals
252 (signal_cache_update): Check signal_catch.
253 (signal_catch_update): New function.
254 (_initialize_infrun): Initialize signal_catch.
255 * Makefile.in (SFILES): Add break-catch-sig.c.
256 (COMMON_OBS): Add break-catch-sig.o.
258 2013-01-16 Tom Tromey <tromey@redhat.com>
260 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
261 (print_one_catch_solib, print_one_catch_syscall)
262 (print_one_catch_exec, print_one_exception_catchpoint): Emit
265 2013-01-16 Yao Qi <yao@codesourcery.com>
267 * printcmd.c (current_display_number): Make it static.
269 2013-01-16 Yao Qi <yao@codesourcery.com>
271 * infcmd.c (step_once): Don't check '!single_inst' as it was
274 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
276 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
278 2013-01-14 Tom Tromey <tromey@redhat.com>
280 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
282 * command.h (add_setshow_string_noescape_cmd): Update.
283 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
284 (complete_set_gnutarget): New function.
285 (_initialize_core): Set the "set gnutarget" completer.
287 2013-01-14 Tom Tromey <tromey@redhat.com>
290 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
291 (c_type_print_modifier): Likewise.
292 * dwarf2read.c (read_tag_restrict_type): New function.
293 (read_type_die_1): Handle DW_TAG_restrict_type.
294 * gdbtypes.c (make_restrict_type): New function.
295 (recursive_dump_type): Handle TYPE_RESTRICT.
296 * gdbtypes.h (enum type_flag_values): Renumber.
297 (enum type_instance_flag_value): Add
298 TYPE_INSTANCE_FLAG_RESTRICT.
299 (TYPE_RESTRICT): New macro.
300 (make_restrict_type): Declare.
302 2013-01-14 Tom Tromey <tromey@redhat.com>
305 * psymtab.c (struct psymtab_state): New.
306 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
308 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
309 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
311 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
312 Pedro Alves <palves@redhat.com>
316 * remote.c (remote_threads_info): Make a copy of the reply from
317 qfThreadInfo and use that instead of rs->buf.
319 2013-01-14 Yao Qi <yao@codesourcery.com>
321 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
322 (dbx_psymtab_to_symtab): Likewise.
323 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
324 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
325 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
327 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * parse.c (parse_exp_in_context): New variable inner_chain. Call
330 make_cleanup_restore_current_language. Call set_language. Move
331 OLD_CHAIN and INNER_CHAIN cleanups.
332 * utils.c (do_restore_current_language)
333 (make_cleanup_restore_current_language): New functions.
334 * utils.h (make_cleanup_restore_current_language): New declaration.
336 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
338 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
341 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
342 non-existing files if FILENAME is already absolute.
344 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
346 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
347 fputs_filtered. Append trailing newline.
349 2013-01-11 Yao Qi <yao@codesourcery.com>
350 Stan Shebs <stan@codesourcery.com>
352 * psymtab.c (init_psymbol_list): Clarify the comment.
354 2013-01-11 Yao Qi <yao@codesourcery.com>
356 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
357 (update_dprintf_command_list): Assert that 'printf_line' is
358 non-null. Remove condition check.
360 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
363 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
365 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
367 * tui/tui-source.h (tui_source_is_displayed): Likewise.
369 2013-01-09 Anthony Green <green@moxielogic.com>
371 * cp-abi.c (cplus_print_vtable): Don't return value from void
373 * ada-lang.c (re_set_catch_assert): Ditto.
375 2013-01-09 Doug Evans <dje@google.com>
377 * symfile.h (quick_symbol_functions): Delete member
378 pre_expand_symtabs_matching. All uses removed.
379 * dwarf2read.c (dw2_lookup_symbol): Implement.
380 (dw2_do_expand_symtabs_matching): Delete.
381 (dw2_pre_expand_symtabs_matching): Delete.
382 (struct dw2_symtab_iterator): New type.
383 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
384 (dw2_expand_symtabs_for_function): Rewrite.
385 (dwarf2_gdb_index_functions): Update.
386 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
387 (psym_functions): Update.
389 2013-01-09 Tom Tromey <tromey@redhat.com>
391 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
392 * configure: Rebuild.
393 * configure.ac: Add somread.o to the build if BFD has SOM
395 * somread.c: Include som/aout.h, not syms.h.
396 (som_symtab_read): Use som_external_symbol_dictionary_record.
397 Unpack records manually.
398 (_initialize_somread): Declare.
400 2012-01-08 Mike Frysinger <vapier@gentoo.org>
402 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
403 Cast return_address to 64bits.
405 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
407 * printcmd.c: Remove define of function output_command.
408 * tracepoint.c: Remove extern of function output_command.
409 * valprint.h: (output_command): New extern.
411 2013-01-07 Tom Tromey <tromey@redhat.com>
413 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
415 (objc_language_defn): Use c_printchar, c_printstr,
418 2013-01-07 Tom Tromey <tromey@redhat.com>
422 * ada-valprint.c (printstr, print_field_values): Remove
424 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
426 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
428 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
429 * main.c (captured_main): Remove "epoch" argument.
430 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
431 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
432 * p-valprint.c (pascal_object_print_value_fields): Remove
434 * printcmd.c (print_command_1): Remove 'inspect' argument.
435 (print_command, call_command): Update.
436 (inspect_command): Remove.
437 (_initialize_printcmd): Make "inspect" an alias for "print".
438 * top.c (epoch_interface): Remove.
439 * top.h (epoch_interface): Remove.
440 * valprint.c (user_print_options): Update.
441 (print_converted_chars_to_obstack): Remove "inspect_it" code.
442 * valprint.h (struct value_print_options) <inspect_it>: Remove
445 2013-01-04 Tom Tromey <tromey@redhat.com>
447 * valprint.h (read_string): Add 'extern'.
449 2013-01-07 Joel Brobecker <brobecker@adacore.com>
451 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
452 used to decide whether to define darwin_read_dyld_info or not.
454 2013-01-03 Pierre Muller <muller@sourceware.org>
456 * main.c (relocate_gdb_directory): Avoid calling stat function
459 2013-01-03 Yao Qi <yao@codesourcery.com>
461 * psymtab.c (fixup_psymbol_section): Update declaration.
462 (fixup_psymbol_section): Remove code returning value.
464 2013-01-03 Yao Qi <yao@codesourcery.com>
466 * symtab.h: Remove some out of date comments.
467 (enum exception_event_kind): Move it ...
468 * breakpoint.c: ... here.
470 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
473 * darwin-nat.c (darwin_read_dyld_info): Only build if
474 TASK_DYLD_INFO_COUNT is defined.
475 (darwin_xfer_partial): Call darwin_read_dyld_info only if
476 TASK_DYLD_INFO_COUNT is defined.
478 2013-01-02 Tom Tromey <tromey@redhat.com>
480 * symfile.h (struct ecoff_debug_hack): Remove.
481 * objfiles.c: Don't include mdebugread.h.
483 2013-01-02 Tom Tromey <tromey@redhat.com>
485 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
486 * configure.ac: Check for Mach-O support in BFD. Update
488 * configure: Rebuild.
490 2013-01-02 Tom Tromey <tromey@redhat.com>
492 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
493 * configure.ac: Use GDB_AC_CHECK_BFD.
494 * configure: Rebuild.
496 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
498 * MAINTAINERS: Update my email.
500 2013-01-01 Joel Brobecker <brobecker@adacore.com>
502 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
504 2013-01-01 Joel Brobecker <brobecker@adacore.com>
506 * rs6000-nat.c (bss_data_overlap): New function.
507 (vmap_symtab): Use it to adjust the .bss section's offset.
509 2013-01-01 Joel Brobecker <brobecker@adacore.com>
511 Update year range in copyright notice of all files.
513 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
515 * top.c (print_gdb_version): Update copyright year.
517 For older changes see ChangeLog-2012.
523 version-control: never