always following forked process with GDB

已回答

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?
0
Avatar
Permanently deleted user

Hi,

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

0

请先登录再写评论。