From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10985 invoked by alias); 15 Apr 2010 17:14:40 -0000 Received: (qmail 10975 invoked by uid 22791); 15 Apr 2010 17:14:38 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,TW_OV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Apr 2010 17:14:34 +0000 Received: (qmail 31720 invoked from network); 15 Apr 2010 17:14:33 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Apr 2010 17:14:33 -0000 Date: Thu, 15 Apr 2010 17:14:00 -0000 From: Nathan Froyd To: Eli Zaretskii Cc: crquan@gmail.com, gdb-patches@sourceware.org, tromey@redhat.com, teawater@gmail.com, brobecker@adacore.com Subject: Re: [PATCH] disassemble support start,+length format Message-ID: <20100415171432.GG540@codesourcery.com> References: <1270739689-28732-1-git-send-email-crquan@gmail.com> <1271317836-12963-1-git-send-email-crquan@gmail.com> <831vegy779.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <831vegy779.fsf@gnu.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00470.txt.bz2 On Thu, Apr 15, 2010 at 08:08:26PM +0300, Eli Zaretskii wrote: > > +@smallexample > > +(gdb) disas /r main,+20 > > +Dump of assembler code from 0x450670 to 0x450684: > > + 0x0000000000450670 : 48 83 ec 28 sub $0x28,%rsp > > + 0x0000000000450674 : 48 c7 04 24 00 00 00 00 movq $0x0,(%rsp) > > + 0x000000000045067c : 89 3c 24 mov %edi,(%rsp) > > + 0x000000000045067f : 48 89 e7 mov %rsp,%rdi > > + 0x0000000000450682 : 48 c7 44 24 10 00 00 00 00 movq $0x0,0x10(%rsp) > > +End of assembler dump. > > +@end smallexample > > This is okay, but any line inside @smallexample block that is longer > than 72 characters will overflow the page margins in the printed > version of the manual. So could you perhaps select an example with > shorter lines? Disassembling x86 code, rather than x86-64 code, would help out quite a bit. -Nathan