From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12039 invoked by alias); 27 Sep 2006 18:17:37 -0000 Received: (qmail 12021 invoked by uid 22791); 27 Sep 2006 18:17:31 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.226) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 27 Sep 2006 18:17:29 +0000 Received: by wx-out-0506.google.com with SMTP id s19so292444wxc for ; Wed, 27 Sep 2006 11:17:28 -0700 (PDT) Received: by 10.70.52.2 with SMTP id z2mr1188859wxz; Wed, 27 Sep 2006 11:17:27 -0700 (PDT) Received: by 10.70.129.18 with HTTP; Wed, 27 Sep 2006 11:17:27 -0700 (PDT) Message-ID: Date: Wed, 27 Sep 2006 18:17:00 -0000 From: "Mitchell Fang" To: gdb@sourceware.org Subject: Re: GDB stub - connection from 32 bit GDB or 64 bit GDB In-Reply-To: <20060927175135.GA4736@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060927175135.GA4736@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00167.txt.bz2 On 9/27/06, Daniel Jacobowitz wrote: > It always amazes me how a problem will be known but quiet for a couple > of years, and then half a dozen people will look at it at once :-) > > On Wed, Sep 27, 2006 at 10:34:45AM -0700, Mitchell Fang wrote: > > Hi, > > > > How can the gdb stub know if a 32 bit GDB is connecting to the stub > > or a 64 bit GDB is connecting to the stub? Is it even possible? It > > doesn't seem possible to me looking at the current gdb remote > > commands, but hopefully I overlooked something. > > It's not possible. > > > I have tried different combinations with 32-bit and 64-bit GDBs and > > gdbservers and it seems like a 32 bit GDB will not work with a 64 bit > > gdbserver and vice versa. > > The stub shouldn't adapt: the GDB client should. This may be of > interest: > http://sourceware.org/ml/gdb-patches/2006-09/msg00187.html > http://sourceware.org/ml/gdb-patches/2006-09/msg00188.html > > I'm less optimistic I'll have my code out this week, but I'm still > trying. What architecture are you using? The target architecture is PowerPC and the host architecture is i686 cygwin. Thanks for your help and I will await your patch. Mitchell > > -- > Daniel Jacobowitz > CodeSourcery >