This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Running testsuite on linux with gdbserver.
- From: "Doug Evans" <dje at google dot com>
- To: gdb at sourceware dot org
- Date: Wed, 16 Jan 2008 15:29:59 -0800
- Subject: Running testsuite on linux with gdbserver.
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?