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.
+2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ 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.
+
2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
(*this_id) = cache->this_id;
}
-static const struct frame_unwind dummy_frame_unwinder =
+const struct frame_unwind dummy_frame_unwind =
{
DUMMY_FRAME,
dummy_frame_this_id,
dummy_frame_sniffer,
};
-const struct frame_unwind *const dummy_frame_unwind = {
- &dummy_frame_unwinder
-};
-
static void
fprint_dummy_frames (struct ui_file *file)
{
/* If the PC falls in a dummy frame, return a dummy frame
unwinder. */
-extern const struct frame_unwind *const dummy_frame_unwind;
+extern const struct frame_unwind dummy_frame_unwind;
#endif /* !defined (DUMMY_FRAME_H) */
/* 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;
information, such as the frame's thread will be added. */
frame->prologue_cache = sentinel_frame_cache (regcache);
/* For the moment there is only one sentinel frame implementation. */
- frame->unwind = sentinel_frame_unwind;
+ frame->unwind = &sentinel_frame_unwind;
/* Link this frame back to itself. The frame is self referential
(the unwound PC is the same as the pc), so make it so. */
frame->next = frame;
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,
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). */
/* The inline frame unwinder. */
-extern const struct frame_unwind *const inline_frame_unwind;
+extern const struct frame_unwind inline_frame_unwind;
/* Skip all inlined functions whose call sites are at the current PC.
Frames for the hidden functions will not appear in the backtrace until the
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,
NULL,
sentinel_frame_prev_arch,
};
-
-const struct frame_unwind *const sentinel_frame_unwind = &sentinel_frame_unwinder;
/* At present there is only one type of sentinel frame. */
-extern const struct frame_unwind *const sentinel_frame_unwind;
+extern const struct frame_unwind sentinel_frame_unwind;
#endif /* !defined (SENTINEL_FRAME_H) */