diff options
author | Tom de Vries <tdevries@suse.de> | 2023-02-01 01:13:37 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-02-01 01:13:37 +0100 |
commit | 6cb7f6d92e4508274fab69c7acbbb961fc45dc70 (patch) | |
tree | 7d1a7295249da0e3754665420e3c903e63bfe487 /libbacktrace/aclocal.m4 | |
parent | df1d8d2e9118066e8f6ec938c89e179b7cdf7e3d (diff) | |
download | gdb-6cb7f6d92e4508274fab69c7acbbb961fc45dc70.zip gdb-6cb7f6d92e4508274fab69c7acbbb961fc45dc70.tar.gz gdb-6cb7f6d92e4508274fab69c7acbbb961fc45dc70.tar.bz2 |
[gas] Emit v2 .debug_line for -gdwarf-2
Currently, when using -gdwarf-2, gas emits a v3 .debug_line contribution.
Fix this by emitting a v2 .debug_line contribution instead.
gas/ChangeLog:
2023-01-31 Tom de Vries <tdevries@suse.de>
PR 23941
* dwarf2dbg.c (DWARF2_LINE_VERSION): Set to 2 for -gdwarf-2.
(DWARF2_LINE_OPCODE_BASE): Handle DWARF2_LINE_VERSION == 2.
(dwarf2_directive_loc): Bump dwarf_level when encountering
v3 .loc options.
(out_debug_line): Don't output v3 standard opcodes for v2.
* testsuite/gas/i386/debug1.d: Update.
* testsuite/gas/i386/dwarf2-line-1.d: Update.
* testsuite/gas/i386/dwarf2-line-4.d: Update.
Diffstat (limited to 'libbacktrace/aclocal.m4')
0 files changed, 0 insertions, 0 deletions