From: Yao Qi <yao@codesourcery.com>
To: <gdb-patches@sourceware.org>
Cc: Pedro Alves <palves@redhat.com>
Subject: Re: [PATCH] [testsuite] Fix in board_file native-gdbserver.exp
Date: Fri, 22 Jun 2012 07:49:00 -0000 [thread overview]
Message-ID: <5343705.85RU0XsB2d@qiyao.dyndns.org> (raw)
In-Reply-To: <4FE32949.9040109@redhat.com>
On Thursday, June 21, 2012 03:01:45 PM Pedro Alves wrote:
> I think native-stdio-gdbserver.exp does have the same problem, though?
>
Yes, I can reproduce the same problem on board file native-stdio-
gdbserver.exp. I copy the same stuff into native-stdio-gdbserver.exp, and run
testsuite against it, no change on test result.
> > gdb/testsuite:
> >
> >
> > 2012-06-21 Yao Qi <yao@codesourcery.com>
> >
> >
> >
> > * boards/native-gdbserver.exp: New proc ${board}_exec.
>
> Okay, thanks.
Here is what I committed.
--
Yao (齐尧)
gdb/testsuite:
2012-06-22 Yao Qi <yao@codesourcery.com>
* boards/native-gdbserver.exp: New proc ${board}_exec.
* boards/native-stdio-gdbserver.exp: Likewise.
---
gdb/testsuite/boards/native-gdbserver.exp | 12 ++++++++++++
gdb/testsuite/boards/native-stdio-gdbserver.exp | 12 ++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/gdb/testsuite/boards/native-gdbserver.exp
b/gdb/testsuite/boards/native-gdbserver.exp
index 5fa02a4..89702df 100644
--- a/gdb/testsuite/boards/native-gdbserver.exp
+++ b/gdb/testsuite/boards/native-gdbserver.exp
@@ -64,6 +64,18 @@ proc ${board}_spawn { board cmd } {
return $result
}
+proc ${board}_exec { hostname program args } {
+ global board_info
+
+ set baseboard [lindex [split $hostname "/"] 0]
+
+ set board_info($baseboard,isremote) 0
+ set result [remote_exec $hostname $program $args]
+ set board_info($baseboard,isremote) 1
+
+ return $result
+}
+
proc ${board}_download { board host dest } {
return $host
}
diff --git a/gdb/testsuite/boards/native-stdio-gdbserver.exp
b/gdb/testsuite/boards/native-stdio-gdbserver.exp
index 703f370..9804289 100644
--- a/gdb/testsuite/boards/native-stdio-gdbserver.exp
+++ b/gdb/testsuite/boards/native-stdio-gdbserver.exp
@@ -126,6 +126,18 @@ proc ${board}_spawn { board cmd } {
return $result
}
+proc ${board}_exec { hostname program args } {
+ global board_info
+
+ set baseboard [lindex [split $hostname "/"] 0]
+
+ set board_info($baseboard,isremote) 0
+ set result [remote_exec $hostname $program $args]
+ set board_info($baseboard,isremote) 1
+
+ return $result
+}
+
proc ${board}_download { board host dest } {
return $host
}
--
1.7.7.6
prev parent reply other threads:[~2012-06-22 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-21 7:55 Yao Qi
2012-06-21 14:02 ` Pedro Alves
2012-06-22 7:49 ` Yao Qi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5343705.85RU0XsB2d@qiyao.dyndns.org \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox