[PATCH 4/4] testsuite: Add option to capture gdbserver debug
Tom Tromey
tom@tromey.com
Tue Apr 16 19:49:00 GMT 2019
>>>>> "Alan" == Alan Hayward <Alan.Hayward@arm.com> writes:
Alan> Add board option which enables gdbserver debug and sends it to the
Alan> file gdbserver.log, located in the output directory for the current
Alan> test. Document this.
Alan> Add debug versions of the native gdbserver board files.
Alan> Disable tspeed.exp when debugging to prevent the log file filling
Alan> many gigabytes then timing out.
Thanks.
Alan> +gdbserver,debug
Alan> +
Alan> + When set gdbserver debug is outputed to the file gdbserver.log in the test
I think it should say "is sent" rather than "is outputed".
Alan> diff --git a/gdb/testsuite/boards/native-extended-gdbserver-debug.exp b/gdb/testsuite/boards/native-extended-gdbserver-debug.exp
I wonder if a new board is needed for this?
Could it be done some other way, like a command-line setting?
TBH I'm not sure what the typical approach is for something like this.
Alan> if {![info exists gdbserver_reconnect_p] || !$gdbserver_reconnect_p} {
Alan> # GDB client could accidentally connect to a stale server.
Alan> - # append gdbserver_command " --debug --once"
Alan> append gdbserver_command " --once"
Was this intentional?
One random thought I had about this series is that it would be nice to
have a way to get "set remotelogfile" output in the test directory.
That way a failing test could be re-run with gdbreplay without much
trouble.
Tom
More information about the Gdb-patches
mailing list