diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-16 16:54:57 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-16 16:54:57 +0000 |
commit | c170fb600a47a28398a8dff22587f59fa5d2d37a (patch) | |
tree | 8d6abb004e390495f9b6bb18eb5d5c3c641eea2b /gdb/dummy-frame.c | |
parent | e01f337c0041af1bb05dc5e222cb932b0cc2a619 (diff) | |
download | gdb-c170fb600a47a28398a8dff22587f59fa5d2d37a.zip gdb-c170fb600a47a28398a8dff22587f59fa5d2d37a.tar.gz gdb-c170fb600a47a28398a8dff22587f59fa5d2d37a.tar.bz2 |
2003-01-16 Andrew Cagney <ac131313@redhat.com>
* frame.h (frame_id_unwind_ftype): Change type so that the frame's
ID back using a parameter.
* frame.c (frame_id_unwind): Update call.
(frame_saved_regs_id_unwind): Update.
* dummy-frame.c (dummy_frame_id_unwind): Update function.
* dummy-frame.h (struct frame_id): Add opaque declaration.
(dummy_frame_id_unwind): Update declaration.
Diffstat (limited to 'gdb/dummy-frame.c')
-rw-r--r-- | gdb/dummy-frame.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index fab10c0..99d388d 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -345,16 +345,17 @@ dummy_frame_pc_unwind (struct frame_info *frame, } -struct frame_id -dummy_frame_id_unwind (struct frame_info *frame, - void **cache) +void +dummy_frame_id_unwind (struct frame_info *frame, void **cache, + struct frame_id *id) { struct dummy_frame *dummy = cached_find_dummy_frame (frame, cache); /* Oops! In a dummy-frame but can't find the stack dummy. Pretend that the frame doesn't unwind. Should this function instead return a has-no-caller indication? */ if (dummy == NULL) - return null_frame_id; - return dummy->id; + (*id) = null_frame_id; + else + (*id) = dummy->id; } |