char *nasm_strcat(const char *one, const char *two);
+/* Do-nothing versions of all the debug routines */
+struct ofmt;
+void null_debug_init(struct ofmt *of, void *id, FILE * fp, efunc error);
+void null_debug_linenum(const char *filename, int32_t linenumber,
+ int32_t segto);
+void null_debug_deflabel(char *name, int32_t segment, int64_t offset,
+ int is_global, char *special);
void null_debug_routine(const char *directive, const char *params);
+void null_debug_typevalue(int32_t type);
+void null_debug_output(int type, void *param);
+void null_debug_cleanup(void);
extern struct dfmt null_debug_form;
extern struct dfmt *null_debug_arr[2];
static void debug32_directive(const char *, const char *);
/* stabs debugging routines */
-static void stabs32_init(struct ofmt *, void *, FILE *, efunc);
static void stabs32_linenum(const char *filename, int32_t linenumber, int32_t);
static void stabs32_output(int, void *);
static void stabs32_generate(void);
static struct dfmt df_stabs = {
"ELF32 (i386) stabs debug format for Linux/Unix",
"stabs",
- stabs32_init,
+ null_debug_init,
stabs32_linenum,
debug32_deflabel,
debug32_directive,
};
/* again, the stabs debugging stuff (code) */
-static void stabs32_init(struct ofmt *of, void *id, FILE * fp, efunc error)
-{
- (void)of;
- (void)id;
- (void)fp;
- (void)error;
-}
-
static void stabs32_linenum(const char *filename, int32_t linenumber,
int32_t segto)
{
static void debug64_directive(const char *, const char *);
/* stabs debugging routines */
-static void stabs64_init(struct ofmt *, void *, FILE *, efunc);
static void stabs64_linenum(const char *filename, int32_t linenumber, int32_t);
static void stabs64_output(int, void *);
static void stabs64_generate(void);
static struct dfmt df_stabs = {
"ELF64 (x86-64) stabs debug format for Linux/Unix",
"stabs",
- stabs64_init,
+ null_debug_init,
stabs64_linenum,
debug64_deflabel,
debug64_directive,
}
/* stabs debugging routines */
-static void stabs64_init(struct ofmt *of, void *id, FILE * fp, efunc error)
-{
- (void)of;
- (void)id;
- (void)fp;
- (void)error;
-}
-
static void stabs64_linenum(const char *filename, int32_t linenumber, int32_t segto)
{