aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-09-08 12:27:02 +0200
committerTom de Vries <tdevries@suse.de>2023-09-08 12:27:02 +0200
commit7993baae024b283113aeff34a1880e1b0360b711 (patch)
tree2342a40bbe3e8e12d7b25ec80852c43e82190fc7 /gdb
parent932a49fff332ba4921dc9e38cf45bf65a301f2c6 (diff)
downloadgdb-7993baae024b283113aeff34a1880e1b0360b711.zip
gdb-7993baae024b283113aeff34a1880e1b0360b711.tar.gz
gdb-7993baae024b283113aeff34a1880e1b0360b711.tar.bz2
[gdb/testsuite] Fix build-ids in gdb.dwarf2/dwzbuildid.exp
When looking at the execs from test-case gdb.dwarf2/dwzbuildid.exp using readelf, I run into: ... $ readelf -w dwzbuildid-ok > READELF readelf: Warning: Corrupt debuglink section: .gnu_debugaltlink readelf: Warning: Build-ID is too short (0x6 bytes) ... Fix this by ensuring the Build-IDs are the required 20 bytes. Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dwzbuildid.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp
index ba9db41..1aad712 100644
--- a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp
+++ b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp
@@ -90,11 +90,11 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
# The values don't really matter, just whether they are equal.
set ok_prefix 01
-set ok_suffix 0203040506
-set ok_suffix2 02030405ff
+set ok_suffix 02030405060708091011121314151617181920
+set ok_suffix2 020304050607080910111213141516171819ff
set ok_buildid ${ok_prefix}${ok_suffix}
set ok_buildid2 ${ok_prefix}${ok_suffix2}
-set bad_buildid ffffffffffff
+set bad_buildid [string repeat ff 20]
set debugdir [standard_output_file {}]
set basedir $debugdir/.build-id