From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6c05643a4638e537 X-Google-Attributes: gidfee84,public From: Jeff Diewald Subject: Re: dbx on Alpha Date: 1996/10/02 Message-ID: <3252DB95.59E2@zko.dec.com>#1/1 X-Deja-AN: 186772893 references: <515uu5$o3e@newton.cc.rl.ac.uk> content-type: text/plain; charset=us-ascii organization: Ladebug Group, Digital Equipment Corporation mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (X11; I; OSF1 V4.0 alpha) 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.