* rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zero

correctly.
This commit is contained in:
Peter Schauer 1995-09-23 13:30:04 +00:00
parent df1e1074de
commit 4f8710e6ff
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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. */