home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!roundup.crhc.uiuc.edu!jobim.crhc.uiuc.edu!svleest
- From: svleest@jobim.crhc.uiuc.edu (Steve VanderLeest)
- Newsgroups: comp.sys.atari.st
- Subject: PLEASE HELP: GDB won't load my program
- Date: 15 Sep 1992 18:46:49 GMT
- Organization: Center for Reliable and High-Performance Computing, University of Illinois at Urbana-Champaign
- Lines: 48
- Distribution: world
- Message-ID: <195b2pINN454@roundup.crhc.uiuc.edu>
- NNTP-Posting-Host: jobim.crhc.uiuc.edu
- Keywords: GDB GCC Debugger
-
- I am having problems getting gdb, the GNU debugger, to work.
- When I compile a program for debugging and then use sym-ld to
- build the symbol table, all is fine. I then run gdb. I can use
- "info function" to list all the functions in my test file.
- HOWEVER, if I then try to run the program, it exits IMMEDIATELY, with
- the message:
-
- Program exitted with status = -32
-
- This happens regardless of how simple or complex test.prg is.
- What am I doing wrong? I have noticed that if I use examine
- to look at the program data, it reports everything is 0 (I use x/10d at
- multiple locations, and everywhere it is 0). Is this because
- gdb does not actually load the program until you command it to
- "run", or is this part of my problem? I have the following versions:
-
- gdb 2.6 Patchlevel 18
- gcc 1.40 Patchlevel 2
- gcc-ld and sym-ld Patchlevel 27
- gulam cli
-
- I used the following command sequence:
-
- >gcc -c -g -D__NO_IN_LINE__ test.c
- >gcc -o test.ttp test.o
- >sym_ld -r -o test.sym crt0.o test.o -l gnu
- >gdb -e test.prg -s test.sym
- *run
-
-
- (where ">" is the gulam prompt, and "*" is the gdb prompt) and I
- get the error described above. I have tried this with nothing else
- but my hard disk driver, gulam, and gdb loaded (no ACCs, etc.) and
- it still bombs.
-
- Any help would be greatly appreciated!
-
- --
- Steve VanderLeest Center for Reliable and High Performance Computing
- University of Illinois
- ...........................................................................
- "...post this, post that. Everything is post these days, as if we're all
- just a footnote to something earlier that was real enough to have a name
- of its own." _Cat's Eye_
-
-
-
-
-