debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Support forked processes

Open lwerdna opened this issue 5 years ago • 3 comments

conversation from lexsek:

Just a TAB to send GDB commands (could be usefull for forks -> follow-fork-mode [child|parent] and so on Or just the ability to choose between the processes created by forks That sould be also great to follow spawned processes by the main debugged process 2:30 Maybe a "Process TAB" just like the thread one New 2:32 But yeah basically beeing able to choose easily which process to follow (inside binja impletemented stuff, or just a tab to send gdb commands to start like follow-fork-mode) would be awesome

lwerdna avatar Apr 18 '20 18:04 lwerdna

Does gdb support targeting multiple processes at the same time? Or would we need to maintain a new instance of gdb (and another adapter) for every child process?

CouleeApps avatar Apr 21 '20 08:04 CouleeApps

I believe this answers your question @CouleeApps https://sourceware.org/gdb/onlinedocs/gdb/Forks.html tl;dr; System dependent. Linux Kernel 2.5.46+ has support for this which gdb utilizes,

Total guess/personal theory: WinDBG supports this with .chliddbg 1, so there may be [un]documented support in the windows kernel which gdb could be made to tap into.

themrrobert avatar Oct 25 '20 10:10 themrrobert

Will be addressed by #706

xusheng6 avatar Mar 24 '25 05:03 xusheng6