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/sentinel-frame.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/sentinel-frame.c')
-rw-r--r-- | gdb/sentinel-frame.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/sentinel-frame.c b/gdb/sentinel-frame.c index 8c11d7bd10a..ddb471dd5eb 100644 --- a/gdb/sentinel-frame.c +++ b/gdb/sentinel-frame.c @@ -86,7 +86,7 @@ sentinel_frame_prev_arch (struct frame_info *this_frame, return get_regcache_arch (cache->regcache); } -const struct frame_unwind sentinel_frame_unwinder = +const struct frame_unwind sentinel_frame_unwind = { SENTINEL_FRAME, sentinel_frame_this_id, @@ -96,5 +96,3 @@ const struct frame_unwind sentinel_frame_unwinder = NULL, sentinel_frame_prev_arch, }; - -const struct frame_unwind *const sentinel_frame_unwind = &sentinel_frame_unwinder; |