From: Daniel Jacobowitz <drow@mvista.com>
To: ramana@codito.com
Cc: gdb@sources.redhat.com, jimb@redhat.com, ac131313@redhat.com
Subject: Re: Tracepoints on gdb/gdbserver
Date: Tue, 30 Sep 2003 13:06:00 -0000 [thread overview]
Message-ID: <20030930125017.GA23342@nevyn.them.org> (raw)
In-Reply-To: <1064924214.3808.157.camel@numenor.codito.co.in>
On Tue, Sep 30, 2003 at 05:46:54PM +0530, Ramana Radhakrishnan wrote:
> hi all,
> This is regarding tracepoints on gdb/ gdbserver. What we are
Great!
> trying to do is to implement tracepoints in gdbserver so that we could
> have some sort of remote tracepointing. We are at a stage right now
> where we are ready to take the plunge into actually implementing
> tracepoints on gdbserver. What we have ready right now are just stubs
> that take care of the protocol communication between gdb/tracepoint.c
> and gdbserver/server.c . The following is a list of ideas / issues that
> we have come up with.
>
>
> * We were thinking of piggybacking the tracepoint support with
> breakpoints in gdbserver , add a flag indicating that it would be a
> tracepoint to reuse the code that the software breakpoint now uses in
> gdbserver. As we see it there is not too much of a difference between
> tracepoints and breakpoints other than the actions performed on a
> {break/trace}point hit. By doing this the tracepoint implementation
> could piggy back on the breakpoint support and this could also give rise
> to per thread tracepoints in a mechanism similar to per thread
> breakpoints.
That'll work. I got the impression that tracepoints are designed to be
even lighter-weight than that; you can implement them via an agent
expression -> native assembly conversion. But this requires runtime
patching and is quite complicated. Just saving the overhead of the
remote protocol will be useful.
> * Another specification according to the info pages seems to be that
> about the fact that all queries to the stub regarding memory / register
> information should be answered by the stub from the current snapshot of
> a tracepoint.
>
> * Changes to be made in memory request handler , the handler for the
> m<address>,<numbytes> packet in gdbserver/server.c to take care of
> memory requests of transparent regions.
>
> * Agent Expressions Interpreter integration with gdbserver. The
> interpreter to take care of actions to be performed / the actual data to
> be collected for every tracepoint.
>
> * Collect Locals issue : with gdb snapshot dated 20030821 we are unable
> to take care of collect $locals and collect $args .This gives an error
> in gdb "Dont know how to trace local symbol ". This seems to be the
> error value and it looks like support for the Address Class of a symbol
> (LOC_COMPUTED) is not being taken care of right now.
That's right. If someone implements the remainder of tracepoint
support I'll go back to looking at LOC_COMPUTED.
Do you have FSF copyright paperwork on file? If not, please do so.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-09-30 12:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-30 12:50 Ramana Radhakrishnan
2003-09-30 13:06 ` Daniel Jacobowitz [this message]
2003-09-30 14:00 ` Ramana Radhakrishnan
[not found] ` <vt2u16tnbjr.fsf@zenia.home>
2003-10-01 4:44 ` Ramana Radhakrishnan
2003-10-01 10:59 ` Tracepoints with shared lib. support Ramana Radhakrishnan
2003-10-01 14:48 ` Daniel Jacobowitz
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=20030930125017.GA23342@nevyn.them.org \
--to=drow@mvista.com \
--cc=ac131313@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=jimb@redhat.com \
--cc=ramana@codito.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