This is the mail archive of the gdb-patches@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: [PATCH] Enable hw watchpoint with longer ranges using DAWR on Power


> From: Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
> Cc: Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>,        Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
> Date: Tue,  2 Jul 2013 14:39:21 -0300
> 
> The new DAWR interface provided by the next generation of Power processors
> (Power ISA Version 2.07) included in the kernel this year allows gdb to use
> hardware watchpoint with longer ranges (up to 512 bytes wide), which can't cross
> a 512 byte boundary [1]. The patch below enables the usage of this new feature,
> currently exported to the userspace as PPC_DEBUG_FEATURE_DATA_BP_DAWR via struct
> ppc_debug_info [2]. Ok?

Is only one watchpoint of this kind possible at any given time?  If
more than one such watchpoint can be used at the same time, I don't
see why we should expose the 512-byte limitation to users.  Just use
more than one such watchpoint to cover the range of addresses
requested by the user command.


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