Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] add $GDBSERVER to find_gdbserver
@ 2008-05-06 14:18 Doug Evans
  2008-05-06 15:46 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2008-05-06 14:18 UTC (permalink / raw)
  To: gdb-patches

If one wants to run the testsuite with the installed version of gdb one can do:

runtest --tool gdb GDB=/mumble

The testsuite harness assumes that if gdb is /mumble/gdb then gdbserver
is /mumble/gdbserver.  This isn't always the case.

This patch allows one to do

runtest --tool gdb GDB=/mumble GDBSERVER=/mumble2

Ok to check in?

2008-05-05  Doug Evans  <dje@google.com>

	* lib/gdbserver-support.exp (find_gdbserver): Use $GDBSERVER if set.

Index: lib/gdbserver-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdbserver-support.exp,v
retrieving revision 1.12
diff -u -p -u -p -r1.12 gdbserver-support.exp
--- lib/gdbserver-support.exp	30 Jan 2008 00:51:50 -0000	1.12
+++ lib/gdbserver-support.exp	6 May 2008 00:06:15 -0000
@@ -105,6 +105,11 @@ set portnum "2345"
 
 proc find_gdbserver { } {
   global GDB
+  global GDBSERVER
+
+  if [info exists GDBSERVER] {
+    return ${GDBSERVER}
+  }
 
   if [target_info exists gdb_server_prog] {
     return [target_info gdb_server_prog]


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] add $GDBSERVER to find_gdbserver
  2008-05-06 14:18 [RFA] add $GDBSERVER to find_gdbserver Doug Evans
@ 2008-05-06 15:46 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-05-06 15:46 UTC (permalink / raw)
  To: Doug Evans; +Cc: gdb-patches

On Mon, May 05, 2008 at 05:12:21PM -0700, Doug Evans wrote:
> Ok to check in?
> 
> 2008-05-05  Doug Evans  <dje@google.com>
> 
> 	* lib/gdbserver-support.exp (find_gdbserver): Use $GDBSERVER if set.

OK, thanks.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-06  2:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 14:18 [RFA] add $GDBSERVER to find_gdbserver Doug Evans
2008-05-06 15:46 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox