Article View: gnu.g++.help
Article #672Problem using gdb4.7 on g++ programs on RS6000.
From: Chris Walter
Date: Fri, 08 Jan 1993 02:10
Date: Fri, 08 Jan 1993 02:10
50 lines
2570 bytes
2570 bytes
Hi Folks, First off I am running AIX3.2 on an RS6000. I am using gcc 2.3.2/libg++ 2.3 I am having problems debugging c++ programs with gdb4.7. gdb seems to work OK on small C programs compiled with gcc but I am having problems debugging C++ code compiled(-g of course) with g++. I should mention that my sys-op says the RS6000 assembly patch has been applied. Here is an example of what happens when I try to load a executable: ------------------------------------------------------------------------ cithe502:wfd > gdb GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.7, Copyright 1992 Free Software Foundation, Inc. (gdb) file monte Reading symbols from monte...GDB Error: `.bf' not found. GDB Error: `.bf' not found. done. (gdb) ------------------------------------------------------------------------ And here is the same thing for what is a simpler program: ------------------------------------------------------------------------ cithe502:flux > gdb GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.7, Copyright 1992 Free Software Foundation, Inc. (gdb) file flux Reading symbols from flux...GDB Error: `.bf' not found. GDB Error: `.bf' not found. Catastrophe in realloc: invalid storage ptr IOT trap (core dumped) cithe502:flux > ------------------------------------------------------------------------ In addition, the first program, which it allows me to load, starts in the middle of the routine if I tell it to "break main". It sets the breakpoint something like halfway down routine. Any suggestions happily accepted! -Chris Walter
Technical Details
Message-ID:
<1iinpuINNmkv@gap.caltech.edu>Path:
arc1-ca.pugleaf.net!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!walterShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 From: walter@cithe501.cithep.caltech.edu (Chris Walter) Newsgroups: gnu.g++.help Subject: Problem using gdb4.7 on g++ programs on RS6000. Date: 8 Jan 1993 02:10:06 GMT Organization: California Institute of Technology, Pasadena Lines: 50 Distribution: gnu Message-ID: <1iinpuINNmkv@gap.caltech.edu> NNTP-Posting-Host: cithe303.cithep.caltech.edu Originator: walter@cithe303.cithep.caltech.edu