Message ID | 047d7b11194bfccb32051eba3541@google.com |
---|---|
State | New |
Headers | show |
Doug Evans <dje@google.com> writes: > I haven't tried any other gdbserver combinations. > I suspect all of them have the same issue w.r.t. slowness. Yes, I think so. We need to fix it in native-extended-gdbserver.exp, native-gdbserver.exp, and native-stdio-gdbserver.exp. > > How about something like this? > Or have people thought of solving this a different way? I am using this in my board files for arm and aarch64 testing. set_board_info gdb_init_commands [list "set sysroot /"]
diff --git a/gdb/testsuite/boards/native-stdio-gdbserver.exp b/gdb/testsuite/boards/native-stdio-gdbserver.exp index 2ec2a47..c6f2027 100644 --- a/gdb/testsuite/boards/native-stdio-gdbserver.exp +++ b/gdb/testsuite/boards/native-stdio-gdbserver.exp @@ -58,6 +58,8 @@ proc ${board}_spawn { board cmd } { verbose -log "${board}_spawn: $board $cmd" + gdb_test_no_output "set sysroot" + # Save the command to start gdbserver for later retrieval by # ${board}_get_remote_address. global stdio_gdbserver_command