From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2965 invoked by alias); 31 Mar 2010 17:27:35 -0000 Received: (qmail 2954 invoked by uid 22791); 31 Mar 2010 17:27:34 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 31 Mar 2010 17:27:28 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 376F71305B; Wed, 31 Mar 2010 10:27:27 -0700 (PDT) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost3.vmware.com (Postfix) with ESMTP id 28B1ECD902; Wed, 31 Mar 2010 10:27:27 -0700 (PDT) Message-ID: <4BB385FE.3040404@vmware.com> Date: Wed, 31 Mar 2010 17:27:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Pedro Alves CC: "gdb@sourceware.org" Subject: Re: Random gdbserver question (x86) References: <4BB28BF2.8080100@vmware.com> <201003310219.49529.pedro@codesourcery.com> In-Reply-To: <201003310219.49529.pedro@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2010-03/txt/msg00222.txt.bz2 Pedro Alves wrote: > 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. Thanks for confirming.