aboutsummaryrefslogtreecommitdiff
path: root/gas/config/xtensa-istack.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-11-19 19:40:55 +0000
committerBob Wilson <bob.wilson@acm.org>2007-11-19 19:40:55 +0000
commitb224e962a8c9617f9b04f07393c70776b8edb9b2 (patch)
treeed4109f0381ed0054fc2cde3901c1b98b144ea70 /gas/config/xtensa-istack.h
parent1eee4adcdbd8631ec670405f6d61ada09164de5d (diff)
downloadgdb-b224e962a8c9617f9b04f07393c70776b8edb9b2.zip
gdb-b224e962a8c9617f9b04f07393c70776b8edb9b2.tar.gz
gdb-b224e962a8c9617f9b04f07393c70776b8edb9b2.tar.bz2
* config/xtensa-istack.h (tinsn_struct): Replace linenum field
with loc_directive_seen and debug_line. * config/tc-xtensa.c: Include xtensa-istack.h after dwarf2dbg.h. (xg_build_to_insn): Copy the new fields instead of linenum. (xg_build_token_insn): Likewise. Abort on INSTR_LABEL_DEF and move common code out of the switch. (md_assemble): Set new tinsn fields from DWARF information. Call dwarf2_consume_line_info. (xg_assemble_vliw_tokens): Update the code to select the "best" line number to use new information. Call dwarf2_gen_line_info instead of dwarf2_emit_insn.
Diffstat (limited to 'gas/config/xtensa-istack.h')
-rw-r--r--gas/config/xtensa-istack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/xtensa-istack.h b/gas/config/xtensa-istack.h
index 2f37765..0bd0974 100644
--- a/gas/config/xtensa-istack.h
+++ b/gas/config/xtensa-istack.h
@@ -46,7 +46,8 @@ typedef struct tinsn_struct
bfd_boolean keep_wide;
int ntok;
expressionS tok[MAX_INSN_ARGS];
- unsigned linenum;
+ bfd_boolean loc_directive_seen;
+ struct dwarf2_line_info debug_line;
/* Filled out by relaxation_requirements: */
enum xtensa_relax_statesE subtype;