This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Thu, Oct 08, 2009 at 09:16:23AM -0700, Paul Pluzhnikov wrote:
> 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?

I agree that both are reasonable.

I'd mildly prefer changing the behavior of GDB - but only if we can
get an additional enhancement that I don't think we have yet: "*" at
the PC...

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]