From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 769 invoked by alias); 9 May 2005 12:48:51 -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 32148 invoked by uid 22791); 9 May 2005 12:48:03 -0000 Received: from cam-admin0.cambridge.arm.com (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 09 May 2005 12:48:03 +0000 Received: from pc960.cambridge.arm.com (pc960.cambridge.arm.com [10.1.205.4]) by cam-admin0.cambridge.arm.com (8.12.10/8.12.10) with ESMTP id j49CltYC014053; Mon, 9 May 2005 13:47:55 +0100 (BST) Received: from pc960.cambridge.arm.com (localhost.localdomain [127.0.0.1]) by pc960.cambridge.arm.com (8.12.8/8.12.8) with ESMTP id j49ClwbC025749; Mon, 9 May 2005 13:47:58 +0100 Received: (from rearnsha@localhost) by pc960.cambridge.arm.com (8.12.8/8.12.8/Submit) id j49ClwXB025747; Mon, 9 May 2005 13:47:58 +0100 X-Authentication-Warning: pc960.cambridge.arm.com: rearnsha set sender to rearnsha@gcc.gnu.org using -f Subject: Re: Disassembling ARM and Thumb code From: Richard Earnshaw To: Shaun Jackman Cc: gdb@sources.redhat.com In-Reply-To: <7f45d939050506093578e17a4b@mail.gmail.com> References: <7f45d93905050517053a33f3c9@mail.gmail.com> <20050506015559.GA3922@nevyn.them.org> <7f45d93905050520353a1dc5ed@mail.gmail.com> <20050506040755.GA7038@nevyn.them.org> <7f45d939050506093578e17a4b@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1115642877.25452.17.camel@pc960.cambridge.arm.com> Mime-Version: 1.0 Date: Mon, 09 May 2005 12:48:00 -0000 X-SW-Source: 2005-05/txt/msg00105.txt.bz2 On Fri, 2005-05-06 at 17:35, Shaun Jackman wrote: > On 5/5/05, Daniel Jacobowitz wrote: > > > Hehe. I agree, that's probably not the best plan. However, for the > > > unique case of 'x/i $pc' it does make a certain amount of sense to use > > > the CPSR as a hint. I'm not sure if it's worth the special case > > > though. An explicit switch to the x/i and disas commands to specify > > > ARM or Thumb dissection is very much a good idea though. > > > > Yes, probably; if you have a good idea for the syntax to use, then > > maybe we can add it. I don't much like the idea of target-specific > > modifiers. > > I like the look of this: > > x/i for intelligent > x/iw for ARM > x/ih for Thumb > Ug. Doesn't really make sense for Thumb-2. Nor does it make sense for the 'disassemble' command. > Another option is... > > set disassembly-flavor arm > set disassembly-flavor thumb less objectionable, provided you avoid 'flavor' which is irritating to those who use British English spelling. I'd go for set disassembly-isa {auto|arm|thumb} R.