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