Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jeff Diewald <diewald@zko.dec.com>
Subject: Re: dbx on Alpha
Date: 1996/10/02	[thread overview]
Message-ID: <3252DB95.59E2@zko.dec.com> (raw)
In-Reply-To: 515uu5$o3e@newton.cc.rl.ac.uk


Brian McIlwrath wrote:
> 
> I only use Digital Unix periodically and, often when I come to debug some
> code, I hit the folling problem:
> 
> If a process forks off a child to do some work for it dbx says
> 
> "New child attached. Use switch to gain access to process nnnnnn"
> 
> It then seems to hang. There is no dbx prompt to type 'switch' to. I am
> totally uninterested in the child process. I want to debug the parent!
> I have NOT used "attach" to gain access to a running program (it was
> started by a simple 'dbx imagefile')
> 
> All most frustrating.
> 
> Is there an answer?

There are two that I can think of.  

First, with dbx, what is the value of $stop_on_fork?  I believe that
the default is 1.  Setting it to 0 may help you out.

Second, you can check out the Ladebug debugger.  There's extensive
documentation in our user manual for debugging programs across forks,
with examples.
-----------------------------------------------------------------------
Jeff Diewald			EASYNET:   VIRRUS::DIEWALD
Ladebug group			INTERNET:  diewald@zko.dec.com
Digital Equipment Corp.

Note: I don't read every article in this group.  If you have debugger 
questions, I may be able to get you an answer.  You're much more likely
to get an answer if you put "Ladebug" somewhere in your subject line.



      parent reply	other threads:[~1996-10-02  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-11  4:00 dbx on Alpha Brian McIlwrath
1996-09-12  4:00 ` Tony Quan
1996-09-13  4:00 ` Murray S. Kucherawy
1996-09-15  4:00   ` Brian McIlwrath
1996-10-02  4:00 ` Jeff Diewald [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox