diff options
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. */ |