This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]