diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-11 13:22:56 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-11 13:22:56 +0000 |
commit | d49f255ae070788538a2613f4378e2f6753ca513 (patch) | |
tree | a7768d2f6d2579c09b48bd8741253b042e04efc4 /gdb/frame-unwind.c | |
parent | 78c68293d046244aac424aec8d6b1003383c4eaa (diff) | |
download | gdb-d49f255ae070788538a2613f4378e2f6753ca513.tar.gz |
gdb/
Code cleanup.
* frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
and returned value. New comment from frame-unwind.h.
* frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
Extend the comment.
* frame.c (get_frame_id, frame_unwind_register_value)
(create_new_frame, get_prev_frame_1, frame_unwinder_is)
(get_frame_type, frame_unwind_arch): Do not use the return value of
frame_unwind_find_by_frame.
Diffstat (limited to 'gdb/frame-unwind.c')
-rw-r--r-- | gdb/frame-unwind.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index 62e37f63d69..bbb3e9074ce 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -88,7 +88,11 @@ frame_unwind_append_unwinder (struct gdbarch *gdbarch, (*ip)->unwinder = unwinder; } -const struct frame_unwind * +/* Iterate through sniffers for THIS_FRAME frame until one returns with an + unwinder implementation. THIS_FRAME->UNWIND must be NULL, it will get set + by this function. Possibly initialize THIS_CACHE. */ + +void frame_unwind_find_by_frame (struct frame_info *this_frame, void **this_cache) { struct gdbarch *gdbarch = get_frame_arch (this_frame); @@ -104,7 +108,7 @@ frame_unwind_find_by_frame (struct frame_info *this_frame, void **this_cache) this_cache)) { discard_cleanups (old_cleanup); - return entry->unwinder; + return; } do_cleanups (old_cleanup); } |