* [RFA] patch to testsuite/config/sid.exp
@ 2002-04-29 15:18 Ben Elliston
2002-04-29 16:56 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: Ben Elliston @ 2002-04-29 15:18 UTC (permalink / raw)
To: gdb-patches; +Cc: Graydon Hoare
The following patch (submitted on behalf of Graydon Hoare) adds
support for testing GDB on SID simulators using a new mode of
invocation. Okay to commit?
Ben
2002-02-14 Graydon Hoare <graydon@redhat.com>
* config/sid.exp: Include support for "rawsid" protocol.
Index: config/sid.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/config/sid.exp,v
retrieving revision 1.25
diff -u -p -r1.25 sid.exp
--- sid.exp 2002/04/05 23:31:59 1.25
+++ sid.exp 2002/04/29 22:16:49
@@ -53,6 +53,8 @@ proc sid_start {} {
}
if { [board_info target sim,protocol] == "sid" } {
set spawncmd "[target_info sim] [target_info sim,options] $sidendian2 -e \"set cpu-gdb-socket sockaddr-local 0.0.0.0:$port\""
+ } elseif { [board_info target sim,protocol] == "rawsid" } {
+ set spawncmd "[target_info sim] [target_info sim,options] -$sidendian --gdb=$port"
} else {
set spawncmd "../../sid/bsp/[target_info sim] $sidendian --gdb=$port [target_info sim,options]"
}
@@ -67,6 +69,8 @@ proc sid_start {} {
# FIXME: sim,options may be from the build tree, should find
# it in the install tree.
set spawncmd "sid [target_info sim,options] $sidendian2 -e \"set cpu-gdb-socket sockaddr-local 0.0.0.0:$port\""
+ } elseif { [board_info target sim,protocol] == "rawsid" } {
+ set spawncmd "[target_info sim] [target_info sim,options] -$sidendian --gdb=$port"
} else {
set spawncmd "[target_info sim] $sidendian --gdb=$port [target_info sim,options]"
}
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] patch to testsuite/config/sid.exp
2002-04-29 15:18 [RFA] patch to testsuite/config/sid.exp Ben Elliston
@ 2002-04-29 16:56 ` Michael Snyder
2002-04-30 11:51 ` Ben Elliston
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2002-04-29 16:56 UTC (permalink / raw)
To: Ben Elliston; +Cc: gdb-patches, Graydon Hoare
Ben Elliston wrote:
>
> The following patch (submitted on behalf of Graydon Hoare) adds
> support for testing GDB on SID simulators using a new mode of
> invocation. Okay to commit?
>
> Ben
It all looks ok to me, except I have a question about...
>
> 2002-02-14 Graydon Hoare <graydon@redhat.com>
>
> * config/sid.exp: Include support for "rawsid" protocol.
>
> Index: config/sid.exp
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gdb/testsuite/config/sid.exp,v
> retrieving revision 1.25
> diff -u -p -r1.25 sid.exp
> --- sid.exp 2002/04/05 23:31:59 1.25
> +++ sid.exp 2002/04/29 22:16:49
> @@ -53,6 +53,8 @@ proc sid_start {} {
> }
> if { [board_info target sim,protocol] == "sid" } {
> set spawncmd "[target_info sim] [target_info sim,options] $sidendian2 -e \"set cpu-gdb-socket sockaddr-local 0.0.0.0:$port\""
> + } elseif { [board_info target sim,protocol] == "rawsid" } {
> + set spawncmd "[target_info sim] [target_info sim,options] -$sidendian --gdb=$port"
> } else {
> set spawncmd "../../sid/bsp/[target_info sim] $sidendian --gdb=$port [target_info sim,options]"
one of the diffs between these two spawncmds, namely, that the old one
specifies a path before [target_info sim], but your new one doesn't.
Is that intentional?
> }
> @@ -67,6 +69,8 @@ proc sid_start {} {
> # FIXME: sim,options may be from the build tree, should find
> # it in the install tree.
> set spawncmd "sid [target_info sim,options] $sidendian2 -e \"set cpu-gdb-socket sockaddr-local 0.0.0.0:$port\""
> + } elseif { [board_info target sim,protocol] == "rawsid" } {
> + set spawncmd "[target_info sim] [target_info sim,options] -$sidendian --gdb=$port"
> } else {
> set spawncmd "[target_info sim] $sidendian --gdb=$port [target_info sim,options]"
> }
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA] patch to testsuite/config/sid.exp
2002-04-29 16:56 ` Michael Snyder
@ 2002-04-30 11:51 ` Ben Elliston
0 siblings, 0 replies; 3+ messages in thread
From: Ben Elliston @ 2002-04-30 11:51 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches, Graydon Hoare
>>>>> "Michael" == Michael Snyder <msnyder@redhat.com> writes:
Michael> It all looks ok to me, except I have a question about...
>> --- sid.exp 2002/04/05 23:31:59 1.25
>> +++ sid.exp 2002/04/29 22:16:49
>> @@ -53,6 +53,8 @@ proc sid_start {} {
>> }
>> if { [board_info target sim,protocol] == "sid" } {
>> set spawncmd "[target_info sim] [target_info sim,options] $sidendian2 -e \"set cpu-gdb-socket sockaddr-local 0.0.0.0:$port\""
>> + } elseif { [board_info target sim,protocol] == "rawsid" } {
>> + set spawncmd "[target_info sim] [target_info sim,options] -$sidendian --gdb=$port"
>> } else {
>> set spawncmd "../../sid/bsp/[target_info sim] $sidendian --gdb=$port [target_info sim,options]"
Michael> one of the diffs between these two spawncmds, namely, that the old one
Michael> specifies a path before [target_info sim], but your new one doesn't.
Michael> Is that intentional?
Yes.
Ben
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-30 18:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-29 15:18 [RFA] patch to testsuite/config/sid.exp Ben Elliston
2002-04-29 16:56 ` Michael Snyder
2002-04-30 11:51 ` Ben Elliston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox