Is there any way to tell gdb to wait for a process to start and attach to it?

后端 未结 6 1768
独厮守ぢ
独厮守ぢ 2020-12-24 01:44

I have a process that is called by another process which is called by another process and so on ad nauseum. It\'s a child process in a long tool chain.

This process

6条回答
  •  情深已故
    2020-12-24 02:24

    One of the programs in Tom Tromey's gdb-helpers repository on GitHub is preattach, which will make gdb attach to the next process created with a given name. It requires the Linux systemtap program.

提交回复
热议问题