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] Don't switch to the event thread early in non-stop mode.


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 (éå)



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