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