home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sources / wanted / 4273 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.0 KB

  1. Xref: sparky comp.sources.wanted:4273 comp.unix.questions:10860 comp.windows.x:16414
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rphroy!kocrsv01!c23st
  3. From: c23st@kocrsv01.delcoelect.com (Spiros Triantafyllopoulos)
  4. Newsgroups: comp.sources.wanted,comp.unix.questions,comp.windows.x
  5. Subject: Re: Stack Traceback program wanted
  6. Message-ID: <1992Sep9.193434.2713@kocrsv01.delcoelect.com>
  7. Date: 9 Sep 92 19:34:34 GMT
  8. References: <1992Sep9.143656.20352@kocrsv01.delcoelect.com> <1992Sep09.172755.17887@bnr.uk>
  9. Sender: news@kocrsv01.delcoelect.com (Usenet News Account)
  10. Organization: Delco Electronics Corp.
  11. Lines: 46
  12.  
  13. In article <1992Sep09.172755.17887@bnr.uk> agc@bmdhh298.bnr.ca (Alan Carter) writes:
  14. >In article <1992Sep9.143656.20352@kocrsv01.delcoelect.com>, c23st@kocrsv01.delcoelect.com (Spiros Triantafyllopoulos) writes:
  15. >|> we're looking for a program to do stack a trace before it coredumps. We
  16. >|> would like to see, for example, the sequences of calls that resulted
  17. >|> in the program to bomb. 
  18. >|> 
  19. >|> Main:
  20. >|>    foo( )
  21. >|>      bar( )
  22. >|>         abnormal termination line so and so.
  23. >
  24. >The compiler will do this for you. Compile your code
  25. >
  26. >   cc -g -o spiros spiros.c
  27. >
  28. >Then after you have got your coredump, use adb,
  29. >
  30. >   adb spiros
  31. >
  32. >and give the command 
  33. >   
  34. >   $c
  35. >
  36. >to get your stack trace. Also look up dbx, sdb, gdb, which are similar
  37. >tools to adb.
  38.  
  39. (judging from my weight, adb would probably go out of memory :-). But
  40. seriously, what we have in mind is really to compile such a function in
  41. our program and do it 'on demand' every time it crashes, so we can have
  42. a log of what happened. 
  43.  
  44. We can always ask the users to run a utility on the core file and see
  45. what happens afterwards... maybe a little script to examine core and 
  46. do the $c command.
  47.  
  48. Is the core format published anywhere?
  49.  
  50. Thanks,
  51.  
  52. Spiros
  53.  
  54.  
  55. -- 
  56. Spiros Triantafyllopoulos                    c23st@kocrsv01.delcoelect.com
  57. Software Technology, Delco Electronics       striantafyll@kosds1.gm.hac.com
  58. GM Hughes Electronics, Kokomo, IN 46904      [A Different Kind of Disclaimer]
  59.