This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb completely broken on AIX?


When I debug a 64 bit program on AIX, I get massive numbers of errors like
this:

warning: (Internal error: pc 0x900000002c16438 in read in psymtab, but not
in symtab.)

I can still see the call stack and see source, but I can't look at any
variables in the stack: 

	No symbol "xxx" in the current context

I don't have this problem when compiling with -maix32, only with -maix64.

I'm building with this gcc/g++ :

Using built-in specs.
Target: powerpc-ibm-aix5.2.0.0
Configured with: ./configure --prefix=/fire3/users/normg/gnu/gcc434-inst
--enable-threads=aix --disable-shared --disable-werror --disable-nls
--enable-languages=c,c++ --with-gnu-as
--with-as=/export/localnew/RISC6000.AIX/bin/as --without-gnu-ld
--with-ld=/usr/bin/ld CONFIG_SHELL=/usr/bin/bash
CC=/export/localnew/RISC6000.AIX/gcc422/bin/gcc
CXX=/export/localnew/RISC6000.AIX/gcc422/bin/g++
AS=/export/localnew/RISC6000.AIX/bin/as LD=/usr/bin/ld
Thread model: aix
gcc version 4.3.4 (GCC)

I use the IBM compiler, xlc_r, for linking only (the GNU linker does not
seem to work on AIX).  I need to use the -bbigtoc linker option because
the TOC goes over 64K.

I've tried building gdb 6.8 release and this one with the same results:

GNU gdb (GDB) 6.8.50.20090915
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.2.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

I've also tried compiling with -g and -gxcoff+ with no luck.

Can anyone help with this or know if there's a patch available to fix the
problem?  I _really_ want to use gdb instead of the IBM dbx debugger.

thanks,

Norm Green
GemStone Systems Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]