From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19464 invoked by alias); 22 May 2009 21:54:22 -0000 Received: (qmail 19456 invoked by uid 22791); 22 May 2009 21:54:22 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 May 2009 21:54:16 +0000 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 211471C00066; Fri, 22 May 2009 23:54:13 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id CE7F1901EF; Fri, 22 May 2009 23:54:13 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id N-22A8lw5+T3; Fri, 22 May 2009 23:54:12 +0200 (CEST) Received: from igel.home (DSL01.83.171.156.13.ip-pool.NEFkom.net [83.171.156.13]) by mail.mnet-online.de (Postfix) with ESMTP; Fri, 22 May 2009 23:54:12 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id B763310C955; Fri, 22 May 2009 23:54:11 +0200 (CEST) From: Andreas Schwab To: Toshi Morita Cc: gdb@sourceware.org Subject: Re: Disassemble arbitrary memory with disas? References: <987444.33167.qm@web50611.mail.re2.yahoo.com> X-Yow: Talking Pinhead Blues: Oh, I LOST my ``HELLO KITTY'' DOLL and I get BAD reception on channel TWENTY-SIX!! Th'HOSTESS FACTORY is closin' down and I just heard ZASU PITTS has been DEAD for YEARS.. (sniff) My PLATFORM SHOE collection was CHEWED up by th'dog, ALEXANDER HAIG won't let me take a SHOWER 'til Easter.. (snurf) So I went to the kitchen, but WALNUT PANELING whup me upside mah HAID!! (on no, no, no.. Heh, heh) Date: Fri, 22 May 2009 21:54:00 -0000 In-Reply-To: <987444.33167.qm@web50611.mail.re2.yahoo.com> (Toshi Morita's message of "Fri, 22 May 2009 14:36:49 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00153.txt.bz2 Toshi Morita writes: > I'm currently debugging a JIT which dynamically generates code, and I'd like to disassemble it with the "disas" command in GDB. > > However, since there isn't any symbolic information for the buffer in which the code is generated, GDB refuses to disassemble. > > Is there a way to do this? (gdb) help disass Disassemble a specified section of memory. Default is the function surrounding the pc of the selected frame. With a /m modifier, source lines are included (if available). With a single argument, the function surrounding that address is dumped. Two arguments are taken as a range of memory to dump. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."