Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Fix hw watchpoint count in update_watchpoint
Date: Wed, 30 Dec 2009 19:07:00 -0000	[thread overview]
Message-ID: <20091230190626.GG2788@adacore.com> (raw)
In-Reply-To: <200912301446.48771.bauerman@br.ibm.com>

> 20090-12-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 	     Thiago Jung Bauermann  <bauerman@br.ibm.com>
> 
> 	* breakpoint.c (update_watchpoint): Change b->type to
> 	bp_watchpoint before calling hw_watchpoint_used_count.

Look good, please go ahead and commit.  If I could just expand a little
on your comment, if you don't mind:

> +	    /* Mark as software watchpoint to ensure that this watchpoint
> +	       will not be counted in the hw_watchpoint_used_count call
> +	       below.  */

            /* We need to determine how many resources are already used
               for all other hardware watchpoints to see if we still have 
               enough resources to also fit this watchpoint in as well.
               To avoid the hw_watchpoint_used_count call below from counting
               this watchpoint, make sure that it is marked as a software
               watchpoint.  */

This is only a suggestion, so if you don't like it, please commit your
version, and I'll see if I can suggest an update separately.

Thanks for submitting the patch! (and welcome back, it's been a while)
-- 
Joel


  parent reply	other threads:[~2009-12-30 19:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-30 16:47 Thiago Jung Bauermann
2009-12-30 17:44 ` Thiago Jung Bauermann
2009-12-30 19:07 ` Joel Brobecker [this message]
2009-12-30 20:14   ` Thiago Jung Bauermann

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=20091230190626.GG2788@adacore.com \
    --to=brobecker@adacore.com \
    --cc=bauerman@br.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /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