From: Alan Hayward <Alan.Hayward@arm.com>
To: Tom Tromey <tom@tromey.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
nd <nd@arm.com>
Subject: Re: [PATCH 4/4] testsuite: Add option to capture gdbserver debug
Date: Wed, 17 Apr 2019 15:43:00 -0000 [thread overview]
Message-ID: <33798DDF-A24E-47E9-B5BC-9E928C9CA644@arm.com> (raw)
In-Reply-To: <87o955spcj.fsf@tromey.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2478 bytes --]
(Patches 1 to 3 pushed).
> On 16 Apr 2019, at 20:49, Tom Tromey <tom@tromey.com> wrote:
>
>>>>>> "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â.
Done.
> 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?
Agreed, itâs a little awkward. Iâve been playing round with an alternative
implementation and have added it an environment variable (in addition to the
board setting).
So, now you can do:
make check GDBSERVER_DEBUG=all
Which is much nicer. However, see final comment.
>
> 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?
Yes, I removed this commented out line. I suspect it was there so that you could
quickly switch over to using "âdebug". With my changes you shouldnât need it.
>
>
> 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.
Yes, I think itâd be possible using a similar approach. Youâd end up with another
environment variable, REPLAY_LOG=1 or something. My only concern is that itâs
starting down the road of adding more environment vars to the make line - which
people might not want?
Iâll post the updated version as a V2 so that I can use git send-email.
Alan.\x16º&Öéj×!zÊÞ¶êç×w÷Ib²Ö«r\x18\x1dnr\x17¬
next prev parent reply other threads:[~2019-04-17 15:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190416101729.16176-1-alan.hayward@arm.com>
2019-04-16 10:17 ` [PATCH 2/4] gdbserver: Add debug-file option Alan Hayward
2019-04-16 19:39 ` Tom Tromey
[not found] ` <83o956ggdw.fsf@gnu.org>
2019-04-17 9:39 ` Alan Hayward
2019-04-16 14:44 ` [PATCH 0/4] gdbserver/testsuite : Capture gdbserver debug output during testing Eli Zaretskii
[not found] ` <20190416101729.16176-2-alan.hayward@arm.com>
2019-04-16 19:31 ` [PATCH 1/4] gdbserver: Move remote_debug to a single place Tom Tromey
[not found] ` <20190416101729.16176-4-alan.hayward@arm.com>
2019-04-16 19:43 ` [PATCH 3/4] gdbserver: Ensure all debug output uses debug functions Tom Tromey
2019-06-19 9:30 ` Tom de Vries
2019-06-19 13:17 ` Tom Tromey
[not found] ` <20190416101729.16176-5-alan.hayward@arm.com>
2019-04-16 19:49 ` [PATCH 4/4] testsuite: Add option to capture gdbserver debug Tom Tromey
2019-04-17 15:43 ` Alan Hayward [this message]
[not found] <20190423130624.94781-1-alan.hayward@arm.com>
2019-04-23 13:06 ` Alan Hayward
2019-04-25 14:39 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33798DDF-A24E-47E9-B5BC-9E928C9CA644@arm.com \
--to=alan.hayward@arm.com \
--cc=gdb-patches@sourceware.org \
--cc=nd@arm.com \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox