home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / g / help / 1647 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  2.4 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!data.nas.nasa.gov!mustang.mst6.lanl.gov!nntp-server.caltech.edu!cithe303.cithep.caltech.edu!walter
  2. From: walter@cithe501.cithep.caltech.edu (Chris Walter)
  3. Newsgroups: gnu.g++.help
  4. Subject: Problem using gdb4.7 on g++ programs on RS6000.
  5. Date: 8 Jan 1993 02:10:06 GMT
  6. Organization: California Institute of Technology, Pasadena
  7. Lines: 50
  8. Distribution: gnu
  9. Message-ID: <1iinpuINNmkv@gap.caltech.edu>
  10. NNTP-Posting-Host: cithe303.cithep.caltech.edu
  11. Originator: walter@cithe303.cithep.caltech.edu
  12.  
  13. Hi Folks,
  14.  
  15. First off I am running AIX3.2 on an RS6000.
  16. I am using gcc 2.3.2/libg++ 2.3
  17.  
  18. I am having problems debugging c++ programs with gdb4.7.
  19. gdb seems to work OK on small C programs compiled with gcc but I am
  20. having problems debugging C++ code compiled(-g of course) with g++.
  21.  
  22. I should mention that my sys-op says the RS6000 assembly patch has
  23. been applied.  Here is an example of what happens when I try to load a
  24. executable:
  25. ------------------------------------------------------------------------
  26. cithe502:wfd > gdb 
  27. GDB is free software and you are welcome to
  28. 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.7, Copyright 1992 Free Software Foundation, Inc.
  32. (gdb) file monte
  33. Reading symbols from monte...GDB Error: `.bf' not found.
  34. GDB Error: `.bf' not found.
  35. done.
  36. (gdb)
  37. ------------------------------------------------------------------------
  38.  
  39. And here is the same thing for what is a simpler program:
  40.  
  41. ------------------------------------------------------------------------
  42. cithe502:flux > gdb
  43. GDB is free software and you are welcome to distribute copies of it
  44.  under certain conditions; type "show copying" to see the conditions.
  45. There is absolutely no warranty for GDB; type "show warranty" for details.
  46. GDB 4.7, Copyright 1992 Free Software Foundation, Inc.
  47. (gdb) file flux
  48. Reading symbols from flux...GDB Error: `.bf' not found.
  49. GDB Error: `.bf' not found.
  50.  
  51. Catastrophe in realloc: invalid storage ptr
  52. IOT trap (core dumped)
  53. cithe502:flux > 
  54. ------------------------------------------------------------------------
  55.  
  56. In addition, the first program, which it allows me to load, starts in the
  57. middle of the routine if I tell it to "break main".  It sets the
  58. breakpoint something like halfway down routine.
  59.  
  60. Any suggestions happily accepted!
  61.  
  62. -Chris Walter
  63.