Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Set the default of disassemble-next-line to off
@ 2009-04-19 13:47 Hui Zhu
  2009-04-19 17:43 ` Eli Zaretskii
  2009-04-20 18:17 ` Tom Tromey
  0 siblings, 2 replies; 10+ messages in thread
From: Hui Zhu @ 2009-04-19 13:47 UTC (permalink / raw)
  To: Joel Brobecker, Tom Tromey, Eli Zaretskii; +Cc: gdb-patches

[-- 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
 
 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-04-25  9:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-19 13:47 [RFA] Set the default of disassemble-next-line to off Hui Zhu
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox