diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-04-07 08:16:29 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-04-07 08:16:29 +0200 |
commit | 0f47cb17d14172a5250b2146b82583271280d170 (patch) | |
tree | c3834af0ffeeb5d1a00c3839307209f018dbf02c /gas/config/tc-aarch64.c | |
parent | 13d414afa06a6e290126dbebccdb5076cc6620b8 (diff) | |
download | gdb-0f47cb17d14172a5250b2146b82583271280d170.zip gdb-0f47cb17d14172a5250b2146b82583271280d170.tar.gz gdb-0f47cb17d14172a5250b2146b82583271280d170.tar.bz2 |
Arm64: arrange for line number emission for .inst
Just like insns encoded the more conventional way these should have line
number info associated with them.
Diffstat (limited to 'gas/config/tc-aarch64.c')
-rw-r--r-- | gas/config/tc-aarch64.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index a4ef652..cbebc6b 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -1982,6 +1982,7 @@ static void s_aarch64_inst (int ignored ATTRIBUTE_UNUSED) { expressionS exp; + unsigned n = 0; #ifdef md_flush_pending_output md_flush_pending_output (); @@ -2020,10 +2021,13 @@ s_aarch64_inst (int ignored ATTRIBUTE_UNUSED) unsigned int val = exp.X_add_number; exp.X_add_number = SWAP_32 (val); } - emit_expr (&exp, 4); + emit_expr (&exp, INSN_SIZE); + ++n; } while (*input_line_pointer++ == ','); + dwarf2_emit_insn (n * INSN_SIZE); + /* Put terminator back into stream. */ input_line_pointer--; demand_empty_rest_of_line (); |