home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12426 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!chx400!bernina!wild
  3. From: wild@nessie.cs.id.ethz.ch (Markus Wild)
  4. Subject: Re: GCC - How to debug a program using ixemlib?
  5. Message-ID: <1992Aug18.130108.2023@bernina.ethz.ch>
  6. Sender: news@bernina.ethz.ch (USENET News System)
  7. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  8. References: <PPESSI.92Aug18050721@vipunen.hut.fi>
  9. Date: Tue, 18 Aug 1992 13:01:08 GMT
  10. Lines: 30
  11.  
  12. In article <PPESSI.92Aug18050721@vipunen.hut.fi> ppessi@vipunen.hut.fi (Pekka Pessi) writes:
  13. >    using ixemlib. Is there some way to tell ixemlib that those
  14. >    nasty ILLEGALs are really breakpoints made by my debugger?
  15.  
  16. Hmm.. nah, the only way to have is to attach to an already running process. 
  17. As soon as gdb can use a hunk libbfd.a, i'll go for ptrace(), which will 
  18. enable a special SIGTRAP mode.
  19.  
  20. >    Also, what can I assume in atexit'ed function? Is stdio still
  21. >    working? Or unix compatible system calls? (I want to restore
  22.  
  23. stdio is closed as pretty much the last thing to happen in the atexit
  24. chain. system calls and lower level things in general should not present
  25. any problems. In C++, classes are destructed thru atexit, so you should
  26. call any non-static class members there.
  27.  
  28. >    stdin to cooked mode and disable all RAW event reporting.) If
  29. >    I call restoring function before exit(), it works fine. If it
  30. >    is atexit()'ed, result is a meditation moment.
  31.  
  32. Strange... 
  33.  
  34. -Markus
  35.  
  36.  
  37.  
  38. -- 
  39. Markus M. Wild    -  wild@nessie.cs.id.ethz.ch  |  wild@amiga.physik.unizh.ch 
  40. Vital papers will demonstrate their vitality by spontaneously moving
  41. from where you left them to where you can't find them.
  42.