This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB library to insert and delete watchpoints
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Stan Shebs <stan at codesourcery dot com>
- Cc: Aravinda <aravindakidambi at gmail dot com>, gdb at sourceware dot org
- Date: Fri, 4 Dec 2009 08:38:19 -0800
- Subject: Re: GDB library to insert and delete watchpoints
- References: <26eb53620911301516x68ccc0edkf64ba2951c8ce3a3@mail.gmail.com> <26eb53620911301518y13e64bc0g95c6fe3c7b18b0c@mail.gmail.com> <4B18CD92.8000302@codesourcery.com>
> It just so happens that CodeSourcery recently did this for a
> customer that was using a debugging stub that ran as one of several
> threads in the application.
This reminds me of another interesting approach that one of our
customers implemented. In their setup, the software was hooked to
a hardware that needed some trajectory info sent at a given frequency
(about 10Hz IIRC). The problems started when they were trying to
debug problems, because the debugger would stop all threads. So,
what they did was implement their own gdbserver stub, embedded in
their application. That stub would control start/stop etc in a way
that the motion threads remain alive and kicking while the rest of
the application is being inspected... AFAIK, they made it work
(this was on Windows).
--
Joel