diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2022-01-12 05:41:09 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2022-01-12 05:51:25 +0100 |
commit | c4f5871457222f2c4a99e662dfa16b7c662f750a (patch) | |
tree | 8429d04530256acaab9ec6e9cd35964a9d2cea04 /gas/testsuite | |
parent | b02db37812bef6e12772bfbddd004e50534eaed1 (diff) | |
download | gdb-c4f5871457222f2c4a99e662dfa16b7c662f750a.zip gdb-c4f5871457222f2c4a99e662dfa16b7c662f750a.tar.gz gdb-c4f5871457222f2c4a99e662dfa16b7c662f750a.tar.bz2 |
objdump, readelf: Emit "CU:" format only when wide output is requested
As pre-approved by Alan in
https://sourceware.org/pipermail/binutils/2021-September/118019.html
and I believe people have run into getting testsuite failures for
test-environments with "long" directory names, at least once more
since that time. Enough. I grepped the gas, binutils and ld
testsuites for "CU:" to catch target-specific occurrences, but I
noticed none. I chose to remove "CU:" on the objdump tests instead of
changing options to get the wide format, so as to keep the name of the
test consistent with actual options; but added it to the readelf
options for the gas test as I believe the "CU:" format is preferable.
Tested for cris-elf and native x86_64-pc-linux-gnu.
binutils:
* dwarf.c (display_debug_lines_decoded): Don't check the
string length of the directory, instead emit the "CU: dir/name"
format only if wide output is requested.
* testsuite/binutils-all/dw5.W, testsuite/binutils-all/objdump.WL:
Adjust accordingly.
gas:
* testsuite/gas/elf/dwarf-5-loc0.d: Add -W to readelf options.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/elf/dwarf-5-loc0.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/testsuite/gas/elf/dwarf-5-loc0.d b/gas/testsuite/gas/elf/dwarf-5-loc0.d index eb752c9..7e8473a 100644 --- a/gas/testsuite/gas/elf/dwarf-5-loc0.d +++ b/gas/testsuite/gas/elf/dwarf-5-loc0.d @@ -1,5 +1,5 @@ #as: -gdwarf-5 -#readelf: -wL +#readelf: -W -wL #name: DWARF5 .loc 0 # The am33 cr16 crx ft32 mn10 msp430 nds32 and rl78 targets do not evaluate the subtraction of symbols at assembly time. # The riscv targets do not support the subtraction of symbols. |