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