-typedef struct dbg_handle dbg_handle;
-
-/**
- * Debug operations.
- */
-typedef struct debug_ops {
- /** close the stabs handler. */
- void (*close)(dbg_handle *handle);
-
- /** start a new source object (compilation unit) */
- void (*so)(dbg_handle *handle, const char *filename);
-
- /** start an include file */
- void (*include_begin)(dbg_handle *handle, const char *filename);
-
- /** end an include file */
- void (*include_end)(dbg_handle *handle);
-
- /** Main Program */
- void (*main_program)(dbg_handle *handle);
-
- /** dumps the stabs for a method begin */
- void (*method_begin)(dbg_handle *handle, ir_entity *ent, const be_stack_layout_t *layout);
-
- /** dumps the stabs for a method end */
- void (*method_end)(dbg_handle *handle);
-
- /** dumps a line number */
- void (*line)(dbg_handle *handle, unsigned lineno, const char *address);
-
- /** dump types */
- void (*types)(dbg_handle *handle);
-
- /** dump a variable in the global type */
- void (*variable)(dbg_handle *h, struct obstack *obst, ir_entity *ent);
-
-} debug_ops;
-
-/** The base class of all debug implementations. */
-struct dbg_handle {
- const debug_ops *ops;
-};