This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFA: thread.c: handle "q" during "info threads"
- To: "Nick Duffek <Nick Duffek" <nsd at cygnus dot com>
- Subject: Re: RFA: thread.c: handle "q" during "info threads"
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 12 May 2000 21:10:01 +1000
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <200004121650.QAA13711@nog.bosbc.com>
"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