aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-10-08 22:08:49 +0200
committerTom de Vries <tdevries@suse.de>2025-10-08 22:08:49 +0200
commit733ccb8b3fd5422606d5c1ebeba246fa89c8f9ae (patch)
tree7ba71c41a4aeaed16d1f8ab8383fe02721781e5d /gdb
parentaa99a69e9eb42fc058a921ed8e793396ff4f506e (diff)
downloadbinutils-733ccb8b3fd5422606d5c1ebeba246fa89c8f9ae.zip
binutils-733ccb8b3fd5422606d5c1ebeba246fa89c8f9ae.tar.gz
binutils-733ccb8b3fd5422606d5c1ebeba246fa89c8f9ae.tar.bz2
[gdb/testsuite] Fix ERROR in expect_build_id_in_core_file
With test-case gdb.python/py-corefile.exp I run into: ... PASS: $exp: test mapped files data: show-build-ids ERROR: tcl error sourcing gdb.python/py-corefile.exp. ERROR: bad option "0x1fa178": \ must be -nobackslashes, -nocommands, or -novariables while executing "subst 0x$offset + 0" ... Fix this using "[subst 0x$offset]" instead. Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/lib/gdb.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 077a7b5..ef6a8f8 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -11635,7 +11635,7 @@ proc expect_build_id_in_core_file { filename } {
}
# Convert OFFSET to decimal.
- set offset [expr {[subst 0x$offset + 0]}]
+ set offset [expr {[subst 0x$offset]}]
# Now figure out the page size. This should be fine for Linux
# hosts, see the istarget check above.