aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-06-23 13:01:05 +0000
committerDaniel Jacobowitz <drow@false.org>2006-06-23 13:01:05 +0000
commite4c161579c631ab982f4a5783a1d8c72ed3430f6 (patch)
tree1040d060fc059c727f8eef675619aa38c32f6021 /gdb/arm-tdep.c
parent5b8273bf5f8df794ca5cf470a6b47388056a3eda (diff)
downloadfsf-binutils-gdb-e4c161579c631ab982f4a5783a1d8c72ed3430f6.zip
fsf-binutils-gdb-e4c161579c631ab982f4a5783a1d8c72ed3430f6.tar.gz
fsf-binutils-gdb-e4c161579c631ab982f4a5783a1d8c72ed3430f6.tar.bz2
* arm-tdep.c (arm_register_type): Use unsigned types for registers.
Add special types for sp and pc. * Makefile.in (arm-tdep.o): Update.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 3c942c4..eafa61d 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -40,6 +40,7 @@
#include "trad-frame.h"
#include "objfiles.h"
#include "dwarf2-frame.h"
+#include "gdbtypes.h"
#include "arm-tdep.h"
#include "gdb/sim-arm.h"
@@ -1356,8 +1357,12 @@ arm_register_type (struct gdbarch *gdbarch, int regnum)
else
return builtin_type_arm_ext_littlebyte_bigword;
}
+ else if (regnum == ARM_SP_REGNUM)
+ return builtin_type_void_data_ptr;
+ else if (regnum == ARM_PC_REGNUM)
+ return builtin_type_void_func_ptr;
else
- return builtin_type_int32;
+ return builtin_type_uint32;
}
/* Index within `registers' of the first byte of the space for