* Running testsuite on linux with gdbserver.
@ 2008-01-16 23:30 Doug Evans
2008-01-17 14:39 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2008-01-16 23:30 UTC (permalink / raw)
To: gdb
If I hack dejagnu/framework.exp:is_remote to treat linux-gdbserver as
a non-remote target, the following works:
bash$ runtest --tool gdb --target_board linux-gdbserver
target = i686-linux
Here is the hack:
proc is_remote { board } {
[...]
+ if { $board == "linux-gdbserver" } {
+ verbose "board is $board, not remote" 3
+ return 0;
+ }
# We're on the "build". The check for the empty string is just for
# paranoia's sake--we shouldn't ever get one. "unix" is a magic
# string that should really go away someday.
if { $board == "build" || $board == "unix" || $board == "" } {
verbose "board is $board, not remote" 3
return 0
}
Note that dejagnu thinks unix is remote [board_info(unix,isremote) ==
1] but it still works because of the above hack to watch for $board ==
"unix".
Do folks ever test gdbserver this way? Am I doing something wrong
that makes the above hack necessary?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Running testsuite on linux with gdbserver.
2008-01-16 23:30 Running testsuite on linux with gdbserver Doug Evans
@ 2008-01-17 14:39 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-01-17 14:39 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb
On Wed, Jan 16, 2008 at 03:29:59PM -0800, Doug Evans wrote:
> If I hack dejagnu/framework.exp:is_remote to treat linux-gdbserver as
> a non-remote target, the following works:
Try this:
http://sourceware.org/gdb/wiki/Native_gdbserver_testing
Same, but without hacking DejaGNU.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-17 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-16 23:30 Running testsuite on linux with gdbserver Doug Evans
2008-01-17 14:39 ` Daniel Jacobowitz
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).