Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [4/9] associate bpstat with location
Date: Sat, 08 Sep 2007 12:16:00 -0000	[thread overview]
Message-ID: <utzq5qro8.fsf@gnu.org> (raw)
In-Reply-To: <200709081524.48816.vladimir@codesourcery.com> (message from 	Vladimir Prus on Sat, 8 Sep 2007 15:24:48 +0400)

> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Sat, 8 Sep 2007 15:24:48 +0400
> Cc: gdb-patches@sources.redhat.com
> 
> > A minor stylistic point: could we please avoid the annoying
> > "Likewise"s?  The canonical way of writing a ChangeLog entry for
> > several functions with an identical change is this:
> > 
> > 	(bpstat_find_breakpoint, bpstat_find_step_resume_breakpoint)
> > 	(bpstat_num, print_it_typical): Look at bpstat's location's
> >  	owner, not at bpstat->breakpoint_at.
> > 
> > I'm quite sure the GNU coding standards describe this.  (Yes, I know
> > that our ChangeLog's abuse "Likewise" too much.)
> 
> I don't have an opinion here; I don't think this has any practical
> difference to future readers of ChangeLog.

It matters when you grep ChangeLog's for changes in a particular
function, for example.

> The reason why the assumption is valid is because the only way to have
> several bpstats refer to one breakpoint is when breakpoint has two
> locations, and both locations have the same address. That makes no sense --
> there's no per-location data that can make those locations different
> in behaviour, and so having two locations with same address would
> be a bug.

If this can happen only as a result of a bug, perhaps a gdb_assert is
in order.

> > >      case bp_access_watchpoint:
> > >        if (bs->old_val != NULL)     
> > >  	{
> > > -	  annotate_watchpoint (bs->breakpoint_at->number);
> > > +	  annotate_watchpoint (b->number);
> > 
> > Watchpoints also?  Did you make corresponding changes in the code that
> > sets watchpoints?
> 
> No. This patch is not supposed to have any change in behaviour whatsoever,
> it merely moves a data member.

Does that mean that the display of watchpoints for "info watch" will
be now different from "info break"?


  reply	other threads:[~2007-09-08 12:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 20:18 Vladimir Prus
2007-09-08 11:07 ` Eli Zaretskii
2007-09-08 11:25   ` Vladimir Prus
2007-09-08 12:16     ` Eli Zaretskii [this message]
2007-09-08 14:44       ` Vladimir Prus
2007-09-19 18:27         ` Vladimir Prus
2007-09-19 19:17           ` Eli Zaretskii
2007-09-22 17:50             ` Vladimir Prus

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=utzq5qro8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=vladimir@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