1 #ifndef __BE_DBGOUT_H__
2 #define __BE_DBGOUT_H__
4 * Debug output support.
10 typedef struct dbg_handle dbg_handle;
15 typedef struct debug_ops {
16 /** close the stabs handler. */
17 void (*close)(dbg_handle *h);
19 /** begin a new file */
20 void (*begin)(dbg_handle *handle, const char *filename);
22 /** prints the stabs for a function */
23 void (*method)(dbg_handle *h, entity *ent);
25 /** prints a line number */
26 void (*line)(dbg_handle *h, unsigned lineno, const char *address);
29 /** The base class of all debug implementations. */
34 /** close a debug handler. */
35 void be_dbg_close(dbg_handle *h);
37 /** begin a new file */
38 void be_dbg_begin(dbg_handle *handle, const char *filename);
40 /** debug for a function */
41 void be_dbg_method(dbg_handle *h, entity *ent);
43 /** debug for line number */
44 void be_dbg_line(dbg_handle *h, unsigned lineno, const char *address);
46 /** Opens a stabs handler. */
47 dbg_handle *be_stabs_open(FILE *out);
49 #endif /* __BE_DBGOUT_H__ */