From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18778 invoked by alias); 15 Apr 2010 17:38:19 -0000 Received: (qmail 18769 invoked by uid 22791); 15 Apr 2010 17:38:18 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL,TW_OV X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Apr 2010 17:38:12 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L0X00000I9E2000@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Thu, 15 Apr 2010 20:37:55 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.69.249]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L0X00JMUIB6VEA0@a-mtaout21.012.net.il>; Thu, 15 Apr 2010 20:37:55 +0300 (IDT) Date: Thu, 15 Apr 2010 17:38:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] disassemble support start,+length format In-reply-to: <20100415171432.GG540@codesourcery.com> To: Nathan Froyd Cc: crquan@gmail.com, gdb-patches@sourceware.org, tromey@redhat.com, teawater@gmail.com, brobecker@adacore.com Reply-to: Eli Zaretskii Message-id: <83zl14wr9o.fsf@gnu.org> References: <1270739689-28732-1-git-send-email-crquan@gmail.com> <1271317836-12963-1-git-send-email-crquan@gmail.com> <831vegy779.fsf@gnu.org> <20100415171432.GG540@codesourcery.com> 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/msg00471.txt.bz2 > Date: Thu, 15 Apr 2010 10:14:32 -0700 > From: Nathan Froyd > Cc: crquan@gmail.com, gdb-patches@sourceware.org, tromey@redhat.com, teawater@gmail.com, brobecker@adacore.com > > 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. Right, but even in this example, only the 2 movq instructions present a problem. The other instructions are okay.