From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1826 invoked by alias); 4 Jan 2005 17:46:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1666 invoked from network); 4 Jan 2005 17:45:50 -0000 Received: from unknown (HELO mail2.netezza.com) (12.148.248.137) by sourceware.org with SMTP; 4 Jan 2005 17:45:50 -0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Can one debug 32-bit x86 images with an x86_64 gdb? Date: Tue, 04 Jan 2005 17:46:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "John Yates" To: "gdb \(E-mail\)" X-SW-Source: 2005-01/txt/msg00026.txt.bz2 We are starting to port our 32 bit product to an x86_64 platform (RH 4.0 beta2). Once we have it running as a 32 bit image (still compiled with gcc 2.96) we will start the slog to gcc 3.x and a full 64 bit port. Except for the 32 bit gcc which we have had to migrated -- our code currently includes numerous anachronisms no longer accepted by the 3.x compilers -- we have been able to coax the native system tools (bison, ar, ld, etc) into compliance with our 32 bit build procedure. Debugging is a different story. The install gdb image describes itself as: 6.1post-1.20040607.46rh x86_64-redhat-linux-gnu It does not decline to debug our 32 bit images yet it produces total garbage. Is there a flag or environment variable that I may have overlooked? Or is a single gdb image not intended to fulfill both roles? /john -- John S. Yates, Jr. 508 665-6897 (voice) Netezza Inc 508 665-6811 (fax) 200 Crossing Blvd. Framingham, MA 01701 =20