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