Skip to content

Commit fdefd3b

Browse files
committed
[gdb/testsuite] Fix gdb.arch/amd64-stap-special-operands.exp for remote host
With test-case gdb.arch/amd64-stap-special-operands.exp and host board local-remote-host-notty and target board native-gdbserver I run into: ... (gdb) break -pstap three_arg^M No probe matching objfile=`<any>', provider=`<any>', name=`three_arg'^M Make breakpoint pending on future shared library load? (y or [n]) n^M (gdb) FAIL: gdb.arch/amd64-stap-special-operands.exp: probe: three_arg: \ gdb_breakpoint: set breakpoint at -pstap three_arg ... due to compiling two executables with the same name, and when uploading the second one from host to build, we run into: ... Upload from 127.0.0.1 failed, \ $outputs/gdb.arch/amd64-stap-special-operands/amd64-stap-special-operands: \ Text file busy. ... Fix this by making the executable names unique. Tested on x86_64-linux.
1 parent 7b0d27b commit fdefd3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ proc test_probe { probe_name } {
2828

2929
standard_testfile amd64-stap-triplet.S
3030

31-
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
31+
if { [prepare_for_testing "failed to prepare" $testfile-triplet $srcfile] } {
3232
return -1
3333
}
3434

3535
test_probe "triplet"
3636

3737
standard_testfile amd64-stap-three-arg-disp.S
3838

39-
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
39+
if { [prepare_for_testing "failed to prepare" $testfile-three-arg-displ \
40+
$srcfile] } {
4041
return -1
4142
}
4243

0 commit comments

Comments
 (0)