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: [patch] python prompt additions at first prompt.


On Monday 29 August 2011 17:22:48, Matt Rice wrote:
> On Fri, Aug 12, 2011 at 8:07 AM, Matt Rice <ratmice@gmail.com> wrote:
> > On Fri, Aug 12, 2011 at 7:44 AM, Pedro Alves <pedro@codesourcery.com> wrote:
> >> On Friday 12 August 2011 14:10:17, Matt Rice wrote:
> >>> it seems clearer to return early in all sync_execution cases, and
> >>> limit the potential for introducing the double prompting type of bug.
> >>> I haven't been able to find any problems with this approach.
> >>
> >> I think this breaks the pagination prompt in async mode.  Try setting
> >> a breakpoint in a loop, with a command list that just continues:
> >>
> >> (gdb) b inloop
> >> (gdb) commands
> >> Type commands for breakpoint(s) 2, one per line.
> >> End with a line saying just "end".
> >>>c
> >>>end
> >> (gdb) c
> >
> > Yeah it does, thank you for pointing this out.
> >
> 

> Here is a version of my previous patch, which doesn't suffer from this failure.
> I have added  comments explaining that we really do want to display an
> empty prompt in this case.
> 
> hopefully this clears up any confusion...

Thanks.  I'd like to take a look at this.  Let me clear a few other pending
async things first, and I'll get back on this.

-- 
Pedro Alves


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