aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-10-18 08:26:20 +0200
committerTom de Vries <tdevries@suse.de>2023-10-18 08:26:20 +0200
commitb6d3616fb3c0f0ce176b8d916f12fd65f3d9b318 (patch)
tree33556964e8f5b829000aa69475580bd945684652 /gdb/testsuite
parent8bb3d8b1f9016b9506d4407ac0be2738834dc0bd (diff)
downloadgdb-b6d3616fb3c0f0ce176b8d916f12fd65f3d9b318.zip
gdb-b6d3616fb3c0f0ce176b8d916f12fd65f3d9b318.tar.gz
gdb-b6d3616fb3c0f0ce176b8d916f12fd65f3d9b318.tar.bz2
[gdb/testsuite] Fix gdb.base/jit-bfd-name.exp
When running test-case gdb.base/jit-bfd-name.exp, I run into: ... ERROR: tcl error sourcing gdb/testsuite/gdb.base/jit-bfd-name.exp. ERROR: can't read "start": no such variable ... The problem is that commit c96ceed9dce ("gdb: include the end address in in-memory bfd filenames") introduced a use of variable start, but not a definition. Fix this by adding the missing definition. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/jit-bfd-name.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/jit-bfd-name.exp b/gdb/testsuite/gdb.base/jit-bfd-name.exp
index f6a6e76..f4886a6 100644
--- a/gdb/testsuite/gdb.base/jit-bfd-name.exp
+++ b/gdb/testsuite/gdb.base/jit-bfd-name.exp
@@ -135,7 +135,7 @@ foreach addr $symfile_addrs len $symfile_lengths {
set count 1
foreach addr $symfile_addrs len $symfile_lengths {
# Drop any loading zeros from the symfile address.
- set addr [format 0x%x $addr]
+ set start [format 0x%x $addr]
# Calculate the end address.
set end [format 0x%x [expr $addr + $len]]