diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-04-01 11:57:00 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-04-01 11:57:00 +0000 |
commit | a0a832c9e97e681a6bdd4bc03fa2b6cfe902b8ad (patch) | |
tree | 3240ecee37d1ed3225fa13f508792790fa4cb695 /gdb/arm-tdep.h | |
parent | eb706c8f92aa03ae30f09cb6a3007694c3cb466a (diff) | |
download | gdb-a0a832c9e97e681a6bdd4bc03fa2b6cfe902b8ad.tar.gz |
gdb/
* arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
* arm-tdep.c (arm_override_mode): New global.
(arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
execution mode heuristics.
(thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
second single-step breakpoint if needed, using
arm_insert_single_step_breakpoint.
(arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
ARM execution mode, do not call thumb_get_next_pc_raw.
(arm_get_next_pc): Encode execution mode in return value. Call
either arm_get_next_pc_raw or thumb_get_next_pc_raw.
(arm_insert_single_step_breakpoint): New function.
(arm_software_single_step): Call it.
* arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
argument to return execution mode of sigreturn target.
(arm_linux_syscall_next_pc): Use it.
(arm_linux_copy_svc): Update call.
(arm_linux_software_single_step): Call
arm_insert_single_step_breakpoint.
gdb/testsuite/
* gdb.arch/thumb-singlestep.S: New file.
* gdb.arch/thumb-singlestep.exp: Likewise.
Diffstat (limited to 'gdb/arm-tdep.h')
-rw-r--r-- | gdb/arm-tdep.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h index ebd5e6ee314..356df73cc29 100644 --- a/gdb/arm-tdep.h +++ b/gdb/arm-tdep.h @@ -311,6 +311,8 @@ extern void CORE_ADDR arm_skip_stub (struct frame_info *, CORE_ADDR); CORE_ADDR arm_get_next_pc (struct frame_info *, CORE_ADDR); +void arm_insert_single_step_breakpoint (struct gdbarch *, + struct address_space *, CORE_ADDR); int arm_software_single_step (struct frame_info *); int arm_frame_is_thumb (struct frame_info *frame); |