home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / programm / 8247 < prev    next >
Encoding:
Text File  |  1993-01-21  |  3.0 KB  |  78 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!juliet!news
  3. From: drew@fnbc.com (Drew Davidson)
  4. Subject: Re: gdb seems broken on Next 3.0 Turbo color
  5. Message-ID: <1993Jan21.154318.21619@fnbc.com>
  6. Sender: news@fnbc.com
  7. Reply-To: drew@fnbc.com
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. References: <1993Jan21.013214.28984@slate.mines.colorado.edu>
  10. Date: Thu, 21 Jan 93 15:43:18 GMT
  11. Lines: 65
  12.  
  13. In article <1993Jan21.013214.28984@slate.mines.colorado.edu>  
  14. lpratt@slate.mines.colorado.edu (Lorien Pratt) writes:
  15. > Hi,
  16. >  I'm running gdb for the first time on my new NeXT, and it seems broken.
  17. > I wonder if anybody could help me.  Here are the symptoms:
  18. > mple.c
  19. > main ()
  20. > { int i;
  21. >   for (i = 0; i < 5; i++)
  22. >     if (!i) i += 3; else if (i == 4) i += 2;
  23. > }
  24. > % cc -g simple.c -o simple
  25. > % gdb simple
  26. > Reading symbol data from simple...done.
  27. > Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
  28. > (gdb) list
  29. > 1       main ()
  30. > 2       { int i;
  31. > 3
  32. > 4         for (i = 0; i < 5; i++)
  33. > 5           if (!i) i += 3; else if (i == 4) i += 2;
  34. > 6       }
  35. > (gdb) break 5
  36. > Breakpoint 1 at 0x3eae: file simple.c:5.
  37. > (gdb) run
  38. > Starting program: /Users/lpratt/simple 
  39. > Program generated(1): Memory access
  40. > exception on address 0x50088f0 (invalid address).
  41. > Program generated(1): Memory access exception on address 0x50088f0 (invalid
  42. > address).
  43. > Program generated(1): Memory access exception on address 0x50088f0 (invalid
  44. > address).
  45. > Program generated(1): Memory access exception on address 0x50088f0 (invalid
  46. > address).
  47. > Program generated(1): Memory access exception on address 0x50088f0 (invalid
  48. > address).
  49. > Program generated(1): Memory access exception on address 0x50088f0 (invalid
  50. > address).
  51. > etc. etc. ad infinitum....!
  52. >  
  53. ------------------------------------------------------------------------------
  54. > I wonder if anybody's run into this symptom before, or knows what's wrong?
  55. > Thanks in advance for any ideas or pointers!
  56. >   --Lori
  57.  
  58. I ran this on a Turbo Color under 3.0 and it worked fine.  Except for the fact  
  59. that on mine, the message after the breakpoint setting was "Breakpoint 1, main  
  60. () at simple.c:5" instead of "Breakpoint 1 at 0x3eae: file simple.c:5".  Could  
  61. this be significant?  Hmmmm...
  62.  
  63. > -- 
  64. > L. Y. Pratt                           Dept. of Math and Computer Science
  65. > lpratt@franklinite.mines.colorado.edu Colorado School of Mines    
  66. > (303) 273-3878 (work)                 402 Stratton                
  67. > (303) 278-4552 (home)                 Golden, CO 80401, USA      
  68.  
  69. --
  70. +--------------------------------+-------------------------------------------+
  71. |        Drew  Davidson          | "Never ask a programmer if he'll have     |
  72. |         Software Guy           |  another cup of coffee because it's       |
  73. | First National Bank of Chicago |  nobody's damn business how much he's     |
  74. |     drew@fnbc.com  (NeXTmail)  |  already had!"       - me                 |
  75. +--------------------------------+-------------------------------------------+
  76.