diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-06-27 22:07:33 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-27 22:07:33 -0700 |
commit | 31b707bef0af5fffe7c507089e1e281925b13aae (patch) | |
tree | 694e0784b6cf601eed73edcdde4ceb4dd2872255 /output/nulldbg.c | |
parent | 2b1f51f1cac1e6b7b75d226b2e01329365319d0d (diff) | |
download | nasm-31b707bef0af5fffe7c507089e1e281925b13aae.tar.gz |
Move backend-specific code to output/; break out null debug stuff
Move backend-specific code into the output/ directory, and make the
null debugging backend a separate file (it certainly isn't needed for
ndisasm...)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output/nulldbg.c')
-rw-r--r-- | output/nulldbg.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/output/nulldbg.c b/output/nulldbg.c new file mode 100644 index 00000000..e1b13e87 --- /dev/null +++ b/output/nulldbg.c @@ -0,0 +1,56 @@ +#include "nasm.h" +#include "nasmlib.h" + +void null_debug_init(struct ofmt *of, void *id, FILE * fp, efunc error) +{ + (void)of; + (void)id; + (void)fp; + (void)error; +} +void null_debug_linenum(const char *filename, int32_t linenumber, int32_t segto) +{ + (void)filename; + (void)linenumber; + (void)segto; +} +void null_debug_deflabel(char *name, int32_t segment, int64_t offset, + int is_global, char *special) +{ + (void)name; + (void)segment; + (void)offset; + (void)is_global; + (void)special; +} +void null_debug_routine(const char *directive, const char *params) +{ + (void)directive; + (void)params; +} +void null_debug_typevalue(int32_t type) +{ + (void)type; +} +void null_debug_output(int type, void *param) +{ + (void)type; + (void)param; +} +void null_debug_cleanup(void) +{ +} + +struct dfmt null_debug_form = { + "Null debug format", + "null", + null_debug_init, + null_debug_linenum, + null_debug_deflabel, + null_debug_routine, + null_debug_typevalue, + null_debug_output, + null_debug_cleanup +}; + +struct dfmt *null_debug_arr[2] = { &null_debug_form, NULL }; |