From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23582 invoked by alias); 28 Oct 2010 10:18:20 -0000 Received: (qmail 23573 invoked by uid 22791); 28 Oct 2010 10:18:19 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Oct 2010 10:18:15 +0000 Received: (qmail 21355 invoked from network); 28 Oct 2010 10:18:13 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Oct 2010 10:18:13 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: gdb cross compilation, error from gdb/tui module Date: Thu, 28 Oct 2010 10:18:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.33-29-realtime; KDE/4.4.2; x86_64; ; ) Cc: paawan oza , Baurzhan Ismagulov References: <877394.75835.qm@web112505.mail.gq1.yahoo.com> <185221.64370.qm@web112515.mail.gq1.yahoo.com> <954946.73290.qm@web112515.mail.gq1.yahoo.com> In-Reply-To: <954946.73290.qm@web112515.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010281118.10136.pedro@codesourcery.com> 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-10/txt/msg00117.txt.bz2 On Thursday 28 October 2010 10:43:11, paawan oza wrote: > If I try > ./configure --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi > --build=i686-pc-linux-gnu --disable-tui > and build gdb that means.... > > -> gdb is able to rn on loinux host with x86 arch ? Yes. > -> and using target sim command I can debug arm binaries. ? No, --target=arm-none-linux-gnueabi does not include "target sim". Look at gdb/configure.tgt for "gdb_sim=../sim/arm". You'll need --target=arm-eabi or arm-elf. > -> but if modify arm-tdep.c then will I be able to test the implementation > (process record, non-linux-ABI part) ? Supposedly. If you want to work on the linux part as well, and if running a native arm gdb is too much for your arm board, you can use process record on x86 connected to an arm-linux gdbserver ("target remote ...") running on the arm board. That'll be slow, but should work. -- Pedro Alves