diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-11-05 23:11:31 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-11-05 23:11:31 +0000 |
commit | 5fdff4261c7ed2a7c14c2e72cb6981e853af2803 (patch) | |
tree | edddf127a9f330bf999f65b5d19c66c87f399cab /gdb/gdbarch.c | |
parent | 0a2a5e0f3c3ac5b6f635e33a4a804d5c1083f33b (diff) | |
download | gdb-5fdff4261c7ed2a7c14c2e72cb6981e853af2803.zip gdb-5fdff4261c7ed2a7c14c2e72cb6981e853af2803.tar.gz gdb-5fdff4261c7ed2a7c14c2e72cb6981e853af2803.tar.bz2 |
Change INIT_EXTRA_FRAME_INFO() to a function with predicate.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index ce42082..9cbc87a 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -694,9 +694,7 @@ verify_gdbarch (struct gdbarch *gdbarch) if ((GDB_MULTI_ARCH >= 2) && (gdbarch->frame_init_saved_regs == 0)) fprintf_unfiltered (log, "\n\tframe_init_saved_regs"); - if ((GDB_MULTI_ARCH >= 2) - && (gdbarch->init_extra_frame_info == 0)) - fprintf_unfiltered (log, "\n\tinit_extra_frame_info"); + /* Skip verify of init_extra_frame_info, has predicate */ if ((GDB_MULTI_ARCH >= 2) && (gdbarch->skip_prologue == 0)) fprintf_unfiltered (log, "\n\tskip_prologue"); @@ -3615,6 +3613,12 @@ set_gdbarch_frame_init_saved_regs (struct gdbarch *gdbarch, gdbarch->frame_init_saved_regs = frame_init_saved_regs; } +int +gdbarch_init_extra_frame_info_p (struct gdbarch *gdbarch) +{ + return gdbarch->init_extra_frame_info != 0; +} + void gdbarch_init_extra_frame_info (struct gdbarch *gdbarch, int fromleaf, struct frame_info *frame) { |