This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Random gdbserver question (x86)
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb at sourceware dot org
- Cc: Michael Snyder <msnyder at vmware dot com>
- Date: Wed, 31 Mar 2010 02:19:49 +0100
- Subject: Re: Random gdbserver question (x86)
- References: <4BB28BF2.8080100@vmware.com>
On Wednesday 31 March 2010 00:40:34, Michael Snyder wrote:
> Question -- is gdbserver "multi-arch" to the extent that a 32-bit
> gdbserver (built with target = i386) can debug a 64-bit app?
No, only the other way around. It's "multi-arch" to the extent
that a linux 64-bit gdbserver (built with target = x86-64) can
debug a 32-bit app. It used to only be, only 64x64 or 32x32 was
possible; with multi-arch, 64x32 was made possible.
> I ask because linux-x86-low.c is full of ifdefs on the architecture.
> It looks like most of the 64-bit code won't be compiled if the
> build machine is 32-bit.
Correct.
--
Pedro Alves