1 2013-01-22 Pedro Alves <palves@redhat.com>
3 * annotate.c: Include "inferior.h".
4 (frames_invalid_emitted)
5 (breakpoints_invalid_emitted): New globals.
6 (async_background_execution_p): New function.
7 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
8 emitting the annotation if it has already been emitted.
9 (annotate_display_prompt): New function.
10 * annotate.h (annotate_display_prompt): New declaration.
11 * event-top.c: Include annotate.h.
12 (display_gdb_prompt): Call annotate_display_prompt.
14 2013-01-22 Pedro Alves <palves@redhat.com>
16 * annotate.c (ignore_count_changed): Delete.
17 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
18 (annotate_ignore_count_change): Delete.
19 (annotate_stopped): Don't emit a delayed breakpoints-changed
21 * annotate.h (annotate_ignore_count_change): Delete.
22 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
23 annotate_ignore_count_change.
25 2013-01-22 Tom Tromey <tromey@redhat.com>
27 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
28 require_rvalue for a register location.
30 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
32 * breakpoint.c (print_one_breakpoint_location): Add MI
33 field 'thread-groups' when printing a breakpoint.
34 (output_thread_groups): New function.
36 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
38 * python/lib/gdb/commands/explore.py
39 (CompoundExplorer.explore_expr): Correct the name of a method
41 (ExploreTypeCommand.invoke): Add a missing 'return'.
43 2013-01-21 Tom Tromey <tromey@redhat.com>
45 * gdb_obstack.h (obconcat): Move declaration here, from...
46 * symfile.h (obconcat): ... here.
47 * gdb_obstack.c: New file.
48 (obconcat): Move from...
49 * symfile.c (obconcat): ... here.
50 * Makefile.in (SFILES): Add gdb_obstack.c.
51 (COMMON_OBS): Add gdb_obstack.o.
53 2013-01-21 Tom Tromey <tromey@redhat.com>
55 * symfile.h (obsavestring): Don't declare.
56 * symfile.c (obsavestring): Remove.
57 * ada-exp.y: Use obstack_copy0, not obsavestring.
58 * ada-lang.c: Use obstack_copy0, not obsavestring.
59 * coffread.c: Use obstack_copy0, not obsavestring.
60 * cp-namespace.c: Use obstack_copy0, not obsavestring.
61 * dbxread.c: Use obstack_copy0, not obsavestring.
62 * dwarf2read.c: Use obstack_copy0, not obsavestring.
63 * jit.c: Use obstack_copy0, not obsavestring.
64 * mdebugread.c: Use obstack_copy0, not obsavestring.
65 * psymtab.c: Use obstack_copy0, not obsavestring.
66 * stabsread.c: Use obstack_copy0, not obsavestring.
67 * xcoffread.c: Use obstack_copy0, not obsavestring.
69 2013-01-21 Tom Tromey <tromey@redhat.com>
71 * dwarf2read.c (fixup_go_packaging): Save package name
73 * gdbtypes.c (init_type): Don't copy name.
75 2013-01-21 Tom Tromey <tromey@redhat.com>
77 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
79 (struct attribute) <u.str>: Now const.
80 (struct fnfieldlist) <name>: Now const.
81 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
82 (partial_die_parent_scope): Make return type const.
83 (partial_die_full_name, add_partial_symbol): Update.
84 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
86 (find_file_and_directory): Make 'name' and 'comp_dir' const.
87 (read_file_scope, read_func_scope, dwarf2_add_field)
88 (dwarf2_add_member_fn, read_structure_type)
89 (process_enumeration_scope, read_array_type, read_module_type)
90 (read_base_type, read_subrange_type): Update.
91 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
92 (new_symbol_full, guess_full_die_structure_name): Update.
93 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
94 (dwarf2_name): Return const type.
95 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
98 2013-01-21 Tom Tromey <tromey@redhat.com>
100 * gdbtypes.c (init_type): Make 'name' const.
101 * gdbtypes.h (init_type): Update.
103 2013-01-21 Tom Tromey <tromey@redhat.com>
105 * buildsym.c (patch_subfile_names): Use set_last_source_file.
106 (start_symtab): Make 'name' and 'dirname' const. Use
107 set_last_source_file.
108 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
109 (last_source_file): Define. Now static.
110 (set_last_source_file, get_last_source_file): New functions.
111 * buildsym.h (last_source_file): Don't declare.
112 (start_symtab): Update.
113 (set_last_source_file, get_last_source_file): Declare.
114 * coffread.c (complete_symtab): Use set_last_source_file.
115 (coff_end_symtab): Likewise.
116 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
117 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
118 set_last_source_file.
119 (process_one_symbol): Use get_last_source_file.
120 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
121 (psymtab_to_symtab_1): Use get_last_source_file.
122 * xcoffread.c (process_linenos): Use get_last_source_file.
123 (complete_symtab): Use set_last_source_file.
124 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
125 (scan_xcoff_symtab): Use set_last_source_file.
127 2013-01-21 Tom Tromey <tromey@redhat.com>
129 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
130 (symbol_set_names): Remove casts. Handle field const-ness.
132 2013-01-21 Tom Tromey <tromey@redhat.com>
134 * dwarf2read.c (new_symbol_full): Remove cast.
135 * symtab.c (symbol_set_demangled_name): Make 'name' const.
136 * symtab.h (symbol_set_demangled_name): Update.
138 2013-01-21 Tom Tromey <tromey@redhat.com>
140 * main.c (captured_main): Call bfd_init.
142 2013-01-21 Tom Tromey <tromey@redhat.com>
144 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
145 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
146 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
149 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
151 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
153 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
155 Fix gdb.fortran/common-block.exp crash in PIE mode.
156 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
158 * f-valprint.c (info_common_command_for_block): Expect
159 LOC_COMMON_BLOCK in gdb_assert.
160 * symtab.h (struct general_symbol_info): Update comment for the
162 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
163 (enum address_class): New member LOC_COMMON_BLOCK.
165 2013-01-18 David Blaikie <dblaikie@gmail.com>
167 * MAINTAINERS (Write After Approval): Add "David Blaikie".
169 2013-01-18 Tom Tromey <tromey@redhat.com>
172 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
175 2013-01-18 Yao Qi <yao@codesourcery.com>
177 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
178 (dbx_read_symtab): New declaration.
179 (dbx_psymtab_to_symtab): Delete.
180 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
181 Rename parameter PST to SELF. Exchanged two parameters.
182 (start_psymtab): Caller update.
183 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
184 (dwarf2_read_symtab): New declaration.
185 (dwarf2_psymtab_to_symtab): Delete.
186 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
187 Rename parameter PST to SELF. Exchanged two parameters.
188 (create_partial_symtab): Caller update.
189 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
190 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
191 Rename parameter PST to SELF. Exchanged two parameters.
192 (parse_partial_symbols, new_psymtab): Caller update.
193 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
195 * psymtab.c (psymtab_to_symtab): Caller update.
196 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
197 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
198 Rename parameter PST to SELF. Exchanged two parameters.
199 (xcoff_start_psymtab): Caller update.
201 2013-01-18 Yao Qi <yao@codesourcery.com>
203 * infrun.c (proceed): Rename local variable 'oneproc' to
206 2013-01-17 Doug Evans <dje@google.com>
208 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
209 (dw2_build_type_unit_groups): Delete. All uses updated.
211 * symtab.h (struct symbol_search): Add comment.
213 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
215 * symtab.c (compare_filenames_for_search): New comment for
218 2013-01-17 Tom Tromey <tromey@redhat.com>
220 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
222 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
224 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
225 initialize it by existing make_cleanup. Call new do_cleanups.
227 2013-01-17 Tom Tromey <tromey@redhat.com>
229 * cp-abi.c (cp_abi_completer): New function.
230 (_initialize_cp_abi): Set completer for "set cp-abi".
232 2013-01-17 Tom Tromey <tromey@redhat.com>
234 * mem-break.c: Remove obsolete comment.
235 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
237 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
239 * jit.c (jit_reader_load_command): Interpret the jit reader name
240 as an absolute path if it begins with a forward slash.
242 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
246 * jit.c (finalize_symtab): Ensure that only the global block has a
249 2013-01-17 Pedro Alves <palves@redhat.com>
251 * acinclude.m4: Include ../config/plugins.m4,
252 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
253 * Makefile.in (aclocal_m4_deps): Update.
254 * aclocal.m4: Renegerate.
256 2013-01-16 Doug Evans <dje@google.com>
258 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
260 2013-01-16 Pedro Alves <palves@redhat.com>
261 Tom Tromey <tromey@redhat.com>
264 * NEWS: Add "catch signal".
265 * breakpoint.c (base_breakpoint_ops): No longer static.
266 (bpstat_explains_signal): New function.
267 (init_catchpoint): No longer static.
268 (base_breakpoint_explains_signal): New function.
269 (base_breakpoint_ops): Initialize new field.
270 * breakpoint.h (enum bpstat_signal_value): New.
271 (struct breakpoint_ops) <explains_signal>: New field.
272 (bpstat_explains_signal): Remove macro, declare as function.
273 (base_breakpoint_ops, init_catchpoint): Declare.
274 * break-catch-sig.c: New file.
275 * inferior.h (signal_catch_update): Declare.
276 * infrun.c (signal_catch): New global.
277 (handle_syscall_event): Update for change to
278 bpstat_explains_signal.
279 (handle_inferior_event): Likewise. Always handle random signals
281 (signal_cache_update): Check signal_catch.
282 (signal_catch_update): New function.
283 (_initialize_infrun): Initialize signal_catch.
284 * Makefile.in (SFILES): Add break-catch-sig.c.
285 (COMMON_OBS): Add break-catch-sig.o.
287 2013-01-16 Tom Tromey <tromey@redhat.com>
289 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
290 (print_one_catch_solib, print_one_catch_syscall)
291 (print_one_catch_exec, print_one_exception_catchpoint): Emit
294 2013-01-16 Yao Qi <yao@codesourcery.com>
296 * printcmd.c (current_display_number): Make it static.
298 2013-01-16 Yao Qi <yao@codesourcery.com>
300 * infcmd.c (step_once): Don't check '!single_inst' as it was
303 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
305 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
307 2013-01-14 Tom Tromey <tromey@redhat.com>
309 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
311 * command.h (add_setshow_string_noescape_cmd): Update.
312 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
313 (complete_set_gnutarget): New function.
314 (_initialize_core): Set the "set gnutarget" completer.
316 2013-01-14 Tom Tromey <tromey@redhat.com>
319 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
320 (c_type_print_modifier): Likewise.
321 * dwarf2read.c (read_tag_restrict_type): New function.
322 (read_type_die_1): Handle DW_TAG_restrict_type.
323 * gdbtypes.c (make_restrict_type): New function.
324 (recursive_dump_type): Handle TYPE_RESTRICT.
325 * gdbtypes.h (enum type_flag_values): Renumber.
326 (enum type_instance_flag_value): Add
327 TYPE_INSTANCE_FLAG_RESTRICT.
328 (TYPE_RESTRICT): New macro.
329 (make_restrict_type): Declare.
331 2013-01-14 Tom Tromey <tromey@redhat.com>
334 * psymtab.c (struct psymtab_state): New.
335 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
337 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
338 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
340 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
341 Pedro Alves <palves@redhat.com>
345 * remote.c (remote_threads_info): Make a copy of the reply from
346 qfThreadInfo and use that instead of rs->buf.
348 2013-01-14 Yao Qi <yao@codesourcery.com>
350 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
351 (dbx_psymtab_to_symtab): Likewise.
352 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
353 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
354 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
356 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
358 * parse.c (parse_exp_in_context): New variable inner_chain. Call
359 make_cleanup_restore_current_language. Call set_language. Move
360 OLD_CHAIN and INNER_CHAIN cleanups.
361 * utils.c (do_restore_current_language)
362 (make_cleanup_restore_current_language): New functions.
363 * utils.h (make_cleanup_restore_current_language): New declaration.
365 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
367 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
370 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
371 non-existing files if FILENAME is already absolute.
373 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
375 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
376 fputs_filtered. Append trailing newline.
378 2013-01-11 Yao Qi <yao@codesourcery.com>
379 Stan Shebs <stan@codesourcery.com>
381 * psymtab.c (init_psymbol_list): Clarify the comment.
383 2013-01-11 Yao Qi <yao@codesourcery.com>
385 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
386 (update_dprintf_command_list): Assert that 'printf_line' is
387 non-null. Remove condition check.
389 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
392 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
394 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
396 * tui/tui-source.h (tui_source_is_displayed): Likewise.
398 2013-01-09 Anthony Green <green@moxielogic.com>
400 * cp-abi.c (cplus_print_vtable): Don't return value from void
402 * ada-lang.c (re_set_catch_assert): Ditto.
404 2013-01-09 Doug Evans <dje@google.com>
406 * symfile.h (quick_symbol_functions): Delete member
407 pre_expand_symtabs_matching. All uses removed.
408 * dwarf2read.c (dw2_lookup_symbol): Implement.
409 (dw2_do_expand_symtabs_matching): Delete.
410 (dw2_pre_expand_symtabs_matching): Delete.
411 (struct dw2_symtab_iterator): New type.
412 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
413 (dw2_expand_symtabs_for_function): Rewrite.
414 (dwarf2_gdb_index_functions): Update.
415 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
416 (psym_functions): Update.
418 2013-01-09 Tom Tromey <tromey@redhat.com>
420 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
421 * configure: Rebuild.
422 * configure.ac: Add somread.o to the build if BFD has SOM
424 * somread.c: Include som/aout.h, not syms.h.
425 (som_symtab_read): Use som_external_symbol_dictionary_record.
426 Unpack records manually.
427 (_initialize_somread): Declare.
429 2012-01-08 Mike Frysinger <vapier@gentoo.org>
431 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
432 Cast return_address to 64bits.
434 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
436 * printcmd.c: Remove define of function output_command.
437 * tracepoint.c: Remove extern of function output_command.
438 * valprint.h: (output_command): New extern.
440 2013-01-07 Tom Tromey <tromey@redhat.com>
442 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
444 (objc_language_defn): Use c_printchar, c_printstr,
447 2013-01-07 Tom Tromey <tromey@redhat.com>
451 * ada-valprint.c (printstr, print_field_values): Remove
453 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
455 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
457 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
458 * main.c (captured_main): Remove "epoch" argument.
459 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
460 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
461 * p-valprint.c (pascal_object_print_value_fields): Remove
463 * printcmd.c (print_command_1): Remove 'inspect' argument.
464 (print_command, call_command): Update.
465 (inspect_command): Remove.
466 (_initialize_printcmd): Make "inspect" an alias for "print".
467 * top.c (epoch_interface): Remove.
468 * top.h (epoch_interface): Remove.
469 * valprint.c (user_print_options): Update.
470 (print_converted_chars_to_obstack): Remove "inspect_it" code.
471 * valprint.h (struct value_print_options) <inspect_it>: Remove
474 2013-01-04 Tom Tromey <tromey@redhat.com>
476 * valprint.h (read_string): Add 'extern'.
478 2013-01-07 Joel Brobecker <brobecker@adacore.com>
480 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
481 used to decide whether to define darwin_read_dyld_info or not.
483 2013-01-03 Pierre Muller <muller@sourceware.org>
485 * main.c (relocate_gdb_directory): Avoid calling stat function
488 2013-01-03 Yao Qi <yao@codesourcery.com>
490 * psymtab.c (fixup_psymbol_section): Update declaration.
491 (fixup_psymbol_section): Remove code returning value.
493 2013-01-03 Yao Qi <yao@codesourcery.com>
495 * symtab.h: Remove some out of date comments.
496 (enum exception_event_kind): Move it ...
497 * breakpoint.c: ... here.
499 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
502 * darwin-nat.c (darwin_read_dyld_info): Only build if
503 TASK_DYLD_INFO_COUNT is defined.
504 (darwin_xfer_partial): Call darwin_read_dyld_info only if
505 TASK_DYLD_INFO_COUNT is defined.
507 2013-01-02 Tom Tromey <tromey@redhat.com>
509 * symfile.h (struct ecoff_debug_hack): Remove.
510 * objfiles.c: Don't include mdebugread.h.
512 2013-01-02 Tom Tromey <tromey@redhat.com>
514 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
515 * configure.ac: Check for Mach-O support in BFD. Update
517 * configure: Rebuild.
519 2013-01-02 Tom Tromey <tromey@redhat.com>
521 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
522 * configure.ac: Use GDB_AC_CHECK_BFD.
523 * configure: Rebuild.
525 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
527 * MAINTAINERS: Update my email.
529 2013-01-01 Joel Brobecker <brobecker@adacore.com>
531 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
533 2013-01-01 Joel Brobecker <brobecker@adacore.com>
535 * rs6000-nat.c (bss_data_overlap): New function.
536 (vmap_symtab): Use it to adjust the .bss section's offset.
538 2013-01-01 Joel Brobecker <brobecker@adacore.com>
540 Update year range in copyright notice of all files.
542 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
544 * top.c (print_gdb_version): Update copyright year.
546 For older changes see ChangeLog-2012.
552 version-control: never