This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: invoking gdb automatically


>From within the signal handler, I do a getpid( ). This gives me the PID of
my own process. I then build a string which looks like "gdb <executable>
PID" where <executable  is the name of my executable and PID is my PID. I
invoke the command throug a call to system which forks a new process and
therefore I can attach GDB to myself.

-----Original Message-----
From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com]On Behalf Of james osburn
Sent: Tuesday, March 01, 2005 11:35 AM
To: gdb@sources.redhat.com
Subject: RE: invoking gdb automatically


how so?

also thank you so much for taking the time reply.
it is much appreciated.

cheers
jim


>From: "Bloch, Jack" <jack.bloch@siemens.com>
>To: "'james osburn'" <jjosburn@hotmail.com>
>Subject: RE: invoking gdb automatically
>Date: Tue, 1 Mar 2005 08:28:26 -0800
>
>No I only did this with GDB command line
>
>-----Original Message-----
>From: james osburn [mailto:jjosburn@hotmail.com]
>Sent: Tuesday, March 01, 2005 11:29 AM
>To: Bloch, Jack
>Subject: RE: invoking gdb automatically
>
>
>Under this schem then you would invoke ddd or similar under X11 ...
>this wouldnt seem to be doable under a terminal session?
><html><DIV></DIV></html>
>
>
>
> >From: "Bloch, Jack" <jack.bloch@siemens.com>
> >To: "'james osburn'" <jjosburn@hotmail.com>
> >Subject: RE: invoking gdb automatically
> >Date: Tue, 1 Mar 2005 08:11:21 -0800
> >
> >One way would be to do it via a signal handler which invokes GDB
> >
> >-----Original Message-----
> >From: gdb-owner@sources.redhat.com
> >[mailto:gdb-owner@sources.redhat.com]On Behalf Of james osburn
> >Sent: Tuesday, March 01, 2005 11:10 AM
> >To: gdb@sources.redhat.com
> >Subject: invoking gdb automatically
> >
> >
> >Question:
> >
> >Is there a way to launch gdb or one of the gdb wrapper programs
> >automatically (ddd xxgdb?).
> >In WIN32 if you placed and INT3 (as i remember) instruction
> >in you code when this instruction was reached winnt would
> >lauch codeview or visual studio or the like ... it was very
> >handy is there something like that. Or are the two
> >systems totally different that what I am asking for
> >is not possible.
> >
> >Jim
> >
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]