Add fast tracepoints.
[external/binutils.git] / gdb / ChangeLog
1 2010-01-05  Stan Shebs  <stan@codesourcery.com>
2
3         Add fast tracepoints.
4         * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
5         * arch-utils.c (default_fast_tracepoint_valid_at): New function.
6         * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7         * breakpoint.c (tracepoint_type): New function.
8         (ALL_TRACEPOINTS): Use it.
9         (should_be_inserted): Ditto.
10         (bpstat_check_location): Ditto.
11         (print_one_breakpoint_location): Ditto.
12         (user_settable_breakpoint): Ditto.
13         (set_breakpoint_location_function): Ditto.
14         (disable_breakpoints_in_shlibs): Ditto.
15         (delete_trace_command): Ditto.
16         (print_it_typical): Add bp_fast_tracepoint case.
17         (bpstat_what): Ditto.
18         (print_one_breakpoint_location): Ditto.
19         (allocate_bp_location): Ditto.
20         (mention): Ditto.
21         (breakpoint_re_set_one): Ditto.
22         (disable_command): Ditto.
23         (enable_command): Ditto.
24         (check_fast_tracepoint_sals): New function.
25         (break_command_really): Call it.
26         (ftrace_command): New function.
27         (_initialize_breakpoint): Add ftrace command.
28         * gdbarch.sh (fast_tracepoint_valid_at): New.
29         * gdbarch.h, gdbarch.c: Regenerate.
30         * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
31         (i386_gdbarch_init): Use it.
32         * remote.c (struct remote_state): New field fast_tracepoints.
33         (PACKET_FastTracepoints): New packet config type.
34         (remote_fast_tracepoint_feature): New function.
35         (remote_protocol_features): Add FastTracepoints.
36         (remote_supports_fast_tracepoints): New function.
37         (_initialize_remote): Add FastTracepoints.
38         * tracepoint.c (download_tracepoint): Add fast tracepoint option.
39         * NEWS: Mention fast tracepoints.
40
41 2010-01-06  Joel Brobecker  <brobecker@adacore.com>
42
43         * gdb-gdb.py: New file.
44
45 2010-01-05  Michael Snyder  <msnyder@vmware.com>
46
47         * infrun.c (handle_inferior_event): Fix typo in comment.
48
49 2010-01-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
50
51         * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
52
53 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
54
55         * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
56         and s390x-linux64.
57         (s390-linux32-expedite): Define.
58         (s390-linux64-expedite): Define.
59         (s390x-linux64-expedite): Define.
60         * features/s390-acr.xml: New file.
61         * features/s390-fpr.xml: New file.
62         * features/s390-core32.xml: New file.
63         * features/s390-core64.xml: New file.
64         * features/s390x-core64.xml: New file.
65         * features/s390-linux32.xml: New file.
66         * features/s390-linux64.xml: New file.
67         * features/s390x-linux64.xml: New file.
68         * features/s390-linux32.c: New generated file.
69         * features/s390-linux64.c: New generated file.
70         * features/s390x-linux64.c: New generated file.
71
72         * regformats/s390-linux32.dat: New generated file.
73         * regformats/s390-linux64.dat: New generated file.
74         * regformats/s390x-linux64.dat: New generated file.
75         * regformats/reg-s390.dat: Remove.
76         * regformats/reg-s390x.dat: Remove.
77
78         * s390-nat.c: Include "auxv.h" and <elf.h>.
79         (HWCAP_S390_HIGH_GPRS): Define if undefined.
80         (s390_target_wordsize): New function.
81         (s390_auxv_parse): Likewise.
82         (s390_get_hwcap): Likewise.
83         (s390_read_description): Likewise.
84         (_initialize_s390_nat): Install s390_auxv_parse and
85         s390_read_description.
86
87         * s390-tdep.c: Include "features/s390-linux32.c",
88         "features/s390-linux64.c", and "features/s390x-linux64.c".
89         (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
90         (s390_register_call_saved): New function.
91         (s390_register_name): Remove.
92         (s390_register_type): Remove.
93         (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
94         (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
95         (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
96         (s390_pseudo_register_name): New function.
97         (s390_pseudo_register_type): New function.
98         (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
99         Handle full GPR pesudos and varying pseudo register numbers.
100         (s390_pseudo_register_write): Likewise
101         (s390x_pseudo_register_read): Remove.
102         (s390x_pseudo_register_write): Likewise.
103         (s390_register_group): Remove.
104         (s390_pseudo_register_group): New function.
105         (s390_regmap_gregset): Add GPR upper halves.
106         (s390x_regmap_gregset): Likewise.
107         (s390_regmap_fpregset): Likewise.
108         (s390_regmap_upper): New global variable.
109         (s390_upper_regset): New global variable.
110         (s390_upper_regset_sections): New global variable.
111         (s390_regset_from_core_section): Handle GPR upper halves.
112         (s390_core_read_description): New function.
113         (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
114         register information.  Handle varying pseudo register numbers.
115         (s390_backchain_frame_unwind_cache): Likewise.
116         (s390_frame_prev_register): Unwind full GPRs to show lower halves.
117         (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
118         (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
119         PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
120         Handle varying pseudo register numbers.
121         (s390_unwind_pc): Handle varying pseudo register numbers.
122         (s390_dwarf2_prev_register): New function.
123         (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
124         register information.  Handle varying pseudo register numbers.
125         Install s390_dwarf2_prev_register to unwind full GPRs.
126         (s390_gdbarch_init): Handle target descriptions.  Assign varying
127         pseudo register numbers.  Install s390_adjust_frame_regnum.
128         (_initialize_s390_tdep): Initialize target descriptions.
129
130         * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
131         (S390_NUM_REGS): Redefine to include upper half registers.
132         (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
133         (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
134         (tdesc_s390_linux32): Add declaration.
135         (tdesc_s390_linux64): Likewise.
136         (tdesc_s390x_linux64): Likewise.
137
138 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
139
140         * regset.h (struct core_regset_section): Add HUMAN_NAME.
141         * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
142         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
143         (ppc_linux_vmx_regset_sections): Likewise.
144         (ppc_linux_fp_regset_sections): Likewise.
145
146         * corelow.c (get_core_register_section): Constify arguments.
147         (get_core_registers): Use gdbarch_core_regset_sections instead
148         of hard-coded platform-specific register section names.
149
150 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
151
152         * dwarf2loc.c (read_pieced_value): If a piece occupies part of
153         a register, assume the least-significant part is used.
154         (write_pieced_value): Likewise.
155
156 2010-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
157
158         * printcmd.c: Include "arch-utils.h".
159         (do_one_display): Re-parse expression if current architecture changed.
160
161 2010-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
162             Joel Brobecker  <brobecker@adacore.com>
163
164         * gdbtypes.c (check_typedef): New comment on type length.
165         * value.c (allocate_value_lazy): Remove the unused atype variable.  New
166         comment on type length.
167         (value_primitive_field): Keep the original TYPE value, new comment.
168
169 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
170
171         * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
172         p_start.  Change != comparisons to > and < comparisons.
173
174 2010-01-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
175
176         * cli/cli-script.c (process_next_line): Check P2 overrun.
177
178 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
179
180         Update the copyright hearder to add year 2010 for most GDB files.
181
182 2009-01-01  Joel Brobecker  <brobecker@adacore.com>
183
184         Fix build failure in inf-ptrace.c.
185         * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
186
187 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
188
189         * top.c (print_gdb_version): Update copyright year.
190
191 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
192
193         Fix break *FUN'address thread NUM.
194         * ada-lex.l (task): Expand rule to also match the thread keyword.
195
196 2010-01-01  Joel Brobecker  <brobecker@adacore.com>
197
198         Fix break *FUN'address task NUM.
199         * ada-lex.l (task): New rule.
200         * ada-lang.c (valid_task_id): Make sure the Ada task list has
201         been built before using it.
202
203 For older changes see ChangeLog-2009.
204 \f
205 Local Variables:
206 mode: change-log
207 left-margin: 8
208 fill-column: 74
209 version-control: never
210 coding: utf-8
211 End: