gdb/
[external/binutils.git] / gdb / ChangeLog
1 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         Add from_tty to solib_create_inferior_hook.
4         * infcmd.c (post_create_inferior): Move solib_add after
5         solib_create_inferior_hook.  Pass from_tty to
6         solib_create_inferior_hook.  Call solib_add and SOLIB_ADD with
7         0 from_tty and comment why.
8         * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9         * linux-nat.c (linux_child_follow_fork): Likewise.
10         * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11         * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
12         from_tty.
13         * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
14         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
15         * solib-null.c (null_solib_create_inferior_hook): Likewise.
16         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
17         * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
18         * solib-som.c (som_solib_create_inferior_hook): Likewise.
19         * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
20         Pass it to svr4_so_ops.solib_create_inferior_hook.
21         * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
22         from_tty.
23         * solib-svr4.c (enable_break): New parameter from_tty.  Pass it to
24         solib_add.
25         (svr4_solib_create_inferior_hook): New parameter from_tty.  Pass it to
26         enable_break.
27         * solib-target.c (solib_target_solib_create_inferior_hook): New
28         parameter from_tty.
29         * solib.c (solib_create_inferior_hook): New parameter from_tty.  Pass
30         it to ops->solib_create_inferior_hook.
31         (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
32         Move solib_add after solib_create_inferior_hook, call it now with
33         from_tty as 0.  New comment there.
34         * solib.h (solib_create_inferior_hook): New parameter from_tty.
35         * solist.h (struct target_so_ops <solib_create_inferior_hook>):
36         Likewise.
37
38 2010-01-08  Vladimir Prus  <vladimir@codesourcery.com>
39
40         Fix multiexec race.
41         * infrun.c (handle_inferior_event): Use get_thread_regcache
42         with events ptid, not get_current_regcache.
43
44 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
45
46         GDB crash with empty executable name (MinGW).
47         * source.c (openp): Add assert that parameter string is not NULL.
48         if parameter string is an empty string, then return with a failure
49         immediately.
50
51 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
52
53         Get rid of support for VAX Floats.
54         * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
55         (ada_vax_float_print_function): Delete.
56         * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
57         (ada_vax_float_print_function): Delete.
58         * ada-typeprint.c (print_vax_floating_point_type): Delete.
59         (ada_print_type): Remove support for VAX floats.
60         * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
61
62 2010-01-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
63
64         * stabsread.c (read_args): Handle zero arguments.
65
66 2009-01-08  Joel Brobecker  <brobecker@adacore.com>
67
68         Cannot find in-tree libiconv.a after reconfigure.
69         * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
70         that we can use, then cache the path to this archive.
71         * configure: Regenerate.
72
73 2010-01-07  Stan Shebs  <stan@codesourcery.com>
74
75         Make tracepoint operations go through target vector.
76         * target.h (enum trace_find_type): New enum.
77         (struct target_ops): New fields to_trace_init,
78         to_download_tracepoint, to_download_trace_state_variable,
79         to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
80         to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
81         to_set_disconnected_tracing.
82         (target_trace_init): New macro.
83         (target_download_tracepoint): New macro.
84         (target_download_trace_state_variable): New macro.
85         (target_trace_start): New macro.
86         (target_trace_set_readonly_regions): New macro.
87         (target_get_trace_status): New macro.
88         (target_trace_stop): New macro.
89         (target_trace_find): New macro.
90         (target_get_trace_state_variable_value): New macro.
91         (target_set_disconnected_tracing): New macro.
92         * target.c (update_current_target): Inherit and set defaults for
93         tracepoint operations.
94         * tracepoint.c (default_collect): Make globally visible.
95         (target_is_remote): Remove, along with all calls.
96         (tvariables_info): Call target_get_trace_state_variable_value.
97         (remote_set_transparent_ranges): Remove.
98         (trace_start_command): Call target_trace_init,
99         target_download_tracepoint, etc.
100         (download_tracepoint): Remove.
101         (trace_stop_command): Simplify.
102         (stop_tracing): Call target_trace_stop.
103         (get_trace_status): Call target_get_trace_status.
104         (trace_status_command): Add case for targets that cannot trace.
105         (finish_tfind_command): Change to take numerical arguments, call
106         target_trace_find.
107         (trace_find_command): Update call to finish_tfind_command.
108         (trace_find_pc_command): Ditto.
109         (trace_find_tracepoint_command): Ditto.
110         (trace_find_line_command): Ditto.
111         (trace_find_range_command): Ditto.
112         (trace_find_outside_command): Ditto.
113         (set_disconnected_tracing_value): Call
114         target_set_disconnected_tracing.
115         * remote.c: Add protocol encoding bits from tracepoint.c.
116         (trace_error): Move from tracepoint.c.
117         (remote_get_noisy_reply): Ditto.
118         (free_actions_list_cleanup_wrapper): Ditto.
119         (free_actions_list): Ditto.
120         (remote_trace_init): New function.
121         (remote_download_tracepoint): New function.
122         (remote_download_trace_state_variable): New function.
123         (remote_trace_set_readonly_regions): New function.
124         (remote_trace_start): New function.
125         (remote_get_trace_status): New function.
126         (remote_trace_stop): New function.
127         (remote_trace_find): New function.
128         (remote_download_trace_state_variable): New function.
129         (remote_set_disconnected_tracing): New function.
130         (init_remote_ops): Add tracepoint operations.
131
132         * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
133
134 2010-01-07  Tristan Gingold  <gingold@adacore.com>
135
136         * symfile.c (build_section_addr_info_from_objfile): New function.
137         (symbol_file_add_separate): Don't use offsets from objfile but
138         built an addr info.
139
140 2010-01-06  Stan Shebs  <stan@codesourcery.com>
141
142         Support disconnected tracing.
143         * infcmd.c (detach_command): Ask whether to stop tracing.
144         * cli/cli-cmds.c (quit_command): Ditto.
145         * breakpoint.h (struct breakpoint): New field number_on_target.
146         * breakpoint.c (create_tracepoint_from_upload): New function.
147         (get_tracepoint_by_number_on_target): New function.
148         * remote.c (struct remote): New field disconnected_tracing.
149         (remote_disconnected_tracing_feature): New function.
150         (remote_protocol_features): Add DisconnectedTracing.
151         (struct uploaded_tp): New struct.
152         (uploaded_tps): New global.
153         (get_uploaded_tp): New function.
154         (find_matching_tracepoint): New function.
155         (remote_get_tracing_state): New function.
156         (remote_start_remote): Call it.
157         * tracepoint.c (disconnected_tracing): New global.
158         (trace_start_command): Initialize number_on_target.
159         (stop_tracing): New function, split out from...
160         (trace_stop_command): Call stop_tracing.
161         (get_trace_status): New function, split out from...
162         (trace_status_command): Call get_trace_status, add info on
163         disconnection behavior.
164         (disconnect_or_stop_tracing): New function.
165         (finish_tfind_command): Translate from number on target.
166         (trace_find_tracepoint_command): Translate to number on target.
167         (send_disconnected_tracing_value): New function.
168         (set_disconnected_tracing): New function.
169         (_initialize_tracepoint): Add disconnected-tracing variable.
170         * NEWS: Mention disconnected tracing.
171
172 2010-01-06  Tristan Gingold  <gingold@adacore.com>
173
174         * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
175         parameter to main_objfile.  Iterate on all separate debug objfiles.
176         * symfile.h (symbol_file_add_separate)
177         (find_separate_debug_file_by_debuglink): Remove parameter names.
178         * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
179         (reread_symbols): Use free_objfile_separate_debug.
180         * objfiles.h (struct objfile): Add separate_debug_objfile_link.
181         Adjust comment.
182         (objfile_separate_debug_iterate, add_separate_debug_objfile)
183         (free_objfile_separate_debug): New prototypes.
184         * objfiles.c (objfile_separate_debug_iterate): New function.
185         (add_separate_debug_objfile, free_objfile_separate_debug): New
186         functions.
187         (free_objfile): Use free_objfile_separate_debug.  Adjust for
188         multiple separate debug objfile.
189         (objfile_has_symbols): Adjust comment.  Iterate on all separate
190         debug objfiles.
191         * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
192         debug objfile.
193         (lookup_minimal_symbol_text): Ditto.
194         (lookup_minimal_symbol_by_pc_name): Ditto.
195         (lookup_minimal_symbol_solib_trampoline): Ditto.
196         (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
197         debug objfiles.
198
199 2010-01-05  Stan Shebs  <stan@codesourcery.com>
200
201         Add fast tracepoints.
202         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
203         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
204         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
205         * breakpoint.c (tracepoint_type): New function.
206         (ALL_TRACEPOINTS): Use it.
207         (should_be_inserted): Ditto.
208         (bpstat_check_location): Ditto.
209         (print_one_breakpoint_location): Ditto.
210         (user_settable_breakpoint): Ditto.
211         (set_breakpoint_location_function): Ditto.
212         (disable_breakpoints_in_shlibs): Ditto.
213         (delete_trace_command): Ditto.
214         (print_it_typical): Add bp_fast_tracepoint case.
215         (bpstat_what): Ditto.
216         (print_one_breakpoint_location): Ditto.
217         (allocate_bp_location): Ditto.
218         (mention): Ditto.
219         (breakpoint_re_set_one): Ditto.
220         (disable_command): Ditto.
221         (enable_command): Ditto.
222         (check_fast_tracepoint_sals): New function.
223         (break_command_really): Call it.
224         (ftrace_command): New function.
225         (_initialize_breakpoint): Add ftrace command.
226         * gdbarch.sh (fast_tracepoint_valid_at): New.
227         * gdbarch.h, gdbarch.c: Regenerate.
228         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
229         (i386_gdbarch_init): Use it.
230         * remote.c (struct remote_state): New field fast_tracepoints.
231         (PACKET_FastTracepoints): New packet config type.
232         (remote_fast_tracepoint_feature): New function.
233         (remote_protocol_features): Add FastTracepoints.
234         (remote_supports_fast_tracepoints): New function.
235         (_initialize_remote): Add FastTracepoints.
236         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
237         * NEWS: Mention fast tracepoints.
238
239 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
240
241         * gdb-gdb.py: New file.
242
243 2010-01-05  Michael Snyder  <msnyder@vmware.com>
244
245         * infrun.c (handle_inferior_event): Fix typo in comment.
246
247 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
248
249         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
250
251 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
252
253         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
254         and s390x-linux64.
255         (s390-linux32-expedite): Define.
256         (s390-linux64-expedite): Define.
257         (s390x-linux64-expedite): Define.
258         * features/s390-acr.xml: New file.
259         * features/s390-fpr.xml: New file.
260         * features/s390-core32.xml: New file.
261         * features/s390-core64.xml: New file.
262         * features/s390x-core64.xml: New file.
263         * features/s390-linux32.xml: New file.
264         * features/s390-linux64.xml: New file.
265         * features/s390x-linux64.xml: New file.
266         * features/s390-linux32.c: New generated file.
267         * features/s390-linux64.c: New generated file.
268         * features/s390x-linux64.c: New generated file.
269
270         * regformats/s390-linux32.dat: New generated file.
271         * regformats/s390-linux64.dat: New generated file.
272         * regformats/s390x-linux64.dat: New generated file.
273         * regformats/reg-s390.dat: Remove.
274         * regformats/reg-s390x.dat: Remove.
275
276         * s390-nat.c: Include "auxv.h" and <elf.h>.
277         (HWCAP_S390_HIGH_GPRS): Define if undefined.
278         (s390_target_wordsize): New function.
279         (s390_auxv_parse): Likewise.
280         (s390_get_hwcap): Likewise.
281         (s390_read_description): Likewise.
282         (_initialize_s390_nat): Install s390_auxv_parse and
283         s390_read_description.
284
285         * s390-tdep.c: Include "features/s390-linux32.c",
286         "features/s390-linux64.c", and "features/s390x-linux64.c".
287         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
288         (s390_register_call_saved): New function.
289         (s390_register_name): Remove.
290         (s390_register_type): Remove.
291         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
292         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
293         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
294         (s390_pseudo_register_name): New function.
295         (s390_pseudo_register_type): New function.
296         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
297         Handle full GPR pesudos and varying pseudo register numbers.
298         (s390_pseudo_register_write): Likewise
299         (s390x_pseudo_register_read): Remove.
300         (s390x_pseudo_register_write): Likewise.
301         (s390_register_group): Remove.
302         (s390_pseudo_register_group): New function.
303         (s390_regmap_gregset): Add GPR upper halves.
304         (s390x_regmap_gregset): Likewise.
305         (s390_regmap_fpregset): Likewise.
306         (s390_regmap_upper): New global variable.
307         (s390_upper_regset): New global variable.
308         (s390_upper_regset_sections): New global variable.
309         (s390_regset_from_core_section): Handle GPR upper halves.
310         (s390_core_read_description): New function.
311         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
312         register information.  Handle varying pseudo register numbers.
313         (s390_backchain_frame_unwind_cache): Likewise.
314         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
315         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
316         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
317         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
318         Handle varying pseudo register numbers.
319         (s390_unwind_pc): Handle varying pseudo register numbers.
320         (s390_dwarf2_prev_register): New function.
321         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
322         register information.  Handle varying pseudo register numbers.
323         Install s390_dwarf2_prev_register to unwind full GPRs.
324         (s390_gdbarch_init): Handle target descriptions.  Assign varying
325         pseudo register numbers.  Install s390_adjust_frame_regnum.
326         (_initialize_s390_tdep): Initialize target descriptions.
327
328         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
329         (S390_NUM_REGS): Redefine to include upper half registers.
330         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
331         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
332         (tdesc_s390_linux32): Add declaration.
333         (tdesc_s390_linux64): Likewise.
334         (tdesc_s390x_linux64): Likewise.
335
336 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
337
338         * regset.h (struct core_regset_section): Add HUMAN_NAME.
339         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
340         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
341         (ppc_linux_vmx_regset_sections): Likewise.
342         (ppc_linux_fp_regset_sections): Likewise.
343
344         * corelow.c (get_core_register_section): Constify arguments.
345         (get_core_registers): Use gdbarch_core_regset_sections instead
346         of hard-coded platform-specific register section names.
347
348 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
349
350         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
351         a register, assume the least-significant part is used.
352         (write_pieced_value): Likewise.
353
354 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
355
356         * printcmd.c: Include "arch-utils.h".
357         (do_one_display): Re-parse expression if current architecture changed.
358
359 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
360             Joel Brobecker  <brobecker@adacore.com>
361
362         * gdbtypes.c (check_typedef): New comment on type length.
363         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
364         comment on type length.
365         (value_primitive_field): Keep the original TYPE value, new comment.
366
367 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
368
369         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
370         p_start.  Change != comparisons to > and < comparisons.
371
372 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
373
374         * cli/cli-script.c (process_next_line): Check P2 overrun.
375
376 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
377
378         Update the copyright hearder to add year 2010 for most GDB files.
379
380 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
381
382         Fix build failure in inf-ptrace.c.
383         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
384
385 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
386
387         * top.c (print_gdb_version): Update copyright year.
388
389 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
390
391         Fix break *FUN'address thread NUM.
392         * ada-lex.l (task): Expand rule to also match the thread keyword.
393
394 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
395
396         Fix break *FUN'address task NUM.
397         * ada-lex.l (task): New rule.
398         * ada-lang.c (valid_task_id): Make sure the Ada task list has
399         been built before using it.
400
401 For older changes see ChangeLog-2009.
402 \f
403 Local Variables:
404 mode: change-log
405 left-margin: 8
406 fill-column: 74
407 version-control: never
408 coding: utf-8
409 End: