Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@zwingli.cygnus.com>
To: Kevin Buettner <kevinb@cygnus.com>
Cc: Michael Snyder <msnyder@cygnus.com>, Jim Blandy <jimb@cygnus.com>,
	gdb-patches@sources.redhat.com
Subject: Re: [PATCH RFA] breakpoint.c: More check_duplicates() changes.
Date: Fri, 18 May 2001 16:56:00 -0000	[thread overview]
Message-ID: <np7kzfpoes.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <1010512080125.ZM29521@ocotillo.lan>

Kevin Buettner <kevinb@cygnus.com> writes:
> It turns out that there are several other breakpoint types which
> were using zero-valued addresses to cause an early return from
> check_duplicates().  They are:
> 
>     bp_catch_exec
>     bp_longjmp_resume
>     bp_catch_fork
>     bp_catch_vfork

Wow, I really botched that patch.  I did try to look for this stuff.
:(


> The patch below creates a new function called duplicate_okay() and
> uses this function to effect the early return.  I.e, the above code
> has again been rewritten as follows:
> 
>       if (duplicate_okay (bpt))
> 	return;
> 
> I removed the half-truth telling comment too.  I think the above
> statement is reasonably self documenting.

I think the name `duplicate_okay' is misleading; I mean, it's okay to
have duplicate breakpoints, isn't it?  One has to read the function's
uses carefully to see why that name is appropriate.

I think a better name would be `has_meaningful_address', or something
like that: the function tells us whether the breakpoint structure's
`address' field is meaningful.  If a breakpoint's address isn't
meaningful, then we certainly shouldn't consider it when culling
duplicates.

Beyond that, I approve of this change.


      parent reply	other threads:[~2001-05-18 16:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-12  1:01 Kevin Buettner
2001-05-12  3:15 ` Eli Zaretskii
2001-05-12  3:24 ` Mark Kettenis
2001-05-18 16:56 ` Jim Blandy [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=np7kzfpoes.fsf@zwingli.cygnus.com \
    --to=jimb@zwingli.cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@cygnus.com \
    --cc=kevinb@cygnus.com \
    --cc=msnyder@cygnus.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