always following forked process with GDB

Answered

Hi,

I use GDB.

I would like to debug a forked a process.

I realized that I need to type to GDB:

set detach-on-fork off
set follow-fork-mode child

I would like that this setting will be set automatically for any session. How is it achievable?
2 comments
Comment actions Permalink

Hi,

Isn't there an option to debug them all simultaneously ?

0

Please sign in to leave a comment.