diff options
author | Nick Clifton <nickc@redhat.com> | 2003-04-24 12:47:32 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-04-24 12:47:32 +0000 |
commit | 2c8714f20ff04a6c2781c4aaf1535f37b38d1bd3 (patch) | |
tree | c455f7eecb27e0476fb848acb19f2ac7f8beecbc /gas/config | |
parent | 8d9cd6b19b78f2a0cd3df40b52b13062e72e41b7 (diff) | |
download | gdb-2c8714f20ff04a6c2781c4aaf1535f37b38d1bd3.zip gdb-2c8714f20ff04a6c2781c4aaf1535f37b38d1bd3.tar.gz gdb-2c8714f20ff04a6c2781c4aaf1535f37b38d1bd3.tar.bz2 |
Add support for dwarf2 debug information.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-h8300.c | 14 | ||||
-rw-r--r-- | gas/config/tc-h8300.h | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 037a84c..280a7f6 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -25,6 +25,11 @@ #include "as.h" #include "subsegs.h" #include "bfd.h" + +#ifdef BFD_ASSEMBLER +#include "dwarf2dbg.h" +#endif + #define DEFINE_TABLE #define h8_opcodes ops #include "opcode/h8300.h" @@ -146,6 +151,11 @@ const pseudo_typeS md_pseudo_table[] = {"sbranch", sbranch, L_8}, {"lbranch", sbranch, L_16}, +#ifdef BFD_ASSEMBLER + {"file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0 }, + {"loc", dwarf2_directive_loc, 0 }, +#endif + {"int", pint, 0}, {"data.b", cons, 1}, {"data.w", cons, 2}, @@ -1406,6 +1416,10 @@ md_assemble (str) } build_bytes (instruction, operand); + +#ifdef BFD_ASSEMBLER + dwarf2_emit_insn (instruction->length); +#endif } #ifndef BFD_ASSEMBLER diff --git a/gas/config/tc-h8300.h b/gas/config/tc-h8300.h index e09e506..520ebaf 100644 --- a/gas/config/tc-h8300.h +++ b/gas/config/tc-h8300.h @@ -58,6 +58,9 @@ extern void tc_reloc_mangle visible symbols can be overridden. */ #define EXTERN_FORCE_RELOC 0 +/* Minimum instruction is of 16 bits. */ +#define DWARF2_LINE_MIN_INSN_LENGTH 2 + #ifdef OBJ_ELF /* Provide mappings from the original H8 COFF relocation names to their corresponding BFD relocation names. This allows us to use |