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