diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-22 17:08:42 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-22 17:08:42 +0000 |
commit | e7d7bd6567ca8f2e21c72986800ade01f6e6561d (patch) | |
tree | 30f1e17307b047d21bdc1ad3bed6f5d95a3358b6 | |
parent | e963316fd5e5fc422afda43ff8f3409ea7144284 (diff) | |
download | gdb-e7d7bd6567ca8f2e21c72986800ade01f6e6561d.zip gdb-e7d7bd6567ca8f2e21c72986800ade01f6e6561d.tar.gz gdb-e7d7bd6567ca8f2e21c72986800ade01f6e6561d.tar.bz2 |
2004-02-22 Andrew Cagney <cagney@redhat.com>
* frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
to predicates for "seriously old code".
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/frame-unwind.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f9eb986..ce4a621 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-02-22 Andrew Cagney <cagney@redhat.com> + * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p + to predicates for "seriously old code". + * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into runtime if(0). diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index fc5a821..82eaf7c 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -74,7 +74,7 @@ frame_unwind_find_by_frame (struct frame_info *next_frame) int i; struct gdbarch *gdbarch = get_frame_arch (next_frame); struct frame_unwind_table *table = gdbarch_data (gdbarch, frame_unwind_data); - if (!DEPRECATED_USE_GENERIC_DUMMY_FRAMES) + if (!DEPRECATED_USE_GENERIC_DUMMY_FRAMES && legacy_frame_p (gdbarch)) /* Seriously old code. Don't even try to use this new mechanism. (Note: The variable USE_GENERIC_DUMMY_FRAMES is deprecated, not the dummy frame mechanism. All architectures should be using |