aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-08-26 21:47:21 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-08-26 21:47:21 +0000
commita0a6fdc8b629d4b5256b7d57ea1e0a49f7e0146c (patch)
tree4582db47bc4ea481d1fd7c1d30d6fbef6a6e40e0 /gcc/config
parent721a9f8e2999628d99543c2b2476beee9349c3bb (diff)
downloadgcc-a0a6fdc8b629d4b5256b7d57ea1e0a49f7e0146c.zip
gcc-a0a6fdc8b629d4b5256b7d57ea1e0a49f7e0146c.tar.gz
gcc-a0a6fdc8b629d4b5256b7d57ea1e0a49f7e0146c.tar.bz2
mn10300.h (DBX_REGISTER_NUMBER): Remap register numbers to the ranges used by GDB.
* config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register numbers to the ranges used by GDB. From-SVN: r36001
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/mn10300/mn10300.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h
index 606f6f7..53c51ca 100644
--- a/gcc/config/mn10300/mn10300.h
+++ b/gcc/config/mn10300/mn10300.h
@@ -1042,7 +1042,12 @@ do { char dstr[30]; \
#define DWARF2_ASM_LINE_DEBUG_INFO 1
-#define DBX_REGISTER_NUMBER(REGNO) REGNO
+#define DBX_REGISTER_NUMBER(REGNO) \
+ (REGNO_DATA_P ((REGNO)) ? (0 + (REGNO) - FIRST_DATA_REGNUM) \
+ : REGNO_ADDRESS_P ((REGNO)) ? (4 + (REGNO) - FIRST_ADDRESS_REGNUM) \
+ : REGNO_SP_P ((REGNO)) ? 8 \
+ : REGNO_EXTENDED_P ((REGNO)) ? (15 + (REGNO) - FIRST_EXTENDED_REGNUM) \
+ : -1)
/* GDB always assumes the current function's frame begins at the value
of the stack pointer upon entry to the current function. Accessing