diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-11 13:24:31 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-11 13:24:31 +0000 |
commit | aaa1118e085f9eceb3e30f764d08ebbe3bc356f2 (patch) | |
tree | b1c737519e1ea178cff912c18ad9595b3ba9a67b /gdb/frame-unwind.c | |
parent | d49f255ae070788538a2613f4378e2f6753ca513 (diff) | |
download | gdb-aaa1118e085f9eceb3e30f764d08ebbe3bc356f2.tar.gz |
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 bbb3e9074ce..8df7adf7148 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; |