This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Don't switch to the event thread early in non-stop mode.
- From: Yao Qi <yao at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 13 Jun 2012 09:06:12 +0800
- Subject: Re: [PATCH] Don't switch to the event thread early in non-stop mode.
- References: <20120612184440.29776.25769.stgit@brno.lan>
On 06/13/2012 02:44 AM, Pedro Alves wrote:
> case TARGET_WAITKIND_SPURIOUS:
> if (debug_infrun)
> fprintf_unfiltered (gdb_stdlog, "infrun: TARGET_WAITKIND_SPURIOUS\n");
> + if (!ptid_equal (ecs->ptid, inferior_ptid)
> + && !ptid_equal (ecs->ptid, minus_one_ptid))
> + context_switch (ecs->ptid);
Is there any reason to check minus_one_ptid?
--
Yao (éå)