From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19962 invoked by alias); 4 Oct 2009 03:54:57 -0000 Received: (qmail 19951 invoked by uid 22791); 4 Oct 2009 03:54:56 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from gw.gemstone.com (HELO mail.gemstone.com) (66.192.188.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 04 Oct 2009 03:54:51 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.gemstone.com (Postfix) with ESMTP id 8CC08140161E for ; Sat, 3 Oct 2009 20:54:49 -0700 (PDT) Received: from mail.gemstone.com ([127.0.0.1]) by localhost (mail.gemstone.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wv2jpnuBnpRX for ; Sat, 3 Oct 2009 20:54:48 -0700 (PDT) Received: from mail.gemstone.com (mail.gemstone.com [10.80.50.125]) by mail.gemstone.com (Postfix) with ESMTP id 9B0181401619 for ; Sat, 3 Oct 2009 20:54:48 -0700 (PDT) From: "Norm Green" To: Subject: gdb completely broken on AIX? Date: Sun, 04 Oct 2009 03:54:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00062.txt.bz2 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 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: . 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.