* [pushed 1/3] [gdb/testsuite] Fix gdb.btrace/reconnect.exp for remote target
@ 2023-03-28 20:15 Tom de Vries
2023-03-28 20:15 ` [pushed 2/3] [gdb/testsuite] Fix gdb.btrace/gcore.exp for remote host Tom de Vries
2023-03-28 20:15 ` [pushed 3/3] [gdb/testsuite] Fix gdb.btrace/multi-inferior.exp " Tom de Vries
0 siblings, 2 replies; 3+ messages in thread
From: Tom de Vries @ 2023-03-28 20:15 UTC (permalink / raw)
To: gdb-patches
Fix test-case gdb.btrace/reconnect.exp for target board
remote-gdbserver-on-localhost using gdb_remote_download.
Tested on x86_64-linux.
---
gdb/testsuite/gdb.btrace/reconnect.exp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.btrace/reconnect.exp b/gdb/testsuite/gdb.btrace/reconnect.exp
index 2c8358327a4..0365b054204 100644
--- a/gdb/testsuite/gdb.btrace/reconnect.exp
+++ b/gdb/testsuite/gdb.btrace/reconnect.exp
@@ -27,6 +27,8 @@ if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
return -1
}
+set target_binfile [gdb_remote_download target $binfile]
+
# Make sure we're disconnected and no recording is active, in case
# we're testing with an extended-remote board, therefore already
# connected.
@@ -37,7 +39,7 @@ with_test_prefix "preparation" {
# Start fresh gdbserver.
set gdbserver_reconnect_p 1
-set res [gdbserver_start "" $binfile]
+set res [gdbserver_start "" $target_binfile]
set gdbserver_protocol [lindex $res 0]
set gdbserver_gdbport [lindex $res 1]
gdb_target_cmd $gdbserver_protocol $gdbserver_gdbport
base-commit: 4516ff910bb256b629c72cc5cf3535607296e42d
--
2.35.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pushed 2/3] [gdb/testsuite] Fix gdb.btrace/gcore.exp for remote host
2023-03-28 20:15 [pushed 1/3] [gdb/testsuite] Fix gdb.btrace/reconnect.exp for remote target Tom de Vries
@ 2023-03-28 20:15 ` Tom de Vries
2023-03-28 20:15 ` [pushed 3/3] [gdb/testsuite] Fix gdb.btrace/multi-inferior.exp " Tom de Vries
1 sibling, 0 replies; 3+ messages in thread
From: Tom de Vries @ 2023-03-28 20:15 UTC (permalink / raw)
To: gdb-patches
Fix test-case gdb.btrace/gcore.exp for remote host using
host_standard_output.
Tested on x86_64-linux.
---
gdb/testsuite/gdb.btrace/gcore.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.btrace/gcore.exp b/gdb/testsuite/gdb.btrace/gcore.exp
index d18bda53469..12482bde886 100644
--- a/gdb/testsuite/gdb.btrace/gcore.exp
+++ b/gdb/testsuite/gdb.btrace/gcore.exp
@@ -36,6 +36,6 @@ gdb_test "next" ".*main\.3.*"
gdb_test "record goto begin" ".*main\.2.*"
# generate a core file - this used to assert
-set corefile [standard_output_file core]
+set corefile [host_standard_output_file core]
gdb_test "generate-core-file $corefile" "Saved corefile $corefile" \
"generate-core-file core"
--
2.35.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [pushed 3/3] [gdb/testsuite] Fix gdb.btrace/multi-inferior.exp for remote host
2023-03-28 20:15 [pushed 1/3] [gdb/testsuite] Fix gdb.btrace/reconnect.exp for remote target Tom de Vries
2023-03-28 20:15 ` [pushed 2/3] [gdb/testsuite] Fix gdb.btrace/gcore.exp for remote host Tom de Vries
@ 2023-03-28 20:15 ` Tom de Vries
1 sibling, 0 replies; 3+ messages in thread
From: Tom de Vries @ 2023-03-28 20:15 UTC (permalink / raw)
To: gdb-patches
Fix test-case gdb.btrace/multi-inferior.exp for remote host using
gdb_remote_download.
Tested on x86_64-linux.
---
gdb/testsuite/gdb.btrace/multi-inferior.exp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.btrace/multi-inferior.exp b/gdb/testsuite/gdb.btrace/multi-inferior.exp
index 79e5a1c39bf..2f4388e9501 100644
--- a/gdb/testsuite/gdb.btrace/multi-inferior.exp
+++ b/gdb/testsuite/gdb.btrace/multi-inferior.exp
@@ -31,6 +31,8 @@ if [prepare_for_testing "failed to prepare" $testfile {} {debug}] {
return -1
}
+set host_binfile [gdb_remote_download host $binfile]
+
with_test_prefix "inferior 1" {
if ![runto_main] {
return -1
@@ -38,7 +40,7 @@ with_test_prefix "inferior 1" {
}
with_test_prefix "inferior 2" {
- gdb_test "add-inferior -exec ${binfile}" "Added inferior 2.*" \
+ gdb_test "add-inferior -exec $host_binfile" "Added inferior 2.*" \
"add second inferior"
gdb_test "inferior 2" "Switching to inferior 2.*"
@@ -57,7 +59,7 @@ with_test_prefix "inferior 1" {
}
with_test_prefix "inferior 3" {
- gdb_test "add-inferior -exec ${binfile}" "Added inferior 3.*" \
+ gdb_test "add-inferior -exec ${host_binfile}" "Added inferior 3.*" \
"add third inferior"
gdb_test "inferior 3" "Switching to inferior 3.*"
--
2.35.3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-28 20:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28 20:15 [pushed 1/3] [gdb/testsuite] Fix gdb.btrace/reconnect.exp for remote target Tom de Vries
2023-03-28 20:15 ` [pushed 2/3] [gdb/testsuite] Fix gdb.btrace/gcore.exp for remote host Tom de Vries
2023-03-28 20:15 ` [pushed 3/3] [gdb/testsuite] Fix gdb.btrace/multi-inferior.exp " Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).