Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: Joel Brobecker <brobecker@adacore.com>,
	Tom Tromey <tromey@redhat.com>,  	Eli Zaretskii <eliz@gnu.org>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: [RFA] Set the default of disassemble-next-line to off
Date: Sun, 19 Apr 2009 13:47:00 -0000	[thread overview]
Message-ID: <daef60380904190647o7b850a5fia60ffd3e9c493bfd@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

Hi guys,

I make the patches to set the default of disassemble-next-line to off.
 Please help me review it.

2009-04-19  Hui Zhu  <teawater@gmail.com>

	* stack.c (_initialize_stack): Set the default of
	disassemble-next-line to off.

2009-04-19  Hui Zhu  <teawater@gmail.com>

	* gdbint.texinfo (disassemble-next-line): Set the default of
	disassemble-next-line to off.

Thanks,
Hui

[-- Attachment #2: change-disassemble-next-line-off.txt --]
[-- Type: text/plain, Size: 856 bytes --]

---
 stack.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/stack.c
+++ b/stack.c
@@ -2149,13 +2149,13 @@ Set whether to disassemble next source l
 Show whether to disassemble next source line when execution stops."), _("\
 If ON, GDB will display disassembly of the next source line when\n\
 execution of the program being debugged stops.\n\
-If AUTO (which is the default), or there's no line info to determine\n\
+If AUTO, or there's no line info to determine\n\
 the source line of the next instruction, display disassembly of next\n\
 instruction instead."),
 			        NULL,
 			        show_disassemble_next_line,
 			        &setlist, &showlist);
-  disassemble_next_line = AUTO_BOOLEAN_AUTO;
+  disassemble_next_line = AUTO_BOOLEAN_FALSE;
 
 #if 0
   add_cmd ("backtrace-limit", class_stack, set_backtrace_limit_command, _(\

[-- Attachment #3: change-disassemble-next-line-off-doc.txt --]
[-- Type: text/plain, Size: 715 bytes --]

---
 doc/gdb.texinfo |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--- a/doc/gdb.texinfo
+++ b/doc/gdb.texinfo
@@ -6061,9 +6061,8 @@ Show the current setting of the disassem
 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 (which is the default), or there's no line info to determine
-the source line of the next instruction, display disassembly of next
-instruction instead.
+If AUTO, or there's no line info to determine the source line of the
+next instruction, display disassembly of next instruction instead.
 @end table
 
 

             reply	other threads:[~2009-04-19 13:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-19 13:47 Hui Zhu [this message]
2009-04-19 17:43 ` Eli Zaretskii
2009-04-20 16:30   ` Hui Zhu
2009-04-20 18:17 ` Tom Tromey
2009-04-22  6:42   ` Hui Zhu
2009-04-22 17:11     ` Eli Zaretskii
2009-04-22 18:46       ` Tom Tromey
2009-04-25  9:44         ` Eli Zaretskii
2009-04-23  3:46       ` Hui Zhu
2009-04-25  9:56         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=daef60380904190647o7b850a5fia60ffd3e9c493bfd@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox