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