Re: [RFC] disassemble-next-line

Doug Evans
2009-03-10T02:05:48Z

On Mon, Mar 9, 2009 at 12:41 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>> Cc: Eli Zaretskii <eliz@gnu.org>, Doug Evans <dje@google.com>,
>> Pedro Alves <pedro@codesourcery.com>,
>> Daniel Jacobowitz <drow@false.org>,
>> "gdb-patches\@sourceware.org" <gdb-patches@sourceware.org>
>> From: Tom Tromey <tromey@redhat.com>
>> Date: Mon, 09 Mar 2009 09:26:03 -0600
>>
>> teawater> +Show debugger's willingness to use disassemble-next-line."), _("\
>> teawater> +If on, gdb will output the assembly codes of next line.\n\
>>
>> This also reads strangely, but I don't have a suggestion for what it
>> ought to say. I think it should at least say when the assembly will
>> be displayed. "assembly codes" in particular sounds odd to me.
>
> How about
>
> If ON, GDB will disassemble next source line.

fwiw, I think it should also indicate _when_ it will disassemble the next line.
E.g.

If ON, GDB will disassemble the next source line when execution stops.
If the next source line cannot be ascertained, the next instruction
will be disassembled instead.

or some such.
[IIRC, that is the intended behaviour.]

$0.02.