* [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* Re: [RFA] Set the default of disassemble-next-line to off
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
1 sibling, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2009-04-19 17:43 UTC (permalink / raw)
To: Hui Zhu; +Cc: brobecker, tromey, gdb-patches
> Date: Sun, 19 Apr 2009 21:47:25 +0800
> From: Hui Zhu <teawater@gmail.com>
> Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
>
> 2009-04-19 Hui Zhu <teawater@gmail.com>
>
> * gdbint.texinfo (disassemble-next-line): Set the default of
> disassemble-next-line to off.
This is fine with me. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFA] Set the default of disassemble-next-line to off
2009-04-19 17:43 ` Eli Zaretskii
@ 2009-04-20 16:30 ` Hui Zhu
0 siblings, 0 replies; 10+ messages in thread
From: Hui Zhu @ 2009-04-20 16:30 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: brobecker, tromey, gdb-patches
Thanks Eli.
Hui
On Mon, Apr 20, 2009 at 01:42, Eli Zaretskii <eliz@gnu.org> wrote:
>
> > Date: Sun, 19 Apr 2009 21:47:25 +0800
> > From: Hui Zhu <teawater@gmail.com>
> > Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
> >
> > 2009-04-19 Hui Zhu <teawater@gmail.com>
> >
> > * gdbint.texinfo (disassemble-next-line): Set the default of
> > disassemble-next-line to off.
>
> This is fine with me. Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFA] Set the default of disassemble-next-line to off
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 18:17 ` Tom Tromey
2009-04-22 6:42 ` Hui Zhu
1 sibling, 1 reply; 10+ messages in thread
From: Tom Tromey @ 2009-04-20 18:17 UTC (permalink / raw)
To: Hui Zhu; +Cc: Joel Brobecker, Eli Zaretskii, gdb-patches
>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
Hui> -If AUTO (which is the default), or there's no line info to determine\n\
Hui> +If AUTO, or there's no line info to determine\n\
Hui> the source line of the next instruction, display disassembly of next\n\
Hui> instruction instead."),
It seems to me that this should read:
If AUTO, and there's no line info to determine [...]
The actual code change is fine :-)
thanks,
Tom
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [RFA] Set the default of disassemble-next-line to off
2009-04-20 18:17 ` Tom Tromey
@ 2009-04-22 6:42 ` Hui Zhu
2009-04-22 17:11 ` Eli Zaretskii
0 siblings, 1 reply; 10+ messages in thread
From: Hui Zhu @ 2009-04-22 6:42 UTC (permalink / raw)
To: Tom Tromey; +Cc: Joel Brobecker, Eli Zaretskii, gdb-patches
On Tue, Apr 21, 2009 at 02:16, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
>
> Hui> -If AUTO (which is the default), or there's no line info to determine\n\
> Hui> +If AUTO, or there's no line info to determine\n\
> Hui> the source line of the next instruction, display disassembly of next\n\
> Hui> instruction instead."),
>
> It seems to me that this should read:
>
> If AUTO, and there's no line info to determine [...]
If auto:
if this is no line info, it will output the next instruction.
if this is line inof, it will output nothing.
If on:
if this is no line info, it will output the next instruction.
if this is line inof, it will display disassembly of the next source
line whenexecution of the program being debugged stops.
If off,
it will output nothing.
I have no idea to write it clear.
Could you please help me with it?
>
> The actual code change is fine :-)
Thanks, it is checked in.
Hui
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFA] Set the default of disassemble-next-line to off
2009-04-22 6:42 ` Hui Zhu
@ 2009-04-22 17:11 ` Eli Zaretskii
2009-04-22 18:46 ` Tom Tromey
2009-04-23 3:46 ` Hui Zhu
0 siblings, 2 replies; 10+ messages in thread
From: Eli Zaretskii @ 2009-04-22 17:11 UTC (permalink / raw)
To: Hui Zhu; +Cc: tromey, brobecker, gdb-patches
> Date: Wed, 22 Apr 2009 14:42:36 +0800
> From: Hui Zhu <teawater@gmail.com>
> Cc: Joel Brobecker <brobecker@adacore.com>, Eli Zaretskii <eliz@gnu.org>,
> "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
>
> On Tue, Apr 21, 2009 at 02:16, Tom Tromey <tromey@redhat.com> wrote:
> >>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
> >
> > Hui> -If AUTO (which is the default), or there's no line info to determine\n\
> > Hui> +If AUTO, or there's no line info to determine\n\
> > Hui> Â the source line of the next instruction, display disassembly of next\n\
> > Hui> Â instruction instead."),
> >
> > It seems to me that this should read:
> >
> > Â Â If AUTO, and there's no line info to determine [...]
>
> If auto:
> if this is no line info, it will output the next instruction.
> if this is line inof, it will output nothing.
>
> If on:
> if this is no line info, it will output the next instruction.
> if this is line inof, it will display disassembly of the next source
> line whenexecution of the program being debugged stops.
>
> If off,
> it will output nothing.
>
>
> I have no idea to write it clear.
> Could you please help me with it?
I already suggested a change in the doc string, see
http://sourceware.org/ml/gdb-patches/2009-04/msg00416.html
I didn't see any responses. If the text I suggest there is clear, I
will fix the manual as well.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFA] Set the default of disassemble-next-line to off
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
1 sibling, 1 reply; 10+ messages in thread
From: Tom Tromey @ 2009-04-22 18:46 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Hui Zhu, brobecker, gdb-patches
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Eli> I already suggested a change in the doc string, see
Eli> http://sourceware.org/ml/gdb-patches/2009-04/msg00416.html
Eli> I didn't see any responses. If the text I suggest there is clear, I
Eli> will fix the manual as well.
That looks good to me.
It will need a small update for the change of the default.
Tom
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFA] Set the default of disassemble-next-line to off
2009-04-22 18:46 ` Tom Tromey
@ 2009-04-25 9:44 ` Eli Zaretskii
0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2009-04-25 9:44 UTC (permalink / raw)
To: Tom Tromey; +Cc: teawater, brobecker, gdb-patches
> Cc: Hui Zhu <teawater@gmail.com>, brobecker@adacore.com,
> gdb-patches@sourceware.org
> From: Tom Tromey <tromey@redhat.com>
> Date: Wed, 22 Apr 2009 12:45:18 -0600
>
> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>
> Eli> I already suggested a change in the doc string, see
> Eli> http://sourceware.org/ml/gdb-patches/2009-04/msg00416.html
> Eli> I didn't see any responses. If the text I suggest there is clear, I
> Eli> will fix the manual as well.
>
> That looks good to me.
> It will need a small update for the change of the default.
Thanks. I committed it, with that change.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFA] Set the default of disassemble-next-line to off
2009-04-22 17:11 ` Eli Zaretskii
2009-04-22 18:46 ` Tom Tromey
@ 2009-04-23 3:46 ` Hui Zhu
2009-04-25 9:56 ` Eli Zaretskii
1 sibling, 1 reply; 10+ messages in thread
From: Hui Zhu @ 2009-04-23 3:46 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: tromey, brobecker, gdb-patches
On Thu, Apr 23, 2009 at 01:11, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Wed, 22 Apr 2009 14:42:36 +0800
>> From: Hui Zhu <teawater@gmail.com>
>> Cc: Joel Brobecker <brobecker@adacore.com>, Eli Zaretskii <eliz@gnu.org>,
>> "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
>>
>> On Tue, Apr 21, 2009 at 02:16, Tom Tromey <tromey@redhat.com> wrote:
>> >>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
>> >
>> > Hui> -If AUTO (which is the default), or there's no line info to determine\n\
>> > Hui> +If AUTO, or there's no line info to determine\n\
>> > Hui> the source line of the next instruction, display disassembly of next\n\
>> > Hui> instruction instead."),
>> >
>> > It seems to me that this should read:
>> >
>> > If AUTO, and there's no line info to determine [...]
>>
>> If auto:
>> if this is no line info, it will output the next instruction.
>> if this is line inof, it will output nothing.
>>
>> If on:
>> if this is no line info, it will output the next instruction.
>> if this is line inof, it will display disassembly of the next source
>> line whenexecution of the program being debugged stops.
>>
>> If off,
>> it will output nothing.
>>
>>
>> I have no idea to write it clear.
>> Could you please help me with it?
>
> I already suggested a change in the doc string, see
>
> http://sourceware.org/ml/gdb-patches/2009-04/msg00416.html
>
> I didn't see any responses. If the text I suggest there is clear, I
> will fix the manual as well.
>
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.
Thanks,
Hui
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [RFA] Set the default of disassemble-next-line to off
2009-04-23 3:46 ` Hui Zhu
@ 2009-04-25 9:56 ` Eli Zaretskii
0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2009-04-25 9:56 UTC (permalink / raw)
To: Hui Zhu; +Cc: tromey, brobecker, gdb-patches
> Date: Thu, 23 Apr 2009 11:45:59 +0800
> From: Hui Zhu <teawater@gmail.com>
> 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 <eliz@gnu.org>
* gdb.texinfo (Machine Code) <disassemble-next-line>: 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
^ 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