From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27586 invoked by alias); 25 Jul 2011 04:48:34 -0000 Received: (qmail 27578 invoked by uid 22791); 25 Jul 2011 04:48:33 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,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; Mon, 25 Jul 2011 04:48:18 +0000 Received: (qmail 24739 invoked from network); 25 Jul 2011 04:48:17 -0000 Received: from unknown (HELO ?192.168.0.101?) (yao@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Jul 2011 04:48:17 -0000 Message-ID: <4E2CF585.6090902@codesourcery.com> Date: Mon, 25 Jul 2011 04:48:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: how to test arm-tdep.c (with cross compiled gdbserver) using gdbserver ? References: <1311404891.92561.YahooMailRC@web112503.mail.gq1.yahoo.com> <1311566182.99397.YahooMailRC@web112507.mail.gq1.yahoo.com> In-Reply-To: <1311566182.99397.YahooMailRC@web112507.mail.gq1.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 2011-07/txt/msg00095.txt.bz2 On 07/25/2011 11:56 AM, paawan oza wrote: > I have done following, and with that should be able to test arm-reversible > stuffs with gdbserver. > >> > ./configure --target=arm-linux > >dependent code into build> >> > make >> > cd gdb >> > cd gdbserver >> > ./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi > board> > That looks right to me. You have to build a gdb for arm, as you did above, and then cross-compile gdbserver for arm-linux. > there are other targets such as arm-eabi, arm-elf. > but I am using arm-linux, hope thats ok and it works. IMO, it works, since your reverse code on arm shares among these arm-* targets. Testing your code on arm-linux should cover other arm-* targets. However, there may be some corner cases, such as svc instruction, that may behave a little different on bare-mental targets (arm-eabi, arm-elf) and linux targets (arm-linux). I am not familiar with reverse debugging, so I don't know how much affect of this difference to reverse debugging. (I might be wrong, of course.) -- Yao (齐尧)