From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13102 invoked by alias); 6 May 2005 01:56:15 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12885 invoked from network); 6 May 2005 01:56:00 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 6 May 2005 01:56:00 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DTs4N-000126-4m; Thu, 05 May 2005 21:55:59 -0400 Date: Fri, 06 May 2005 01:56:00 -0000 From: Daniel Jacobowitz To: Shaun Jackman Cc: gdb@sources.redhat.com Subject: Re: Disassembling ARM and Thumb code Message-ID: <20050506015559.GA3922@nevyn.them.org> Mail-Followup-To: Shaun Jackman , gdb@sources.redhat.com References: <7f45d93905050517053a33f3c9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f45d93905050517053a33f3c9@mail.gmail.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00064.txt.bz2 On Thu, May 05, 2005 at 05:05:56PM -0700, Shaun Jackman wrote: > My ARM7TDMI processor is currently in Thumb mode, but the x/i command > dissects the instruction as an ARM instruction. The symbol > rdp_getargvsp is a Thumb symbol added using add-symbol-file [elf > binary here]. What is the command to disassemble a given memory > location as a Thumb instruction? How is it marked as Thumb in the binary? GDB does not use the current CPSR value when disassembling; that way lies madness. -- Daniel Jacobowitz CodeSourcery, LLC