home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sources.wanted:4273 comp.unix.questions:10860 comp.windows.x:16414
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rphroy!kocrsv01!c23st
- From: c23st@kocrsv01.delcoelect.com (Spiros Triantafyllopoulos)
- Newsgroups: comp.sources.wanted,comp.unix.questions,comp.windows.x
- Subject: Re: Stack Traceback program wanted
- Message-ID: <1992Sep9.193434.2713@kocrsv01.delcoelect.com>
- Date: 9 Sep 92 19:34:34 GMT
- References: <1992Sep9.143656.20352@kocrsv01.delcoelect.com> <1992Sep09.172755.17887@bnr.uk>
- Sender: news@kocrsv01.delcoelect.com (Usenet News Account)
- Organization: Delco Electronics Corp.
- Lines: 46
-
- In article <1992Sep09.172755.17887@bnr.uk> agc@bmdhh298.bnr.ca (Alan Carter) writes:
- >In article <1992Sep9.143656.20352@kocrsv01.delcoelect.com>, c23st@kocrsv01.delcoelect.com (Spiros Triantafyllopoulos) writes:
- >|> we're looking for a program to do stack a trace before it coredumps. We
- >|> would like to see, for example, the sequences of calls that resulted
- >|> in the program to bomb.
- >|>
- >|> Main:
- >|> foo( )
- >|> bar( )
- >|> abnormal termination line so and so.
- >
- >The compiler will do this for you. Compile your code
- >
- > cc -g -o spiros spiros.c
- >
- >Then after you have got your coredump, use adb,
- >
- > adb spiros
- >
- >and give the command
- >
- > $c
- >
- >to get your stack trace. Also look up dbx, sdb, gdb, which are similar
- >tools to adb.
-
- (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.
-
- Is the core format published anywhere?
-
- Thanks,
-
- Spiros
-
-
- --
- Spiros Triantafyllopoulos c23st@kocrsv01.delcoelect.com
- Software Technology, Delco Electronics striantafyll@kosds1.gm.hac.com
- GM Hughes Electronics, Kokomo, IN 46904 [A Different Kind of Disclaimer]
-