From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13911 invoked by alias); 27 Sep 2006 17:34:51 -0000 Received: (qmail 13900 invoked by uid 22791); 27 Sep 2006 17:34:50 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.231) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 27 Sep 2006 17:34:48 +0000 Received: by wx-out-0506.google.com with SMTP id s19so280344wxc for ; Wed, 27 Sep 2006 10:34:45 -0700 (PDT) Received: by 10.70.65.8 with SMTP id n8mr1083431wxa; Wed, 27 Sep 2006 10:34:45 -0700 (PDT) Received: by 10.70.129.18 with HTTP; Wed, 27 Sep 2006 10:34:45 -0700 (PDT) Message-ID: Date: Wed, 27 Sep 2006 17:34:00 -0000 From: "Mitchell Fang" To: gdb@sourceware.org Subject: GDB stub - connection from 32 bit GDB or 64 bit GDB MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00163.txt.bz2 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. 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. Thanks for you help. Mitchell