home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8167 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.2 KB  |  91 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cs.utexas.edu!rice!corywest
  3. From: corywest@rice.edu (Cory West)
  4. Subject: GDB is possessed -- Any ideas?
  5. Message-ID: <CORYWEST.92Aug13181241@rio-grande.rice.edu>
  6. Sender: news@rice.edu (News)
  7. Organization: Well, none really, but I know where my socks are!
  8. Date: Fri, 14 Aug 1992 00:12:41 GMT
  9. Lines: 80
  10.  
  11.  
  12.         Hello all.  I have been having some problems with gdb and was
  13. hoping that y'all could help out.  I've already sent this to the GCC
  14. mailing list, but haven't heard a peep yet, so I thought I'd throw
  15. it out a little further.  First, here's my version information:
  16.  
  17.         Linux Version 0.97 PL1 (On a 486-33/4)
  18.         GDB 4.6 (Compiled with GCC 2.2.2d and linked static)
  19.         GCC 2.2.2 and GCC 2.2.2d
  20.  
  21.         Now, here's the problem:  I compiled gdb first with gcc -V
  22. 2.2.2 under linux v 0.96c PL2, but this died at the final link with a
  23. _setjmp problem.  This was no new problem and so I compiled in with 
  24. regular gcc 2.2.2d.  I tried to link it dynamically both with and without 
  25. jump tables, but again it always died with a memory corruption error and 
  26. so I linked it statically and went on my merry way.  
  27.     So far so good, I had a working gdb (statically linked) that
  28. would happily let me debug programs and the like.
  29.  
  30.         Then I upgraded to Linux v 0.97 PL1 and re-installed my gcc
  31. 2.2.2d (as per HJ's instructions).  I recompiled gdb with gcc 2.2.2d
  32. and linked it statically, but it no longer works.  I compiled 
  33. several test case programs with the new gcc 2.2.2d and the -g option
  34. and ran them through gdb, but when I try to set breakpoints, I always
  35. get the error "No line xxx in file "file.c"."  If I run and interrupt a
  36. program and try to step through it, I get:
  37.  
  38.         Current function has no line number information.  No data
  39.         available on pc function.
  40.  
  41. It's as if gcc libg.a was broken or something, but I don't know for
  42. sure.  
  43.  
  44.         Has anyone had these problems or can anyone point me in a
  45. new direction?  I am running out of things to try.  If you need
  46. more information, just let me know.  Thanks a bunch in advance!
  47.  
  48.                 
  49.  
  50.                                 Cory West
  51.                 corywest@rice.edu
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.