From: Nicholas Mc Guire <hofrat@hofr.at>
To: Lokesh Gupta <lokesh.gupta@gmail.com>
Cc: Michael Snyder <msnyder@specifix.com>, gdb@sourceware.org
Subject: Re: Tracepoints functionality for local targets
Date: Sat, 01 Mar 2008 19:36:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.58.0803011136540.4335@vlab.hofr.at> (raw)
In-Reply-To: <21b011a40802270008u4efb67av598dce53a828913f@mail.gmail.com>
>
> Can't we take the following approach to this issue:
>
> - Treat tracepoints as 'silent' breakpoints such that when the user
> sets tracepoints actually a breakpoint is inserted with a special
> property called as 'trace-silent'
that is what the current implementation actually does except that we put
the tracepoint into a seperate list of breakpoint instead of changing the
description of the currently in use breakpoints. Basically this was done
this way because working your way through the path of the breakpoint code
atleast in gdbserver was a complete mess.
> - During execution, when this breakpoint is hit, the usual GDB flow of
> handling the breakpoint comes into picture, GDB gets control, it
> collects all required data from the current frame ($regs,$args,$locals
> as requested by user for this tracepoint), and then silently continues
> the execution because it can identify it as a special breakpoint with
> the property of 'trace-silent'
The main difference is that you need to add gdb bytecode to the picture
because variables or expressions can't directly be resolved as at time of
defining the variable you don't actually have access to the target - that
is taken care by translating expressions to bytecode and sending the
bytecode to the target that then executes it on hitting a tracepoint and
stores the result only.
> - The data which is collected by an enabled tracepoint is stored as a
> 'snapshot' which is a node in a linked list of all snapshots collected
> during program execution. This linked list could be used for the
> implementation of the tfind like functions to provide necessary
> information to the user.
thats just what the current implementation does - see tp.c and list.c in
the tracpoint code.
hofrat
prev parent reply other threads:[~2008-03-01 19:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 10:03 Lokesh Gupta
2008-02-26 18:11 ` Daniel Jacobowitz
2008-02-26 18:39 ` Doug Evans
2008-03-01 19:29 ` Nicholas Mc Guire
2008-03-01 19:43 ` Doug Evans
2008-03-02 8:50 ` Nicholas Mc Guire
2008-03-02 11:37 ` Robert Dewar
2008-03-02 13:37 ` Nicholas Mc Guire
2008-03-02 14:00 ` Robert Dewar
2008-03-03 10:09 ` Richard Stallman
2008-03-03 19:54 ` Eli Zaretskii
2008-03-04 19:42 ` Richard Stallman
2008-02-27 1:06 ` Michael Snyder
2008-02-27 12:55 ` Lokesh Gupta
2008-02-27 22:00 ` Michael Snyder
2008-03-01 19:36 ` Nicholas Mc Guire [this message]
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=Pine.LNX.4.58.0803011136540.4335@vlab.hofr.at \
--to=hofrat@hofr.at \
--cc=gdb@sourceware.org \
--cc=lokesh.gupta@gmail.com \
--cc=msnyder@specifix.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