* gdbserver i386_linux hardware watchpoints in a multi threaded application
@ 2007-08-15 18:39 Claus Baumgartner
2007-08-15 19:12 ` Luis Machado
0 siblings, 1 reply; 4+ messages in thread
From: Claus Baumgartner @ 2007-08-15 18:39 UTC (permalink / raw)
To: gdb
Hi,
I implemented the hardware watchpoints for the i386 linux target in the
gdbserver and it works fine in the same thread where the watchpoint
has been assigned. I would like to use gdb and gdb server to debug
memory locations overwritten by other threads and this is where gdb fails.
Is there any work in progress regarding this?
Where should I start if I want to make it work?
Thanks,
Claus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdbserver i386_linux hardware watchpoints in a multi threaded application
2007-08-15 18:39 gdbserver i386_linux hardware watchpoints in a multi threaded application Claus Baumgartner
@ 2007-08-15 19:12 ` Luis Machado
2007-08-15 19:25 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Luis Machado @ 2007-08-15 19:12 UTC (permalink / raw)
To: Claus Baumgartner; +Cc: gdb
On Wed, 2007-08-15 at 21:38 +0300, Claus Baumgartner wrote:
> Hi,
>
> I implemented the hardware watchpoints for the i386 linux target in the
> gdbserver and it works fine in the same thread where the watchpoint
> has been assigned. I would like to use gdb and gdb server to debug
> memory locations overwritten by other threads and this is where gdb fails.
>
> Is there any work in progress regarding this?
Yes, there is. The patch Jeff Johnston wrote some time ago should
address this on GDB. I'm currently taking over his work and adding
support for ppc.
You can check the most up-to-date patch on these messages:
http://sourceware.org/ml/gdb-patches/2007-08/msg00253.html
http://sourceware.org/ml/gdb-patches/2007-08/msg00254.html
The original post by Jeff Johnston here:
http://sourceware.org/ml/gdb-patches/2004-06/msg00278.html
Best regards,
--
Luis Machado
Software Engineer
IBM Linux Technology Center
e-mail: luisgpm@linux.vnet.ibm.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdbserver i386_linux hardware watchpoints in a multi threaded application
2007-08-15 19:12 ` Luis Machado
@ 2007-08-15 19:25 ` Daniel Jacobowitz
2007-08-17 14:15 ` Claus Baumgartner
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-08-15 19:25 UTC (permalink / raw)
To: Luis Machado; +Cc: Claus Baumgartner, gdb
On Wed, Aug 15, 2007 at 04:12:29PM -0300, Luis Machado wrote:
> On Wed, 2007-08-15 at 21:38 +0300, Claus Baumgartner wrote:
> > Hi,
> >
> > I implemented the hardware watchpoints for the i386 linux target in the
> > gdbserver and it works fine in the same thread where the watchpoint
> > has been assigned. I would like to use gdb and gdb server to debug
> > memory locations overwritten by other threads and this is where gdb fails.
> >
> > Is there any work in progress regarding this?
>
> Yes, there is. The patch Jeff Johnston wrote some time ago should
> address this on GDB. I'm currently taking over his work and adding
> support for ppc.
I think that Jeff's patches only affect gdb native debugging, and
gdbserver would need an independent fix. But the same solution should
work there, too.
Claus, do you have a copyright assignment? Are you interested in
contributing the i386 watchpoint support for gdbserver?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gdbserver i386_linux hardware watchpoints in a multi threaded application
2007-08-15 19:25 ` Daniel Jacobowitz
@ 2007-08-17 14:15 ` Claus Baumgartner
0 siblings, 0 replies; 4+ messages in thread
From: Claus Baumgartner @ 2007-08-17 14:15 UTC (permalink / raw)
To: Luis Machado, Claus Baumgartner, gdb
Daniel Jacobowitz wrote:
> On Wed, Aug 15, 2007 at 04:12:29PM -0300, Luis Machado wrote:
>> On Wed, 2007-08-15 at 21:38 +0300, Claus Baumgartner wrote:
>>> Hi,
>>>
>>> I implemented the hardware watchpoints for the i386 linux target in the
>>> gdbserver and it works fine in the same thread where the watchpoint
>>> has been assigned. I would like to use gdb and gdb server to debug
>>> memory locations overwritten by other threads and this is where gdb fails.
>>>
>>> Is there any work in progress regarding this?
>> Yes, there is. The patch Jeff Johnston wrote some time ago should
>> address this on GDB. I'm currently taking over his work and adding
>> support for ppc.
>
> I think that Jeff's patches only affect gdb native debugging, and
> gdbserver would need an independent fix. But the same solution should
> work there, too.
>
> Claus, do you have a copyright assignment? Are you interested in
> contributing the i386 watchpoint support for gdbserver?
>
I'm overloaded for the moment and the i386 watchpoint support is quite
messy. I will send a patch when I get the time to clean it up.
Have a nice day,
Claus
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-17 14:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-15 18:39 gdbserver i386_linux hardware watchpoints in a multi threaded application Claus Baumgartner
2007-08-15 19:12 ` Luis Machado
2007-08-15 19:25 ` Daniel Jacobowitz
2007-08-17 14:15 ` Claus Baumgartner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox