This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Just-In-Time debugging with GDB
- To: gdb at sources dot redhat dot com, kistler at cs dot utexas dot edu
- Subject: Re: Just-In-Time debugging with GDB
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Sun, 20 Aug 2000 18:39:10 -0700
Hi Mike,
> Is there some technique I can use to determine if my program is
> running under the control of gdb?
In general, tracing a child doesn't disturb the child in a detectable
way.
You could call getppid() and then have a look at that process one way
or another (shell out to 'ps --pid $getppid()').
Michael Elizabeth Chastain
<mailto:chastain@redhat.com>
"love without fear"