aboutsummaryrefslogtreecommitdiff
path: root/gdb/inline-frame.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-08-11 13:24:32 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-08-11 13:24:32 +0000
commit39d7b0e29259dcf5cf966530ac416d1eb287ccbb (patch)
tree04a22b736e0581b3314ab29b5bd5c5ed2fcadd44 /gdb/inline-frame.c
parent9f9a8002f04316add32d6f20538aaaaa3951b9c9 (diff)
downloadgdb-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/inline-frame.c')
-rw-r--r--gdb/inline-frame.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c
index 706bcd9..1b19b5f 100644
--- a/gdb/inline-frame.c
+++ b/gdb/inline-frame.c
@@ -256,7 +256,7 @@ inline_frame_sniffer (const struct frame_unwind *self,
return 1;
}
-const struct frame_unwind inline_frame_unwinder = {
+const struct frame_unwind inline_frame_unwind = {
INLINE_FRAME,
inline_frame_this_id,
inline_frame_prev_register,
@@ -264,8 +264,6 @@ const struct frame_unwind inline_frame_unwinder = {
inline_frame_sniffer
};
-const struct frame_unwind *const inline_frame_unwind = &inline_frame_unwinder;
-
/* Return non-zero if BLOCK, an inlined function block containing PC,
has a group of contiguous instructions starting at PC (but not
before it). */