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