home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / atari / st / 13825 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  2.2 KB

  1. 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
  2. From: svleest@jobim.crhc.uiuc.edu (Steve VanderLeest)
  3. Newsgroups: comp.sys.atari.st
  4. Subject: PLEASE HELP:  GDB won't load my program
  5. Date: 15 Sep 1992 18:46:49 GMT
  6. Organization: Center for Reliable and High-Performance Computing, University of Illinois at Urbana-Champaign
  7. Lines: 48
  8. Distribution: world
  9. Message-ID: <195b2pINN454@roundup.crhc.uiuc.edu>
  10. NNTP-Posting-Host: jobim.crhc.uiuc.edu
  11. Keywords: GDB GCC Debugger
  12.  
  13. I am having problems getting gdb, the GNU debugger, to work. 
  14. When I compile a program for debugging and then use sym-ld to
  15. build the symbol table, all is fine.  I then run gdb.  I can use 
  16. "info function" to list all the functions in my test file.  
  17. HOWEVER, if I then try to run the program, it exits IMMEDIATELY, with 
  18. the message:
  19.  
  20.     Program exitted with status = -32
  21.  
  22. This happens regardless of how simple or complex test.prg is.
  23. What am I doing wrong?  I have noticed that if I use examine
  24. to look at the program data, it reports everything is 0 (I use x/10d at 
  25. multiple locations, and everywhere it is 0).  Is this because
  26. gdb does not actually load the program until you command it to
  27. "run", or is this part of my problem?  I have the following versions:
  28.  
  29. gdb 2.6  Patchlevel 18
  30. gcc 1.40 Patchlevel 2
  31. gcc-ld and sym-ld Patchlevel 27
  32. gulam cli
  33.  
  34. I used the following command sequence:
  35.  
  36. >gcc -c -g -D__NO_IN_LINE__ test.c
  37. >gcc -o test.ttp test.o
  38. >sym_ld -r -o test.sym crt0.o test.o -l gnu
  39. >gdb -e test.prg -s test.sym
  40. *run
  41.  
  42.  
  43. (where ">" is the gulam prompt, and "*" is the gdb prompt) and I 
  44. get the error described above.  I have tried this with nothing else
  45. but my hard disk driver, gulam, and gdb loaded (no ACCs, etc.) and 
  46. it still bombs.
  47.  
  48. Any help would be greatly appreciated!
  49.  
  50. --
  51. Steve VanderLeest    Center for Reliable and High Performance Computing
  52.             University of Illinois    
  53. ...........................................................................
  54. "...post this, post that.  Everything is post these days, as if we're all 
  55. just a footnote to something earlier that was real enough to have a name 
  56. of its own."  _Cat's Eye_
  57.  
  58.  
  59.  
  60.  
  61.