aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame-unwind.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-08-11 13:22:57 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-08-11 13:22:57 +0000
commit9f9a8002f04316add32d6f20538aaaaa3951b9c9 (patch)
treefe78218d7698fca86d3d641853f9feaae5f50c07 /gdb/frame-unwind.h
parentcb2e07a6f002d0b1b6e7339b0475e674955c03ef (diff)
downloadgdb-9f9a8002f04316add32d6f20538aaaaa3951b9c9.zip
gdb-9f9a8002f04316add32d6f20538aaaaa3951b9c9.tar.gz
gdb-9f9a8002f04316add32d6f20538aaaaa3951b9c9.tar.bz2
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.h')
-rw-r--r--gdb/frame-unwind.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/frame-unwind.h b/gdb/frame-unwind.h
index 9079e5d..e4cf320 100644
--- a/gdb/frame-unwind.h
+++ b/gdb/frame-unwind.h
@@ -160,11 +160,12 @@ extern void frame_unwind_prepend_unwinder (struct gdbarch *gdbarch,
extern void frame_unwind_append_unwinder (struct gdbarch *gdbarch,
const struct frame_unwind *unwinder);
-/* Iterate through sniffers for THIS frame until one returns with an
- unwinder implementation. Possibly initialize THIS_CACHE. */
+/* 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. */
-extern const struct frame_unwind *frame_unwind_find_by_frame (struct frame_info *this_frame,
- void **this_cache);
+extern void frame_unwind_find_by_frame (struct frame_info *this_frame,
+ void **this_cache);
/* Helper functions for value-based register unwinding. These return
a (possibly lazy) value of the appropriate type. */