From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9262 invoked by alias); 25 Apr 2009 09:56:54 -0000 Received: (qmail 9253 invoked by uid 22791); 25 Apr 2009 09:56:53 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout5.012.net.il (HELO mtaout5.012.net.il) (84.95.2.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Apr 2009 09:56:46 +0000 Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KIN00B00I7WYY00@i_mtaout5.012.net.il> for gdb-patches@sourceware.org; Sat, 25 Apr 2009 12:56:08 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.175.232]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KIN003I4I9GY5U4@i_mtaout5.012.net.il>; Sat, 25 Apr 2009 12:56:08 +0300 (IDT) Date: Sat, 25 Apr 2009 09:56:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] Set the default of disassemble-next-line to off In-reply-to: To: Hui Zhu Cc: tromey@redhat.com, brobecker@adacore.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83k559f45n.fsf@gnu.org> References: <83eivkhavi.fsf@gnu.org> 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-04/txt/msg00707.txt.bz2 > Date: Thu, 23 Apr 2009 11:45:59 +0800 > From: Hui Zhu > Cc: tromey@redhat.com, brobecker@adacore.com, gdb-patches@sourceware.org > > Everything of this patch is very clear. > > +If AUTO (which is the default), display disassembly of next\n\ > (which is the default) need move to > ++If OFF (which is the default) , > > After updated it, it's OK for me. > > btw, I think gdb.texinfo need this patch too. I installed the following patch: 2009-04-25 Eli Zaretskii * gdb.texinfo (Machine Code) : Improve and clarify the wording. Index: gdb/doc/gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.585 diff -u -r1.585 gdb.texinfo --- gdb/doc/gdb.texinfo 23 Apr 2009 21:28:20 -0000 1.585 +++ gdb/doc/gdb.texinfo 25 Apr 2009 09:53:08 -0000 @@ -6071,11 +6071,21 @@ @kindex show disassemble-next-line @item set disassemble-next-line @itemx show disassemble-next-line -Control whether or not @value{GDBN} will disassemble next source line -when execution stops. If ON, GDB will display disassembly of the next -source line when execution of the program being debugged stops. -If AUTO, or there's no line info to determine the source line of the -next instruction, display disassembly of next instruction instead. +Control whether or not @value{GDBN} will disassemble the next source +line or instruction when execution stops. If ON, @value{GDBN} will +display disassembly of the next source line when execution of the +program being debugged stops. This is @emph{in addition} to +displaying the source line itself, which @value{GDBN} always does if +possible. If the next source line cannot be displayed for some reason +(e.g., if @value{GDBN} cannot find the source file, or there's no line +info in the debug info), @value{GDBN} will display disassembly of the +next @emph{instruction} instead of showing the next source line. If +AUTO, @value{GDBN} will display disassembly of next instruction only +if the source line cannot be displayed. This setting causes +@value{GDBN} to display some feedback when you step through a function +with no line info or whose source file is unavailable. The default is +OFF, which means never display the disassembly of the next line or +instruction. @end table