aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-09-23 13:30:04 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-09-23 13:30:04 +0000
commit4f8710e6ffcf9bec3f8d4f26a9bc4bb55de0d4c0 (patch)
treef8b6a879b47fd49abb22bffe624387b239af0527 /gdb
parentdf1e1074deec91dcc04ede90335fdc4eac8dcb04 (diff)
downloadgdb-4f8710e6ffcf9bec3f8d4f26a9bc4bb55de0d4c0.zip
gdb-4f8710e6ffcf9bec3f8d4f26a9bc4bb55de0d4c0.tar.gz
gdb-4f8710e6ffcf9bec3f8d4f26a9bc4bb55de0d4c0.tar.bz2
* rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zero
correctly.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/rs6000-tdep.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 62a7824..fa4b413 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -3,6 +3,9 @@ Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* mdebugread.c (parse_partial_symbols): Reset includes_used
and dependencies_used after finishing the partial symbol table.
+ * rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zero
+ correctly.
+
* rs6000-nat.c (xcoff_relocate_core): Don't relocate data
addresses for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE
is defined.
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index ca4bb72..e715399 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -489,7 +489,8 @@ push_dummy_frame ()
flush_cached_frames ();
/* save program counter in link register's space. */
- write_memory (sp+fdata.lr_offset, pc_targ, 4);
+ write_memory (sp + (fdata.lr_offset ? fdata.lr_offset : DEFAULT_LR_SAVE),
+ pc_targ, 4);
/* save all floating point and general purpose registers here. */