This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HW breakpoint on Linux x86 native


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]