This is the mail archive of the gdb-patches@sourceware.cygnus.com 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]

Re: RFA: thread.c: handle "q" during "info threads"


"Nick Duffek
> 
> When debugging program with many threads, the "info threads" command may
> generate multiple screenfuls of information interleaved with "---Type
> <return> to continue, or q <return> to quit---" prompts.
> 
> If "q" is typed in response to that prompt, one of two bad things happen:
> 
>   1. If the prompt occurred between two wrapped lines describing the same
>      thread, GDB ignores the quit request.
> 
>   2. Otherwise, GDB decides that the last thread displayed is the current
>      thread.
> 
> Here are two patches to fix that problem.  The first patch uses the new
> catch_errors() interface I proposed in my earlier post entitled "RFA:
> top.c: new catch_errors + cleanup interface".  The second patch uses the
> current interface.
> 
> There are no regressions for either patch on sparc-sun-solaris2.6.
> 
> Okay to commit one or the other?

Nick, I'd apply the second of these two patches for the moment.

	Andrew

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