From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8574 invoked by alias); 11 Jul 2009 09:32:15 -0000 Received: (qmail 8564 invoked by uid 22791); 11 Jul 2009 09:32:15 -0000 X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_JMF_BL,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Jul 2009 09:32:04 +0000 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KMM007002FS3K00@i_mtaout2.012.net.il> for gdb-patches@sourceware.org; Sat, 11 Jul 2009 12:32:01 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.249.41]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KMM00HTU2HC0810@i_mtaout2.012.net.il>; Sat, 11 Jul 2009 12:32:01 +0300 (IDT) Date: Sat, 11 Jul 2009 12:42:00 -0000 From: Eli Zaretskii Subject: Re: Add a new modifier /c to "disassemble" command to make it output binary code In-reply-to: To: Hui Zhu Cc: tromey@redhat.com, msnyder@vmware.com, dje@google.com, mark.kettenis@xs4all.nl, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <8363dzy38t.fsf@gnu.org> References: 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: 2009-07/txt/msg00331.txt.bz2 > Date: Sat, 11 Jul 2009 16:46:28 +0800 > From: Hui Zhu > Cc: gdb-patches ml > > @@ -1454,6 +1458,7 @@ With two args if one is empty it stands > Disassemble a specified section of memory.\n\ > Default is the function surrounding the pc of the selected frame.\n\ > With a /m modifier, source lines are included (if available).\n\ > +With a /r modifier, instruction in hex are included.\n\ With a /r modifier, raw instructions in hex are included. (Use "raw" explicitly to help people remember why there's an `r' in "/r".) > +++ b/doc/gdb.texinfo > @@ -6178,9 +6178,11 @@ Variables}). > @cindex listing machine instructions > @item disassemble > @itemx disassemble /m > +@itemx disassemble /r > This specialized command dumps a range of memory as machine > instructions. It can also print mixed source+disassembly by specifying > -the @code{/m} modifier. > +the @code{/m} modifier and print the instruction in hex as well as in > +symbolic form by specifying the @code{/r}. and print the raw instructions in hex as well as in symbolic form Again, please use the word "raw" in the text. Also, what about NEWS? didn't we agree that an entry there would be a Good Thing?