From 9e0b60a847e443d0120ddd61a479e25ae8fcb83d Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Mon, 21 Jun 1999 13:27:42 +0000 Subject: import gdb-1999-06-21 snapshot --- gdb/alpha-tdep.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/alpha-tdep.c') 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); -- cgit v1.1