mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 03:24:41 +08:00
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:
parent
38744d423b
commit
d4715e41ad
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user