Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Static tracepoints support
Date: Mon, 28 Jun 2010 20:04:00 -0000	[thread overview]
Message-ID: <83hbkmc481.fsf@gnu.org> (raw)
In-Reply-To: <201006281326.39820.pedro@codesourcery.com>

> From: Pedro Alves <pedro@codesourcery.com>
> Date: Mon, 28 Jun 2010 13:26:38 +0100
> 
> > > +/* When symbols change, it probably means the sources changed as well,
> > > +   and it might mean the static tracepoint markers are no longer at
> > > +   the same address or line numbers they used to be at last we
> > > +   checked.  Losing your static tracepoints whenever you rebuild is
> > > +   undesirable.  This function tries to resync/rematch gdb static
> > > +   tracepoints with the markers on the target.  The heuristic is:
> > > +
> > > +   1) look for a marker at the old PC.  If one is found there, assume
> > > +   to be the same marker.  If the name / string id of the marker found
> > > +   is different from the previous known name, assume that means the
> > > +   user renamed the marker in the sources, and output a warning.
> > > +
> > > +   2) If a marker is no longer found at the same address, it may mean
> > > +   the marker no longer exists.  But it may also just mean the code
> > > +   changed a bit.  Maybe the user added a few lines of code that made
> > > +   the marker move up or down (in line number terms).  Ask the target
> > > +   for info about the marker with the string id as we knew it.  If
> > > +   found, update line number and address in the matching static
> > > +   tracepoint.  */
> > 
> > I would suggest to reverse the order of the steps: first to query the
> > target about the marker with the old string ID, and only if it is not
> > found, use the heuristics in step 1.  The rationale is that if the
> > target can provide the info, it is always more reliable than any
> > heuristics.

You didn't respond to this part.  I'm curious to hear your opinion on
why it is TRT the way you coded it.


  parent reply	other threads:[~2010-06-28 20:04 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-25 18:33 Pedro Alves
2010-06-26 10:34 ` Eli Zaretskii
2010-06-28 12:28   ` Pedro Alves
2010-06-28 20:03     ` Eli Zaretskii
2010-06-29 21:00       ` Pedro Alves
2010-06-30 18:14         ` Eli Zaretskii
2010-07-01 10:41           ` Pedro Alves
2010-07-01 14:22           ` clarify "help break" output a bit (Re: Static tracepoints support) Pedro Alves
2010-07-01 17:10             ` Eli Zaretskii
2010-06-28 20:04     ` Eli Zaretskii [this message]
2010-07-01 13:50     ` el vs ell " Pedro Alves
2010-07-01 16:26       ` Michael Snyder
2010-07-01 17:07       ` Eli Zaretskii
2010-07-01 17:28         ` Pedro Alves
2010-07-01 14:00     ` Static tracepoints support Pedro Alves
2010-07-01 17:08       ` Eli Zaretskii
2010-07-01 17:13         ` Pedro Alves
2010-07-01 14:15     ` add a few index entries (Re: Static tracepoints support) Pedro Alves
2010-07-01 17:09       ` Eli Zaretskii
2010-07-01 15:38     ` remove redundant blank from strings " Pedro Alves
2010-07-01 17:11       ` Eli Zaretskii
2010-07-01 16:36     ` dynamic type column width in "info breakpoints" output " Pedro Alves
2010-07-01 17:17       ` Eli Zaretskii
2010-07-02 21:35       ` Tom Tromey
2010-07-21 11:30         ` Pedro Alves
2010-06-27 22:47 ` Static tracepoints support Michael Snyder

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=83hbkmc481.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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