Re: 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]> |
On Thu, 2025-05-15 at 12:04 +0100, Andrew Burgess via Gdb wrote: > Basile Starynkevitch <[email protected]> writes: > > > 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. > > I'm not aware of any existing, general technique for having the debuggee > send commands to the debugger. There is some limited support for JIT > like processes to allow the process to give GDB debug information for > the dynamically generated code, but nothing beyond that. Thanks. Do you mind explaining how that works? or in what GDB source files does that happen? RefPerSys is generating dynamically code with libgccjit and GNU lightning.... Thanks. -- 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