aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-03-01 18:20:23 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-03-01 18:20:23 +0000
commit478fd957f7e66cd0ab23d2bbd2a96363d82579fd (patch)
tree7d82b078079cdba12255b27dcbfa4824ab978abc /gdb/arm-tdep.h
parentac50ab3b44a453aef7a0ee53890aded3b696bf31 (diff)
downloadgdb-478fd957f7e66cd0ab23d2bbd2a96363d82579fd.zip
gdb-478fd957f7e66cd0ab23d2bbd2a96363d82579fd.tar.gz
gdb-478fd957f7e66cd0ab23d2bbd2a96363d82579fd.tar.bz2
* arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
(arm_linux_restart_syscall_init): Handle both on-stack and in-kernel versions of the trampoline. Handle Thumb vs. ARM addresses. (arm_kernel_linux_restart_syscall_tramp_frame): New global. (arm_linux_init_abi): Install it. * arm-tdep.c (arm_psr_thumb_bit): Make global. * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
Diffstat (limited to 'gdb/arm-tdep.h')
-rw-r--r--gdb/arm-tdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h
index ef02002..de3f6cc 100644
--- a/gdb/arm-tdep.h
+++ b/gdb/arm-tdep.h
@@ -309,6 +309,9 @@ extern void arm_displaced_step_fixup (struct gdbarch *,
struct displaced_step_closure *,
CORE_ADDR, CORE_ADDR, struct regcache *);
+/* Return the bit mask in ARM_PS_REGNUM that indicates Thumb mode. */
+extern int arm_psr_thumb_bit (struct gdbarch *);
+
/* Is the instruction at the given memory address a Thumb or ARM
instruction? */
extern int arm_pc_is_thumb (struct gdbarch *, CORE_ADDR);