home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!psinntp!juliet!news
- From: drew@fnbc.com (Drew Davidson)
- Subject: Re: gdb seems broken on Next 3.0 Turbo color
- Message-ID: <1993Jan21.154318.21619@fnbc.com>
- Sender: news@fnbc.com
- Reply-To: drew@fnbc.com
- Organization: First National Bank Of Chicago, Chicago IL, USA
- References: <1993Jan21.013214.28984@slate.mines.colorado.edu>
- Date: Thu, 21 Jan 93 15:43:18 GMT
- Lines: 65
-
- In article <1993Jan21.013214.28984@slate.mines.colorado.edu>
- lpratt@slate.mines.colorado.edu (Lorien Pratt) writes:
- > Hi,
- > I'm running gdb for the first time on my new NeXT, and it seems broken.
- > I wonder if anybody could help me. Here are the symptoms:
- >
- > mple.c
- > main ()
- > { int i;
- >
- > for (i = 0; i < 5; i++)
- > if (!i) i += 3; else if (i == 4) i += 2;
- > }
- > % cc -g simple.c -o simple
- > % gdb simple
- > Reading symbol data from simple...done.
- > Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
- > (gdb) list
- > 1 main ()
- > 2 { int i;
- > 3
- > 4 for (i = 0; i < 5; i++)
- > 5 if (!i) i += 3; else if (i == 4) i += 2;
- > 6 }
- > (gdb) break 5
- > Breakpoint 1 at 0x3eae: file simple.c:5.
- > (gdb) run
- > Starting program: /Users/lpratt/simple
- > Program generated(1): Memory access
- > exception on address 0x50088f0 (invalid address).
- > Program generated(1): Memory access exception on address 0x50088f0 (invalid
- > address).
- > Program generated(1): Memory access exception on address 0x50088f0 (invalid
- > address).
- > Program generated(1): Memory access exception on address 0x50088f0 (invalid
- > address).
- > Program generated(1): Memory access exception on address 0x50088f0 (invalid
- > address).
- > Program generated(1): Memory access exception on address 0x50088f0 (invalid
- > address).
- > etc. etc. ad infinitum....!
- >
- ------------------------------------------------------------------------------
- > I wonder if anybody's run into this symptom before, or knows what's wrong?
- > Thanks in advance for any ideas or pointers!
- > --Lori
-
- I ran this on a Turbo Color under 3.0 and it worked fine. Except for the fact
- that on mine, the message after the breakpoint setting was "Breakpoint 1, main
- () at simple.c:5" instead of "Breakpoint 1 at 0x3eae: file simple.c:5". Could
- this be significant? Hmmmm...
-
- > --
- > L. Y. Pratt Dept. of Math and Computer Science
- > lpratt@franklinite.mines.colorado.edu Colorado School of Mines
- > (303) 273-3878 (work) 402 Stratton
- > (303) 278-4552 (home) Golden, CO 80401, USA
-
- --
- +--------------------------------+-------------------------------------------+
- | Drew Davidson | "Never ask a programmer if he'll have |
- | Software Guy | another cup of coffee because it's |
- | First National Bank of Chicago | nobody's damn business how much he's |
- | drew@fnbc.com (NeXTmail) | already had!" - me |
- +--------------------------------+-------------------------------------------+
-