* arm-tdep.c (arm_register_type): Use unsigned types for registers.
authorDaniel Jacobowitz <drow@false.org>
Fri, 23 Jun 2006 13:01:05 +0000 (13:01 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 23 Jun 2006 13:01:05 +0000 (13:01 +0000)
Add special types for sp and pc.
* Makefile.in (arm-tdep.o): Update.

gdb/ChangeLog
gdb/Makefile.in
gdb/arm-tdep.c

index 9b5adbc6a3a550b858abcacf3c0b333c0cacea3a..b020ae0b406574fcccff4173eb6872e69e277c3a 100644 (file)
@@ -1,3 +1,9 @@
+2006-06-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * arm-tdep.c (arm_register_type): Use unsigned types for registers.
+       Add special types for sp and pc.
+       * Makefile.in (arm-tdep.o): Update.
+
 2006-06-22  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * remote.c (remote_escape_output): New function.
index ece8974f2b87ba4a9b1e07a7e8f7816a2ac20b0a..8d4cf042c6f78899a3c5e041758d424029675b81 100644 (file)
@@ -1783,7 +1783,7 @@ arm-tdep.o: arm-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(gdbcmd_h) \
        $(frame_unwind_h) $(frame_base_h) $(trad_frame_h) $(arm_tdep_h) \
        $(gdb_sim_arm_h) $(elf_bfd_h) $(coff_internal_h) $(elf_arm_h) \
        $(gdb_assert_h) $(bfd_in2_h) $(libcoff_h) $(objfiles_h) \
-       $(dwarf2_frame_h)
+       $(dwarf2_frame_h) $(gdbtypes_h)
 auxv.o: auxv.c $(defs_h) $(target_h) $(gdbtypes_h) $(command_h) \
        $(inferior_h) $(valprint_h) $(gdb_assert_h) $(auxv_h) \
        $(elf_common_h)
index 3c942c4e2fb27f3d7a698dbef5c752ca82339cba..eafa61d24a377e5cb6a0e98b4f75ce7ce7083989 100644 (file)
@@ -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
This page took 0.036714 seconds and 4 git commands to generate.