public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Michael Eager <eager@eagerm.com>
Cc: Daniel Jacobowitz <drow@false.org>,
	       "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: HW breakpoint on Linux x86 native
Date: Mon, 16 Jul 2012 18:43:00 -0000	[thread overview]
Message-ID: <20120716184328.GA17596@host2.jankratochvil.net> (raw)
In-Reply-To: <50045AC7.1060006@eagerm.com>

On Mon, 16 Jul 2012 20:17:43 +0200, Michael Eager wrote:
> When running a local process, the target vector is different,
> created by init_exec_ops() in exec.c.  This defaults to
> to_can_use_hw_breakpoint = reply_zero().
> 
> RH has a patch which forces the test in their gdb-7.3.1 release:

http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-bz541866-rwatch-before-run.patch;hb=master

It seems to be fixed in FSF GDB since 7.4 by:

[RFA 2/3] Demote to sw watchpoint only in update_watchpoint
http://sourceware.org/ml/gdb-patches/2011-04/msg00292.html
http://sourceware.org/ml/gdb-patches/2011-05/msg00042.html
commit efa8e67a1ea2d6f90d86efc31076f24e67940f8e
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date:   Thu May 5 22:52:09 2011 +0000
        Demote to sw watchpoint only in update_watchpoint.

Do you really run gdb-7.4+?

(Going to drop the Fedora patch now, thanks for the notification.)


Thanks,
Jan

  reply	other threads:[~2012-07-16 18:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 16:39 Michael Eager
2012-07-16 17:32 ` Daniel Jacobowitz
2012-07-16 18:17   ` Michael Eager
2012-07-16 18:43     ` Jan Kratochvil [this message]
2012-07-16 18:55       ` Michael Eager

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=20120716184328.GA17596@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=drow@false.org \
    --cc=eager@eagerm.com \
    --cc=gdb@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).