* sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
authorMark Kettenis <kettenis@gnu.org>
Sun, 22 Jan 2006 20:07:38 +0000 (20:07 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 22 Jan 2006 20:07:38 +0000 (20:07 +0000)
commitc893be758be8844753c7e545525d76b7cb789f52
tree1f275536aa849adacab46fd3097beed797ed74d3
parent0a8f48b9a8bf7b3e00a676b6068db20dd96f4390
* sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
(sparc_address_from_register): New prototype.
(sparcnbsd_step_trap): New prototype.
* sparc-tdep.c (sparc_address_from_register): Make globally
visible.
(sparc_analyze_control_transfer): Change prototype to accept
`struct gdbarch *' as first argument.  Allow for optional hnadling
for trap instructions.
(sparc_step_trap): New function.
(sparc_software_single_step): Adjust call to
sparc_analyze_control_trabsfer.
(sparc32_gdbarch_init): Initialize TDEP->step_trap.
* sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
(sparc32nbsd_init_abi): Set TDEP->step_trap.
* sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
* sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
gdb/ChangeLog
gdb/sparc-tdep.c
gdb/sparc-tdep.h
gdb/sparc64nbsd-tdep.c
gdb/sparc64obsd-tdep.c
gdb/sparcnbsd-tdep.c