This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Can one debug 32-bit x86 images with an x86_64 gdb?
- From: "John Yates" <jyates at netezza dot com>
- To: "gdb \(E-mail\)" <gdb at sources dot redhat dot com>
- Date: Tue, 4 Jan 2005 12:45:50 -0500
- Subject: Can one debug 32-bit x86 images with an x86_64 gdb?
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