GDB process (on Linux) cooperating with the debugged process (some particular pthread on it)

Basile Starynkevitch <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hello all,

Is it possible for the debugged process (for me the RefPerSys inference engine,
GPL licensed, see below) which has several threads to send GDB commands or
interact with the debugger process.


This on Linux only (often x86-64, kernel 6.12.27); some event loop of the
debugged process could run in a particular pthread (which I don't want to debug
with such a weird GDB).

In general help on debugging a multithreaded Linux process is welcome. Can I
stop (or GDB step) only one thread and let the others run?

The debugged program is compiled by GCC and I probably could install the source
code of most libraries it is linked to.

(If writing some simple GCC compiler plugin is required I might consider it, see
https://arxiv.org/abs/1109.0779 ...)

Regards.
-- 
Basile STARYNKEVITCH                            <[email protected]>
8 rue de la Faïencerie                       http://starynkevitch.net/Basile/  
92340 Bourg-la-Reine                         https://github.com/bstarynk
France                                https://github.com/RefPerSys/RefPerSys
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.