[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    Re: HPUX-DEVTOOLS: debugger -> catch & follow child
From:       Daniel Alex Finkelstein <dfinkels () siac ! com>
Date:       2001-04-27 17:52:34
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks. The answers I found in the various documentation were as follows:

DDE
==================================================
Parent-only:
	property fork -parent

Child-only:
	property fork -child

Both parent and child:
	property fork -child -parent

WDB
===================================================
Parent:
	set follow-fork-mode parent

Child:
	set follow-fork-mode child

...plus some various 'thread' commands.


On Apr 27, 2001 at 10:18am,  srikanth wrote:

> Daniel Alex Finkelstein wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Is there a way to use one of the debuggers (DDE, WDB) so that a forked
> > process can be followed if the debugger was originally attached to the
> > parent?
>
>     Read the documentation available from www.hp.com/go/wdb. You are looking
> for the set follow-fork-mode command.
>
> Srikanth
>
>
> >
> >
> > A colleague suggested I put a sleep in the child of thirty seconds or so
> > such that I can find out the PID and then reattach the debugger to it, but
> > he thought it might be possible to have the debugger follow the child
> > dynamically.
> >
> > Thanks,
> > Dan
> >
> > - --
> > Daniel Alex Finkelstein
> > Central Services
> > phone   212-383-2951
> > pager   917-427-1630
> > fax     212-335-0420
> > Securities Industry Automation Corporation
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: PGP 6.5.8
> >
> > iQA/AwUBOuml5fthwHD7ijPLEQJmjACg4t/ZVhE1A2VguY/Xlls4u+a6CmMAn0Hf
> > DtrjJvu0pHi3LT6w2HyGCSgO
> > =CVbK
> > -----END PGP SIGNATURE-----
> >
> >  _________________________________________________________________
> >  To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
> >     with the message UNSUBSCRIBE hpux-devtools
> >  _________________________________________________________________
>
>
>
>
>  _________________________________________________________________
>  To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
>     with the message UNSUBSCRIBE hpux-devtools
>  _________________________________________________________________
>

- -- 
Daniel Alex Finkelstein
Central Services
phone   212-383-2951
pager   917-427-1630
fax     212-335-0420
Securities Industry Automation Corporation

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBOumx4/thwHD7ijPLEQJARgCfYQh36ki//3So8xJcRyjICU3nqYkAniiA
UbSKGyNt8g4hEuTEi4ZZevPf
=ymsL
-----END PGP SIGNATURE-----

 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic