From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25923 invoked by alias); 6 May 2005 00:06:22 -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 25344 invoked from network); 6 May 2005 00:05:56 -0000 Received: from unknown (HELO rproxy.gmail.com) (64.233.170.196) by sourceware.org with SMTP; 6 May 2005 00:05:56 -0000 Received: by rproxy.gmail.com with SMTP id y7so486036rne for ; Thu, 05 May 2005 17:05:56 -0700 (PDT) Received: by 10.11.116.12 with SMTP id o12mr44104cwc; Thu, 05 May 2005 17:05:56 -0700 (PDT) Received: by 10.11.99.70 with HTTP; Thu, 5 May 2005 17:05:56 -0700 (PDT) Message-ID: <7f45d93905050517053a33f3c9@mail.gmail.com> Date: Fri, 06 May 2005 00:06:00 -0000 From: Shaun Jackman Reply-To: Shaun Jackman To: gdb@sources.redhat.com Subject: Disassembling ARM and Thumb code Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-05/txt/msg00063.txt.bz2 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? Thanks, Shaun (gdb) p/x $cpsr $10 =3D 0x4000003f (gdb) x/i $pc 0x20004dc : cmpcs r4, #67108864 ; 0x4000000 (gdb) 0x20004e0 : strmibt r2, [r9], -r0, lsl #8 $ arm-elf-gdb --version GNU gdb 6.2.1 ... This GDB was configured as "--host=3Di686-pc-linux-gnu --target=3Darm-elf".