Received: from [140.186.70.92] (port=50924 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcKvz-0000J4-8Y for qemu-devel@nongnu.org; Mon, 10 Jan 2011 11:49:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcKvx-0005VG-5n for qemu-devel@nongnu.org; Mon, 10 Jan 2011 11:49:30 -0500 Received: from hall.aurel32.net ([88.191.126.93]:40656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcKvw-0005Uu-RM for qemu-devel@nongnu.org; Mon, 10 Jan 2011 11:49:29 -0500 Date: Mon, 10 Jan 2011 17:49:26 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] arm-dis: Include opcode hex when doing disassembly Message-ID: <20110110164926.GI17026@hall.aurel32.net> References: <1294676186-12518-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1294676186-12518-1-git-send-email-peter.maydell@linaro.org> Sender: Aurelien Jarno List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: riku voipio , qemu-devel@nongnu.org On Mon, Jan 10, 2011 at 04:16:26PM +0000, Peter Maydell wrote: > Enhance the ARM disassembler used for debugging so that it includes > the hex dump of the opcode as well as the symbolic disassembly. > > Signed-off-by: Peter Maydell > --- > This is based on meego-qemu commit e548a60c with a change suggested > last time that patch was sent to qemu-devel: > http://www.mail-archive.com/qemu-devel@nongnu.org/msg28258.html > http://www.mail-archive.com/qemu-devel@nongnu.org/msg29235.html > > I have used GNU-style indent conventions in this change because > the rest of this file consistently does so (being from libopcode > originally). > > arm-dis.c | 24 ++++++++++++++++++++++++ > 1 files changed, 24 insertions(+), 0 deletions(-) Strangely on arm host, the opcode hex is already included, as shown below: | OUT: [size=308] | 0x01001ec0: e5974004 ldr r4, [r7, #4] | 0x01001ec4: e1a04804 lsl r4, r4, #16 | 0x01001ec8: e1a04824 lsr r4, r4, #16 | 0x01001ecc: e1a04404 lsl r4, r4, #8 Maybe there is just an option to enable to allow that? -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net