* dwarf2read.c (struct partial_die_info) <name, scope>: Now
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-01-21  Tom Tromey  <tromey@redhat.com>
2
3         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
4         const.
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
11         'name' const.
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'
22         const.
23
24 2013-01-21  Tom Tromey  <tromey@redhat.com>
25
26         * gdbtypes.c (init_type): Make 'name' const.
27         * gdbtypes.h (init_type): Update.
28
29 2013-01-21  Tom Tromey  <tromey@redhat.com>
30
31         * buildsym.c (patch_subfile_names): Use set_last_source_file.
32         (start_symtab): Make 'name' and 'dirname' const.  Use
33         set_last_source_file.
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
44         set_last_source_file.
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.
52
53 2013-01-21  Tom Tromey  <tromey@redhat.com>
54
55         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
56         (symbol_set_names): Remove casts.  Handle field const-ness.
57
58 2013-01-21  Tom Tromey  <tromey@redhat.com>
59
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.
63
64 2013-01-21  Tom Tromey  <tromey@redhat.com>
65
66         * main.c (captured_main): Call bfd_init.
67
68 2013-01-21  Tom Tromey  <tromey@redhat.com>
69
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.
73         * NEWS: Update.
74
75 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
76
77         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
78
79 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
80
81         Fix gdb.fortran/common-block.exp crash in PIE mode.
82         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
83         LOC_COMMON_BLOCK.
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
87         common_block member.
88         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
89         (enum address_class): New member LOC_COMMON_BLOCK.
90
91 2013-01-18  David Blaikie  <dblaikie@gmail.com>
92
93         * MAINTAINERS (Write After Approval): Add "David Blaikie".
94
95 2013-01-18  Tom Tromey  <tromey@redhat.com>
96
97         PR c++/14999:
98         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
99         Call require_rvalue.
100
101 2013-01-18  Yao Qi  <yao@codesourcery.com>
102
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
120         two parameters.
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.
126
127 2013-01-18  Yao Qi  <yao@codesourcery.com>
128
129         * infrun.c (proceed): Rename local variable 'oneproc' to
130         'force_step'.
131
132 2013-01-17  Doug Evans  <dje@google.com>
133
134         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
135         (dw2_build_type_unit_groups): Delete.  All uses updated.
136
137         * symtab.h (struct symbol_search): Add comment.
138
139 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
140
141         * symtab.c (compare_filenames_for_search): New comment for
142         HAS_DRIVE_SPEC.
143
144 2013-01-17  Tom Tromey  <tromey@redhat.com>
145
146         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
147
148 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
149
150         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
151         initialize it by existing make_cleanup.  Call new do_cleanups.
152
153 2013-01-17  Tom Tromey  <tromey@redhat.com>
154
155         * cp-abi.c (cp_abi_completer): New function.
156         (_initialize_cp_abi): Set completer for "set cp-abi".
157
158 2013-01-17  Tom Tromey  <tromey@redhat.com>
159
160         * mem-break.c: Remove obsolete comment.
161         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
162
163 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
164
165         * jit.c (jit_reader_load_command): Interpret the jit reader name
166         as an absolute path if it begins with a forward slash.
167
168 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
169
170         PR gdb/14550
171
172         * jit.c (finalize_symtab): Ensure that only the global block has a
173         NULL superblock.
174
175 2013-01-17  Pedro Alves  <palves@redhat.com>
176
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.
181
182 2013-01-16  Doug Evans  <dje@google.com>
183
184         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
185
186 2013-01-16  Pedro Alves  <palves@redhat.com>
187             Tom Tromey  <tromey@redhat.com>
188
189         PR cli/7221:
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
206         via bpstats.
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.
212
213 2013-01-16  Tom Tromey  <tromey@redhat.com>
214
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
218         "catch-type".
219
220 2013-01-16  Yao Qi  <yao@codesourcery.com>
221
222         * printcmd.c (current_display_number): Make it static.
223
224 2013-01-16  Yao Qi  <yao@codesourcery.com>
225
226         * infcmd.c (step_once): Don't check '!single_inst' as it was
227         checked before.
228
229 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
230
231         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
232
233 2013-01-14  Tom Tromey  <tromey@redhat.com>
234
235         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
236         set command.
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.
241
242 2013-01-14  Tom Tromey  <tromey@redhat.com>
243
244         PR symtab/14442:
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.
256
257 2013-01-14  Tom Tromey  <tromey@redhat.com>
258
259         PR symtab/14931:
260         * psymtab.c (struct psymtab_state): New.
261         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
262         functions.
263         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
264         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
265
266 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
267             Pedro Alves  <palves@redhat.com>
268
269         PR remote/14786
270
271         * remote.c (remote_threads_info): Make a copy of the reply from
272         qfThreadInfo and use that instead of rs->buf.
273
274 2013-01-14  Yao Qi  <yao@codesourcery.com>
275
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.
281
282 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
283
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.
290
291 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
292
293         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
294         non-existing files.
295
296         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
297         non-existing files if FILENAME is already absolute.
298
299 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
300
301         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
302         fputs_filtered.  Append trailing newline.
303
304 2013-01-11  Yao Qi  <yao@codesourcery.com>
305             Stan Shebs  <stan@codesourcery.com>
306
307         * psymtab.c (init_psymbol_list): Clarify the comment.
308
309 2013-01-11  Yao Qi  <yao@codesourcery.com>
310
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.
314
315 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
316
317         Code cleanup.
318         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
319         type const char *.
320         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
321         const char *.
322         * tui/tui-source.h (tui_source_is_displayed): Likewise.
323
324 2013-01-09  Anthony Green  <green@moxielogic.com>
325
326         * cp-abi.c (cplus_print_vtable): Don't return value from void
327         function.
328         * ada-lang.c (re_set_catch_assert): Ditto.
329
330 2013-01-09  Doug Evans  <dje@google.com>
331
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.
343
344 2013-01-09  Tom Tromey  <tromey@redhat.com>
345
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
349         support.
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.
354
355 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
356
357         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
358         Cast return_address to 64bits.
359
360 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
361
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.
365
366 2013-01-07  Tom Tromey  <tromey@redhat.com>
367
368         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
369         Remove.
370         (objc_language_defn): Use c_printchar, c_printstr,
371         c_emit_char.
372
373 2013-01-07  Tom Tromey  <tromey@redhat.com>
374
375         PR cli/7719:
376         * NEWS: Update.
377         * ada-valprint.c (printstr, print_field_values): Remove
378         "inspect_it" code.
379         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
380         code.
381         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
382         code.
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
388         "inspect_it" code.
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
398         field.
399
400 2013-01-04  Tom Tromey  <tromey@redhat.com>
401
402         * valprint.h (read_string): Add 'extern'.
403
404 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
405
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.
408
409 2013-01-03  Pierre Muller  <muller@sourceware.org>
410
411         * main.c (relocate_gdb_directory): Avoid calling stat function
412         if DIR is empty.
413
414 2013-01-03  Yao Qi  <yao@codesourcery.com>
415
416         * psymtab.c (fixup_psymbol_section): Update declaration.
417         (fixup_psymbol_section): Remove code returning value.
418
419 2013-01-03  Yao Qi  <yao@codesourcery.com>
420
421         * symtab.h: Remove some out of date comments.
422          (enum exception_event_kind): Move it ...
423         * breakpoint.c: ... here.
424
425 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
426
427         PR gdb/14405
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.
432
433 2013-01-02  Tom Tromey  <tromey@redhat.com>
434
435         * symfile.h (struct ecoff_debug_hack): Remove.
436         * objfiles.c: Don't include mdebugread.h.
437
438 2013-01-02  Tom Tromey  <tromey@redhat.com>
439
440         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
441         * configure.ac: Check for Mach-O support in BFD.  Update
442         CONFIG_OBS.
443         * configure: Rebuild.
444
445 2013-01-02  Tom Tromey  <tromey@redhat.com>
446
447         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
448         * configure.ac: Use GDB_AC_CHECK_BFD.
449         * configure: Rebuild.
450
451 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
452
453         * MAINTAINERS: Update my email.
454
455 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
456
457         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
458
459 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
460
461         * rs6000-nat.c (bss_data_overlap): New function.
462         (vmap_symtab): Use it to adjust the .bss section's offset.
463
464 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
465
466         Update year range in copyright notice of all files.
467
468 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
469
470         * top.c (print_gdb_version): Update copyright year.
471
472 For older changes see ChangeLog-2012.
473 \f
474 Local Variables:
475 mode: change-log
476 left-margin: 8
477 fill-column: 74
478 version-control: never
479 coding: utf-8
480 End: