2004-03-01 Andrew Cagney <cagney@redhat.com>

* rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
	use frame_relative_level and get_next_frame.
This commit is contained in:
Andrew Cagney 2004-03-02 02:20:25 +00:00
parent 38744d423b
commit d4715e41ad
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-03-01 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
use frame_relative_level and get_next_frame.
2004-02-29 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_init_frame_pc_first): New function.

View File

@ -213,8 +213,11 @@ rs6000_frame_init_saved_regs (struct frame_info *fi)
static CORE_ADDR
rs6000_init_frame_pc_first (int fromleaf, struct frame_info *prev)
{
return (fromleaf ? DEPRECATED_SAVED_PC_AFTER_CALL (prev->next)
: prev->next ? DEPRECATED_FRAME_SAVED_PC (prev->next) : read_pc ());
return (fromleaf
? DEPRECATED_SAVED_PC_AFTER_CALL (get_next_frame (prev))
: frame_relative_level (prev) > 0
? DEPRECATED_FRAME_SAVED_PC (get_next_frame (prev))
: read_pc ());
}
static CORE_ADDR