This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: HW Watchpoint events and the inferior
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb at sourceware dot org
- Date: Wed, 01 Aug 2007 14:13:27 -0300
- Subject: Re: HW Watchpoint events and the inferior
- References: <1185981481.5248.11.camel@localhost> <20070801160027.GA28305@caradoc.them.org>
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
Hi,
On Wed, 2007-08-01 at 12:00 -0400, Daniel Jacobowitz wrote:
> On Wed, Aug 01, 2007 at 12:18:01PM -0300, Luis Machado wrote:
> > Folks,
> >
> > I've been investigating watchpoints on GDB and i have a question on how
> > GDB handles Hardware Watchpoint events and which TID it uses to grab
> > information about the stopped_data_address, considering a multithreaded
> > application.
>
> GDB does not contain support for watchpoints in multi-threaded
> programs. You can find several patches and discussions of this issue
> in the list archives as recently as the end of June.
Yes, in fact i'm looking forward to improve that situation. That's why i'm going through some of the inferior handling code. Unfortunatelly there isn't much documentation there, and sometimes it gets rather bleak as to what GDB is really trying to do, and how it would handle multiple traps.
Regards,
--
Luis Machado
Software Engineer
IBM Linux Technology Center
LoP Toolchain/Debuggers' team
Phone: +55 19-2132-2218
T/L: 839-2218
e-mail: luisgpm@vnet.linux.ibm.com