Running testsuite on linux with gdbserver.
Doug Evans
dje@google.com
Wed Jan 16 23:30:00 GMT 2008
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?
More information about the Gdb
mailing list