diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-11 13:24:32 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-11 13:24:32 +0000 |
commit | 39d7b0e29259dcf5cf966530ac416d1eb287ccbb (patch) | |
tree | 04a22b736e0581b3314ab29b5bd5c5ed2fcadd44 /gdb/frame-unwind.c | |
parent | 9f9a8002f04316add32d6f20538aaaaa3951b9c9 (diff) | |
download | gdb-39d7b0e29259dcf5cf966530ac416d1eb287ccbb.zip gdb-39d7b0e29259dcf5cf966530ac416d1eb287ccbb.tar.gz gdb-39d7b0e29259dcf5cf966530ac416d1eb287ccbb.tar.bz2 |
gdb/
Code cleanup.
* dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
Rename to dummy_frame_unwind.
(dummy_frame_unwind): Remove.
* dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
* frame-unwind.c (frame_unwind_init): Use address of
dummy_frame_unwind and inline_frame_unwind.
* frame.c (create_sentinel_frame): Use address of
sentinel_frame_unwind.
* inline-frame.c (inline_frame_unwinder): Rename to
inline_frame_unwind.
(inline_frame_unwind): Remove.
* inline-frame.h (inline_frame_unwind): Reference directly the struct.
* sentinel-frame.c (sentinel_frame_unwinder): Rename to
sentinel_frame_unwind.
(sentinel_frame_unwind): Remove.
* sentinel-frame.h (sentinel_frame_unwind): Reference directly the
struct.
Diffstat (limited to 'gdb/frame-unwind.c')
-rw-r--r-- | gdb/frame-unwind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index bbb3e90..8df7adf 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -53,9 +53,9 @@ frame_unwind_init (struct obstack *obstack) /* Start the table out with a few default sniffers. OSABI code can't override this. */ table->list = OBSTACK_ZALLOC (obstack, struct frame_unwind_table_entry); - table->list->unwinder = dummy_frame_unwind; + table->list->unwinder = &dummy_frame_unwind; table->list->next = OBSTACK_ZALLOC (obstack, struct frame_unwind_table_entry); - table->list->next->unwinder = inline_frame_unwind; + table->list->next->unwinder = &inline_frame_unwind; /* The insertion point for OSABI sniffers. */ table->osabi_head = &table->list->next->next; return table; |