This is the mail archive of the
mailing list for the GDB project.
Re: [RFC][patch] Allow to disassemble line.
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: gdb-patches at sourceware dot org
- Cc: ppluzhnikov at google dot com
- Date: Thu, 8 Oct 2009 09:16:23 -0700
- Subject: Re: [RFC][patch] Allow to disassemble line.
- References: <20091002004954.8966C76B2B@ppluzhnikov.mtv.corp.google.com>
On Thu, Oct 1, 2009 at 5:49 PM, Paul Pluzhnikov <firstname.lastname@example.org> 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?