diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-06-21 13:27:42 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-06-21 13:27:42 +0000 |
commit | 9e0b60a847e443d0120ddd61a479e25ae8fcb83d (patch) | |
tree | e90e7c759d41943a9c008cc4fd49fc613dc4ce8d /gdb/alpha-tdep.c | |
parent | a8e53fb060baeebbf81fa5c0462effe814dfa1c5 (diff) | |
download | gdb-9e0b60a847e443d0120ddd61a479e25ae8fcb83d.zip gdb-9e0b60a847e443d0120ddd61a479e25ae8fcb83d.tar.gz gdb-9e0b60a847e443d0120ddd61a479e25ae8fcb83d.tar.bz2 |
import gdb-1999-06-21 snapshot
Diffstat (limited to 'gdb/alpha-tdep.c')
-rw-r--r-- | gdb/alpha-tdep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 99fde37..7d851d9 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -1114,6 +1114,15 @@ alpha_pop_frame() alpha_extra_func_info_t proc_desc = frame->proc_desc; + /* we need proc_desc to know how to restore the registers; + if it is NULL, construct (a temporary) one */ + if (proc_desc == NULL) + proc_desc = find_proc_desc(frame->pc, frame->next); + + /* Question: should we copy this proc_desc and save it in + frame->proc_desc? If we do, who will free it? + For now, we don't save a copy... */ + write_register (PC_REGNUM, FRAME_SAVED_PC(frame)); if (frame->saved_regs == NULL) alpha_find_saved_regs (frame); |