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