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

  1. Path: sparky!uunet!wupost!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.tech
  4. Subject: can't get gdb to work
  5. Date: 8 Sep 1992 13:43:04 GMT
  6. Organization: Center for Reliable and High-Performance Computing, University of Illinois at Urbana-Champaign
  7. Lines: 42
  8. Distribution: world
  9. Message-ID: <18ial9INNqi9@roundup.crhc.uiuc.edu>
  10. NNTP-Posting-Host: jobim.crhc.uiuc.edu
  11. Keywords: gdb gcc
  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 data, it reports everything is 0.  Is this because
  25. gdb does not actually load the program until you command it to
  26. "run", or is this part of my problem?  I have the following versions:
  27.  
  28. gdb 2.6  Patchlevel 18
  29. gcc 1.40 Patchlevel 2
  30. gcc-ld and sym-ld Patchlevel 27
  31. gulam cli
  32.  
  33. I used the following command sequence:
  34.  
  35. >gcc -c -g test.c
  36. >gcc -o test.prg test.o
  37. >sym_ld -r -o test.sym crt0.o test.o -l gnu
  38. >gdb -e test.prg -s test.sym
  39. *run
  40.  
  41.  
  42. (where ">" is the gulam prompt, and "*" is the gdb prompt) and I 
  43. get the error described above.
  44.  
  45.  
  46. Any help would be greatly appreciated!
  47.  
  48. --
  49. Steve VanderLeest    Center for Reliable and High Performance Computing
  50.             University of Illinois    
  51. ...........................................................................
  52. "...post this, post that.  Everything is post these days, as if we're all 
  53. just a footnote to something earlier that was real enough to have a name 
  54. of its own."  _Cat's Eye_
  55.