Xref: utzoo comp.lang.c:13037 comp.unix.questions:9544 Path: utzoo!attcan!uunet!husc6!bloom-beacon!gatech!ncar!tank!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re: Debugging programs with fork Message-ID: <13819@mimsy.UUCP> Date: 3 Oct 88 05:55:03 GMT References: <12523@oberon.USC.EDU> Followup-To: comp.unix.questions Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 18 In article <12523@oberon.USC.EDU> pgarg@pollux.usc.edu (Pankaj K. Garg) writes: > I am having trouble debugging programs which fork other >processes. Dbx doesn't seem to handle them easily. > I am using sun workstations running Unix 4.3. [Sun workstations do not run `Unix 4.3', by which I guess that you mean `4.3BSD': Sun workstations run SunOS and Mach. This question should have been directed to a Unix-specific group, not comp.lang.c; I have redirected followups to comp.unix.questions.] You are quite right; the existing Unix debuggers cannot handle programs that fork. SunOS 4.0 provides new facilities that make it possible, but if you are dealing with older Unixes, you must either delete the fork, or fall back on more `traditional' debugging schemes. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris