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