aboutsummaryrefslogtreecommitdiff
path: root/gdb/a29k-tdep.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-13 15:38:00 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-13 15:38:00 +0000
commitae682b8061d9e11c089386e6aefc7f88c40aaf9c (patch)
treec5cbaf9fd9e9b7c490d067f52391a2227f108cbf /gdb/a29k-tdep.c
parentfca59f9d42e32d441760c1c0e182dcd98fbee7f0 (diff)
downloadgdb-ae682b8061d9e11c089386e6aefc7f88c40aaf9c.zip
gdb-ae682b8061d9e11c089386e6aefc7f88c40aaf9c.tar.gz
gdb-ae682b8061d9e11c089386e6aefc7f88c40aaf9c.tar.bz2
* a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
Diffstat (limited to 'gdb/a29k-tdep.c')
-rw-r--r--gdb/a29k-tdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c
index ce8a912..a34b189 100644
--- a/gdb/a29k-tdep.c
+++ b/gdb/a29k-tdep.c
@@ -845,6 +845,9 @@ push_dummy_frame ()
write_register (lrnum++, read_register (PC_REGNUM));
write_register (lrnum++, read_register (NPC_REGNUM));
write_register (lrnum++, read_register (PC2_REGNUM));
+
+ /* Why are we saving LR0? What would clobber it? (the dummy frame should
+ be below it on the register stack, no?). */
write_register (lrnum++, original_lr0);
}