On Wed, 19 Mar 2025, Peter Skvarka wrote:
Does not exist some similar setting to have functional set follow-fork-mode
child ? :)
GDB (even the latest, 16.2) doesn't have code to do `follow-fork-mode' on
NetBSD. Do what I do and use lldb(1) for this:
(lldb) settings set target.process.follow
I tried to add nanosleep() for 20 seconds to forked child
setting breakpoint on next line after nanosleep()
and then to attach with gdb.
After attaching it stops inside of nanosleep(), when continuing it crashes.
I don't understand what happens here. Any ideas ?
That should've worked. Can you