home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gdb / bug / 908 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.5 KB  |  54 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!consolve.COM!joe
  3. From: joe@consolve.COM (Joe Shapiro)
  4. Subject: Bug with re-reading symbols and setting breakpoints
  5. Message-ID: <9207272240.AA00936@somalia.consolve>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 27 Jul 1992 22:40:15 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 41
  12.  
  13. Hi, Folks
  14.     I'm using gdb 4.6 and gcc 2.2.2.  This problem also occurs with gdb 4.5.
  15. If I run gdb on a program and then recompile the program, gdb gets confused
  16. and is no longer able to set breakpoints.  Here's a VERY small example:
  17.  
  18.  
  19.  
  20. /home/joe/gnu-bugs /home/joe/c-saw
  21. joe@somalia> echo 'main(){}' > a.c
  22.  
  23. /home/joe/gnu-bugs /home/joe/c-saw
  24. joe@somalia> gcc -g a.c
  25.  
  26. /home/joe/gnu-bugs /home/joe/c-saw
  27. joe@somalia> gdb a.out
  28. GDB is free software and you are welcome to distribute copies of it
  29.  under certain conditions; type "show copying" to see the conditions.
  30. There is absolutely no warranty for GDB; type "show warranty" for details.
  31. GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
  32. (gdb) r
  33. Starting program: /usr3/joe/gnu-bugs/a.out 
  34.  
  35. Program exited with code 01.
  36. (gdb) 
  37. Suspended
  38.  
  39. /home/joe/gnu-bugs /home/joe/c-saw
  40. joe@somalia> gcc -g a.c
  41.  
  42. /home/joe/gnu-bugs /home/joe/c-saw
  43. joe@somalia> %
  44. gdb a.out
  45. (gdb) r
  46. `/usr3/joe/gnu-bugs/a.out' has changed; re-reading symbols.
  47. Starting program: /usr3/joe/gnu-bugs/a.out 
  48.  
  49. Program exited with code 01.
  50. (gdb) b main
  51. Cannot access memory at address 0x2290.
  52. (gdb) q
  53.  
  54.