aboutsummaryrefslogtreecommitdiff
path: root/gdb/am29k-tdep.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-09-13 00:33:17 +0000
committerJohn Gilmore <gnu@cygnus>1991-09-13 00:33:17 +0000
commit6093e5b0de19f580ee999753e3b54c443b8cf645 (patch)
tree13e87d926d6155da1d9257b5d528e41740f3e0c1 /gdb/am29k-tdep.c
parent8d8f91d85a4aed92c92820b23a62686ec0af2680 (diff)
downloadgdb-6093e5b0de19f580ee999753e3b54c443b8cf645.zip
gdb-6093e5b0de19f580ee999753e3b54c443b8cf645.tar.gz
gdb-6093e5b0de19f580ee999753e3b54c443b8cf645.tar.bz2
* am29k-tdep.c: Use DUMMY_SAVE_GREGS and RETURN_REGNUM.
Diffstat (limited to 'gdb/am29k-tdep.c')
-rw-r--r--gdb/am29k-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/am29k-tdep.c b/gdb/am29k-tdep.c
index b63d176..51bfb4b 100644
--- a/gdb/am29k-tdep.c
+++ b/gdb/am29k-tdep.c
@@ -605,9 +605,9 @@ pop_frame ()
write_register
(SR_REGNUM (i + 128),
read_register (LR0_REGNUM + DUMMY_ARG / 4 + i));
- for (i = 0; i < DUMMY_SAVE_GR96; ++i)
+ for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
write_register
- (GR96_REGNUM + i,
+ (RETURN_REGNUM + i,
read_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i));
}
@@ -689,7 +689,7 @@ push_dummy_frame ()
for (i = 0; i < DUMMY_SAVE_SR128; ++i)
write_register (LR0_REGNUM + DUMMY_ARG / 4 + i,
read_register (SR_REGNUM (i + 128)));
- for (i = 0; i < DUMMY_SAVE_GR96; ++i)
+ for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
write_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i,
- read_register (GR96_REGNUM + i));
+ read_register (RETURN_REGNUM + i));
}