From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6238 invoked by alias); 13 Mar 2012 19:57:10 -0000 Received: (qmail 6230 invoked by uid 22791); 13 Mar 2012 19:57:10 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Mar 2012 19:56:55 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2DJursE010797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Mar 2012 15:56:53 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2DJuqlZ030025; Tue, 13 Mar 2012 15:56:53 -0400 Message-ID: <4F5FA684.1050206@redhat.com> Date: Tue, 13 Mar 2012 19:57:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: Marc Khouzam CC: "'gdb@sourceware.org'" Subject: Re: Can't get cross debugging to work References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2012-03/txt/msg00037.txt.bz2 On 03/13/2012 07:47 PM, Marc Khouzam wrote: > Run: >> > ./gdb/gdbserver/gdbserver :9999 ~/myBin.64 > Run: >> > ./gdb/gdb ~/myBin.32 Here's the problem. You should be doing: ./gdb/gdb ~/myBin.64 > warning: Selected architecture i386 is not compatible with reported target architecture i386:x86-64 > warning: Architecture rejected target-supplied description This means that GDB thinks the architecture is i386 (because you've gave it a 32-bit executable to debug), while gdbserver claims it is debugging a x86-64 program. -- Pedro Alves