3 ms·
So that's a different approach: integrate a remote debugging GDB server into the program (could be a shared lib that is dlopen-ed, by the way). Then that server
by kazinator 9y ago
So that's a different approach: integrate a remote debugging GDB server into the program (could be a shared lib that is dlopen-ed, by the way). Then that server is always used, even in a local session. The server is deeply integrated into the program, taking advantage of the protocol to communicate between application code and the debugging client.
It sounds promising. A particularly interesting area is events:
https://sourceware.org/gdb/onlinedocs/gdb/Notification-Packets.html#Notification-Packets https://sourceware.org/gdb/onlinedocs/gdb/Notification-Packe...
The program could generate custom notifications.