From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7sEF-00078B-As for qemu-devel@nongnu.org; Fri, 09 Aug 2013 15:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7sE8-00019G-Ni for qemu-devel@nongnu.org; Fri, 09 Aug 2013 15:20:03 -0400 Received: from mail-qc0-x22f.google.com ([2607:f8b0:400d:c01::22f]:57555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7sE8-00019A-Ho for qemu-devel@nongnu.org; Fri, 09 Aug 2013 15:19:56 -0400 Received: by mail-qc0-f175.google.com with SMTP id s11so2378323qcv.20 for ; Fri, 09 Aug 2013 12:19:56 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Fri, 9 Aug 2013 09:19:16 -1000 Message-Id: <1376075958-21932-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 0/2] Disassembly with external objdump List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jcmvbkbc@gmail.com, gxt@mprc.pku.edu.cn, proljc@gmail.com, claudio.fontana@gmail.com, peter.maydell@linaro.org We have one host platform (aarch64), and three target platforms (openrisc, unicore32, xtensa) with no built-in disassembly support, thanks largely to gplv3 silliness. Here's a first-cut at handling these cases with an external tool. The qemu-produced dump file contains just a hex dump of bytes, and a perl script is provided to pass those bytes through objdump. I've lightly tested this with aarch64 host running on Foundation. Feedback appreciated. r~ Richard Henderson (2): disas: Implement fallback to dump object code as hex disas: Add disas-objdump.pl disas.c | 46 +++++++++++++++++++------ scripts/disas-objdump.pl | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+), 10 deletions(-) create mode 100755 scripts/disas-objdump.pl -- 1.8.3.1