diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-10-29 14:00:58 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-10-29 14:00:58 +0000 |
commit | 00b25ff323929eaa3b7ddaea20985a4174cf6381 (patch) | |
tree | ec4080ec425ce370edbd8b69930b3b21e1da0083 /gdb/i386-tdep.c | |
parent | dd891d7edbca356068550b7b2b869c14b77f34bb (diff) | |
download | gdb-00b25ff323929eaa3b7ddaea20985a4174cf6381.zip gdb-00b25ff323929eaa3b7ddaea20985a4174cf6381.tar.gz gdb-00b25ff323929eaa3b7ddaea20985a4174cf6381.tar.bz2 |
2004-10-27 Andrew Cagney <cagney@gnu.org>
* trad-frame.c (trad_frame_get_prev_register): Use
frame_unwind_register instead of frame_register_unwind, do not
recurse the register's location.
* xstormy16-tdep.c (xstormy16_frame_prev_register):
* sparc-tdep.c (sparc32_frame_prev_register): Ditto.
* sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
* sh-tdep.c (sh_frame_prev_register): Ditto.
* m68k-tdep.c (m68k_frame_prev_register): Ditto.
* i386-tdep.c (i386_frame_prev_register): Ditto.
* dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
* amd64-tdep.c (amd64_frame_prev_register): Ditto.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index d5cd111..e001c3e 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -984,8 +984,12 @@ i386_frame_prev_register (struct frame_info *next_frame, void **this_cache, if (regnum == I386_EIP_REGNUM && cache->pc_in_eax) { - frame_register_unwind (next_frame, I386_EAX_REGNUM, - optimizedp, lvalp, addrp, realnump, valuep); + *optimizedp = 0; + *lvalp = lval_register; + *addrp = 0; + *realnump = I386_EAX_REGNUM; + if (valuep) + frame_unwind_register (next_frame, (*realnump), valuep); return; } @@ -1018,8 +1022,12 @@ i386_frame_prev_register (struct frame_info *next_frame, void **this_cache, return; } - frame_register_unwind (next_frame, regnum, - optimizedp, lvalp, addrp, realnump, valuep); + *optimizedp = 0; + *lvalp = lval_register; + *addrp = 0; + *realnump = regnum; + if (valuep) + frame_unwind_register (next_frame, (*realnump), valuep); } static const struct frame_unwind i386_frame_unwind = |