Skip to content

Commit b6d3616

Browse files
committed
[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 c96ceed ("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.
1 parent 8bb3d8b commit b6d3616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdb/testsuite/gdb.base/jit-bfd-name.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ foreach addr $symfile_addrs len $symfile_lengths {
135135
set count 1
136136
foreach addr $symfile_addrs len $symfile_lengths {
137137
# Drop any loading zeros from the symfile address.
138-
set addr [format 0x%x $addr]
138+
set start [format 0x%x $addr]
139139

140140
# Calculate the end address.
141141
set end [format 0x%x [expr $addr + $len]]

0 commit comments

Comments
 (0)