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