Article View: gnu.gdb.bug
Article #591Re: Problems debugging g++ code on RS6000 with gdb4.7
From: Tom McConnell~
Date: Sun, 10 Jan 1993 15:32
Date: Sun, 10 Jan 1993 15:32
54 lines
2602 bytes
2602 bytes
In article <9301102237.AA20734@cithe303.cithep.caltech.edu>, you write:
> Hello,
>
> I've tried this question in comp.unix.aix and gnu.g++.help and have gotten
> no responses, I really hope someone here can help me.
>
> First off I am running AIX3.2 on an RS6000.
> I am using gcc 2.3.2/libg++ 2.3
> I am using gdb 4.7
I would _strongly_ recommend moving to gcc-2.3.3. It has a number of bug fixes
over gcc-2.3.2. Also, make sure that libg++-2.3 is rebuilt using gcc-2.3.3. Just
to be complete, I would also rebuild gdb-4.7 with gcc-2.3.3. It is most
difficult to find the problem sometimes when using tools built with different
versions of the compiler.
>
> 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(for gcc) 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)
I have seen the "`.bf'" errors on and off with different versions of
gcc/libg++/gdb. With my current setup (gcc-2.3.3, libg++-2.3, gdb-4.7) there are
no errors, and I can debug g++ code just fine.
>
> -Chris Walter
Good luck.
Cheers,
Tom McConnell
Tom McConnell | Internet: tmcconne@sedona.intel.com
Intel, Corp. C3-91 | Phone: (602)-554-8229
5000 W. Chandler Blvd. | The opinions expressed are my own. No one in
Chandler, AZ 85226 | their right mind would claim them.
Technical Details
Message-ID:
<9301110532.AA22341@thunder>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!sedona.intel.com!tmcconneShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!sedona.intel.com!tmcconne From: tmcconne@sedona.intel.com (Tom McConnell~) Subject: Re: Problems debugging g++ code on RS6000 with gdb4.7 Message-ID: <9301110532.AA22341@thunder> Sender: gnulists@ai.mit.edu Reply-To: tmcconne@sedona.intel.com Organization: GNUs Not Usenet Distribution: gnu Date: Sun, 10 Jan 1993 15:32:38 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 55