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

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!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: HELP: Can't get gdb to run anything
  5. Keywords: gdb gcc debugger GNU
  6. Message-ID: <18lb8gINNmma@roundup.crhc.uiuc.edu>
  7. Date: 9 Sep 92 17:11:44 GMT
  8. Organization: Center for Reliable and High-Performance Computing, University of Illinois at Urbana-Champaign
  9. Lines: 42
  10. NNTP-Posting-Host: jobim.crhc.uiuc.edu
  11.  
  12. I am having problems getting gdb, the GNU debugger, to work. 
  13. When I compile a program for debugging and then use sym-ld to
  14. build the symbol table, all is fine.  I then run gdb.  I can use 
  15. "info function" to list all the functions in my test file.  
  16. HOWEVER, if I then try to run the program, it exits IMMEDIATELY, with 
  17. the message:
  18.  
  19.     Program exitted with status = -32
  20.  
  21. This happens regardless of how simple or complex the test program is.
  22. What am I doing wrong?  I have noticed that if I use examine
  23. to look at the data, it reports everything is 0.  Is this because
  24. gdb does not actually load the program until you command it to
  25. "run", or is this part of my problem?  I have the following versions:
  26.  
  27. gdb 2.6  Patchlevel 18
  28. gcc 1.40 Patchlevel 2
  29. gcc-ld and sym-ld Patchlevel 27
  30. gulam cli
  31.  
  32. I used the following command sequence:
  33.  
  34. >gcc -c -g test.c
  35. >gcc -o test.prg test.o
  36. >sym_ld -r -o test.sym crt0.o test.o -l gnu
  37. >gdb -e test.prg -s test.sym
  38. *run
  39.  
  40.  
  41. (where ">" is the gulam prompt, and "*" is the gdb prompt) and I 
  42. get the error described above.
  43.  
  44.  
  45. Any help would be greatly appreciated!
  46.  
  47. --
  48. Steve VanderLeest    Center for Reliable and High Performance Computing
  49.             University of Illinois    
  50. ...........................................................................
  51. "...post this, post that.  Everything is post these days, as if we're all 
  52. just a footnote to something earlier that was real enough to have a name 
  53. of its own."  _Cat's Eye_
  54.