Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Norm Green" <normg@gemstone.com>
To: <gdb@sourceware.org>
Subject: gdb completely broken on AIX?
Date: Sun, 04 Oct 2009 03:54:00 -0000	[thread overview]
Message-ID: <DC239E0E843B4CE48520527DF6A71523@snert> (raw)

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.


                 reply	other threads:[~2009-10-04  3:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DC239E0E843B4CE48520527DF6A71523@snert \
    --to=normg@gemstone.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox