home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / misc / 16748 < prev    next >
Encoding:
Text File  |  1992-11-13  |  3.6 KB  |  79 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. Path: sparky!uunet!decwrl!concert!sas!mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: Amiga as a debugging machine: BLECH
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BxnsIy.7Fu@unx.sas.com>
  8. Date: Fri, 13 Nov 1992 14:35:22 GMT
  9. References: <1992Nov12.085832.7382@ifi.unizh.ch> <1953@lysator.liu.se> <1992Nov12.142819.9665@ifi.unizh.ch> <BxMqDG.8Ju@usenet.ucs.indiana.edu>
  10. Nntp-Posting-Host: cdevil.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Keywords: coredump, guru
  13. Lines: 64
  14.  
  15.  
  16. In article <BxMqDG.8Ju@usenet.ucs.indiana.edu>, shulick@yankton.ucs.indiana.edu (Sam Hulick) writes:
  17. >In article <1992Nov12.142819.9665@ifi.unizh.ch> matija@avalon.physik.unizh.ch (Matija Milostnik) writes:
  18. >>In article <1953@lysator.liu.se> marvil@lysator.liu.se (Martin Vilcans) writes:
  19. >>>Wouldn't you like the computer to continue working and then let the user
  20. >>>decide if he/she wants to reset?
  21. >>
  22. >>Thats the suspend requester. Its your choise to suspend or reset.
  23. >
  24. >Guess what.  The Amiga doesn't always have that requester.  Sometimes it
  25. >skips right to the guru.  And it seems the Guru is useless.  So I get
  26. >8000 0001, or something like that which is a memory allocation error.
  27. >Ok, I know memory is screwed somewhere in my program.  How the hell does
  28. >this aid me in debugging?  It doesn't.  And the "Task" pointer in the
  29. >guru alert can't be helpful, can it?  It jus tells you the location in
  30. >memory of your program.. big deal.
  31.  
  32. Yes, unless you guard against it.
  33.  
  34. >IMO, debugging on the Amiga is like trying to port XWindows to the Apple
  35. >II.  cpr (a SAS/C debugging tool) still is shoddy and ineffective.  I
  36. >thought they'd spice it up a lot from v5.01 to v5.10b, but I was rather
  37. >disappointed.
  38.  
  39. You don't mention 6.0, which is where the major changes were made, such
  40. as CPR catching Enforcer hits, and putting the cursor on the line that
  41. caused the hit, a function traceback window, etc., etc.  It still hasn't
  42. changed much in looks, but it sure works a whole lot better now...
  43.  
  44. >Basically, I'm extremely pissed off because one of my C programs has a
  45. >SERIOUS bug that Amiga debuggers can't nail.  No info WHATSOEVER on
  46. >what's causing the crash.  All I know is that a call to free() was
  47. >crashing.  So I took it to the UNIX and finally I got some decent info.
  48. >Something like.. attempt to free memory not in heap, bad zone, IOT trap.
  49. >Well, there's SOME info, but it doesn't make too much sense to me.  My
  50. >point is, from what I've seen and used, Amiga is feeble for debugging
  51. >and it's depressing.  Now.. if someone could show me some NICE debugging
  52. >utils for the Amiga, I'd be QUITE grateful.  BTW, my machine is an
  53. >A3000-25.  If I have to take my source code to another machine/OS just
  54. >to debug, that's pretty sad.
  55.  
  56. So, have you tried linking with the alternative GURU catcher startup?
  57.  
  58. It has been part of the package for a *looonng* time now, and will catch
  59. any GURUs which occur inside your program.  It will then give you a sort
  60. of mini core dump, which you can use the TB program to decode.
  61.  
  62. If the GURU occurs outside your program, its not caught by this, but at
  63. least you know where to look...
  64.  
  65. >(side note: the A3000 has an MMU.  doesn't this entitle me to memory
  66. >protection and/or blocking crashes?)
  67.  
  68. Not unless you or Commodore add it.
  69.  
  70. "Gee, I found the hood ornament for a Ferrari!  Doesn't that entitle me
  71. to own one?"  :-)
  72. -- 
  73. ---------------
  74. Jim Cooper
  75. (jamie@unx.sas.com)                             bix: jcooper
  76.  
  77. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  78. and not necessarily those of my employer.
  79.