home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sources.wanted:4283 comp.unix.questions:10902 comp.windows.x:16470
- Newsgroups: comp.sources.wanted,comp.unix.questions,comp.windows.x
- Path: sparky!uunet!stan!gerber
- From: gerber@solbourne.com (Andrew Gerber)
- Subject: Re: Stack Traceback program wanted
- Message-ID: <BuDC4J.D4A@solbourne.com>
- Organization: Solbourne Computer, Inc., Longmont, CO
- References: <1992Sep9.143656.20352@kocrsv01.delcoelect.com> <1992Sep09.172755.17887@bnr.uk> <1992Sep9.193434.2713@kocrsv01.delcoelect.com>
- Date: Thu, 10 Sep 1992 15:24:18 GMT
- Lines: 41
-
- In article <1992Sep9.193434.2713@kocrsv01.delcoelect.com> c23st@kocrsv01.delcoelect.com (Spiros Triantafyllopoulos) writes:
- >(judging from my weight, adb would probably go out of memory :-). But
- >seriously, what we have in mind is really to compile such a function in
- >our program and do it 'on demand' every time it crashes, so we can have
- >a log of what happened.
- >
- >We can always ask the users to run a utility on the core file and see
- >what happens afterwards... maybe a little script to examine core and
- >do the $c command.
- >
-
- I know what you want; many Fortran compilers do this, print a
- traceback when the program exits abnormally. I've never seen a C or
- C++ program which does this automatically.
-
- Solbourne's "pdb" debugger comes with a utility "ct" for "core
- traceback"; here's a simple example of its use:
-
- unix % ni dump
- Abort (core dumped)
- unix % ct
- Core for program: ni
- killing signal: SIGABRT 6: abort
- Reading symbolic information for ni
- Reading symbolic information for /opt/SUNWste/SC2.0/libC.so
- Reading symbolic information for /usr/lib/libc.so.1
- Reading symbolic information for /usr/lib/libdl.so.1
- 0xef764d78 _kill()+0x8
- 0x10e30 main()+0x1cc item.C:47
- 0x109fc _start()+0x5c
-
- Similar functionality can be obtained from any debugger; ct is just a
- quick and dirty way of avoiding debugger startup time. If you're
- interested in ct or pdb, contact Solbourne telesales at (303) 678-4626.
- These products run on Sparc machines only.
-
- --
- /-----------------------------------------------------------------/
- / Andy Gerber / gerber@solbourne.com /
- /-----------------------------------------------------------------/
-
-