Re: [RFC][patch] Allow to disassemble line.

Paul Pluzhnikov
2009-10-08T16:16:36Z

On Thu, Oct 1, 2009 at 5:49 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:

> P.S. With 'set disassemble-next-line on', current GDB appears to not work
> as described in the manual. In particular, the manual for it says:
>
> If ON, GDB will display disassembly of the next source line when
> execution of the program being debugged stops.
>
> But what GDB actually does is disassemble from *current instruction* to the
> end of line.
>
> If the reason for stopping is a breakpoint on the given line, then the
> end result is the same either way. If the reason for stopping is a crash,
> then you get disassembly only from crash point to end of line.
>
> I think it's reasonable for GDB to behave either way. If it should
> disassemble the *entire* current line, this code should be unified with
> my patch. If the current behavior is more desirable, the manual should
> be fixed instead.

Does anybody have an opinion on whether the implementation should be
changed to match the manual, or vice versa?

Thanks,
--
Paul Pluzhnikov