From: Stan Shebs <stan@codesourcery.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org, Stan Shebs <stan@codesourcery.com>
Subject: Re: tracing broken if target doesn't do disconnected tracing
Date: Mon, 05 Apr 2010 01:08:00 -0000 [thread overview]
Message-ID: <4BB937EC.6080303@codesourcery.com> (raw)
In-Reply-To: <201004050101.02067.pedro@codesourcery.com>
Pedro Alves wrote:
> The gdbserver tracepoints patch I just posted doesn't
> include disconnected tracing yet. Note what
> happens then: [...]
>
>
>
> This is because common code outside remote.c has no clue
> whether the target supports or not disconnected tracing, and
> just assumes it does. Exposing that property seems to
> conflict a bit with the desire to allow
> "set disconnected-tracing on" before actually being connected,
> so, I've avoided doing it so far. Maybe we could get away with
> a tristate "yes|no|not-known-yet-maybe".
>
> WDYT? Shall I proceed with this as is? Would you like to
> address this?
>
This is pretty close to what we want, I think; but generic code does
need to know about this, so that disconnect_or_stop_tracing can say the
right things. For instance, a target that cannot do disconnected
tracing should warn that the user that the detach is about to bring an
ongoing trace experiment to a halt, and certainly shouldn't tease the
user with a query() that can't possibly succeed.
I'm thinking that this is in some ways like the circular trace buffer
flag, and could be reasonably made accessible via the trace_status
structure. Unless you're just dying to do this yourself :-) , I'll take
care of the two together.
(I can see where this is going longterm - struct trace_status is
effectively a host-side copy of the agent's state, echoed back in
response to any instructions that GDB sends down.)
Stan
next prev parent reply other threads:[~2010-04-05 1:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 0:01 Pedro Alves
2010-04-05 1:08 ` Stan Shebs [this message]
2010-04-05 11:04 ` Pedro Alves
2010-04-07 1:34 ` Stan Shebs
2010-04-07 11:40 ` Pedro Alves
2010-04-07 13:33 ` Stan Shebs
2010-04-07 13:47 ` Pedro Alves
2010-04-07 14:07 ` Pedro Alves
2010-04-07 20:21 ` Stan Shebs
2010-04-07 22:06 ` Pedro Alves
2010-04-07 13:35 ` Pedro Alves
2010-04-07 22:04 ` Stan Shebs
2010-04-08 17:25 ` Pedro Alves
2010-04-08 18:19 ` Stan Shebs
2010-04-08 18:32 ` Pedro Alves
2010-04-08 19:10 ` Stan Shebs
2010-04-09 3:10 ` Stan Shebs
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=4BB937EC.6080303@codesourcery.com \
--to=stan@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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