Article View: comp.sys.sun
Article #6678Re: Debugger for C
From: Russ Poffenberger
Date: Tue, 22 Jan 1991 20:54
Date: Tue, 22 Jan 1991 20:54
28 lines
1947 bytes
1947 bytes
In article <1375@brchh104.bnr.ca> tru@sactoh0.sac.ca.us (Troy R. Underwood) writes:
>We are looking for a debugger, similar to the dbx and/or dbxtool used on
>Suns. We need it to work with both the Sun3 executables and Sun4
>executables. What we want to do differently in that we need to be able to
>run the debugger in one window/terminal and the program and it's screen
>input and output to run in another terminal/window.
One way to achieve this, although less convenient, is to start the program
to be debugged in one window. You need to make sure that it has a way to
pause execution. More later.
Get its process id using ps.
Start dbx or dbxtool. When it comes up, enter "debug progname pid". Make
sure you are cd'ed to the directory where the program resides. What this
will do is load the symbols, and attach to the already running program.
The IO for the program stays in the original window. You may have to use
the "use" command and do "up" then "down" to see the source.
You can force the test program to pause, by putting "pause()" near the
beginning of the file. As soon as dbx attaches, it signals pause and it will
continue normally.
Russ Poffenberger DOMAIN: poffen@sj.ate.slb.com
Schlumberger Technologies UUCP: {uunet,decwrl,amdahl}!sjsca4!poffen
1601 Technology Drive CIS: 72401,276
San Jose, Ca. 95110 (408)437-5254
Technical Details
Message-ID:
<1426@brchh104.bnr.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: poffen@sj.ate.slb.com (Russ Poffenberger) Newsgroups: comp.sys.sun Subject: Re: Debugger for C Keywords: Miscellaneous Message-ID: <1426@brchh104.bnr.ca> Date: 22 Jan 91 20:54:36 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 28 Approved: Sun-Spots@rice.edu X-Refs: Original: v10n27 X-Sun-Spots-Digest: Volume 10, Issue 29, message 2 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu