aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-13 21:10:30 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-13 21:10:30 +0000
commit8f87102502242e23f901af040c8eb904de162f87 (patch)
tree5e2f7ee452611b31cf43b0732fc1e03619f319fd /gdb/stack.c
parent3f565f1eb5001c29a32b383d8b7fe05f73557db8 (diff)
downloadgdb-8f87102502242e23f901af040c8eb904de162f87.zip
gdb-8f87102502242e23f901af040c8eb904de162f87.tar.gz
gdb-8f87102502242e23f901af040c8eb904de162f87.tar.bz2
2003-01-13 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with predicate. * gdbarch.h, gdbarch.c: Regenerate. * stack.c (frame_info): Only initialize the saved registers when FRAME_INIT_SAVED_REGS_P. * frame.c (frame_saved_regs_register_unwind): Assert FRAME_INIT_SAVED_REGS_P. (deprecated_generic_get_saved_register): Ditto.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 6ce7366..a3a55c2 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -900,7 +900,8 @@ frame_info (char *addr_exp, int from_tty)
}
}
- if (get_frame_saved_regs (fi) == NULL)
+ if (FRAME_INIT_SAVED_REGS_P ()
+ && get_frame_saved_regs (fi) == NULL)
FRAME_INIT_SAVED_REGS (fi);
/* Print as much information as possible on the location of all the
registers. */