Displaced stepping not always working as expected

Pedro Alves pedro@codesourcery.com
Wed Sep 21 10:23:00 GMT 2011


On Wednesday 21 September 2011 07:08:43, Yao Qi wrote:
> The line of log looks strange to me.  Why LWP 763 switch to itself?

This is non-stop mode, and fetch_inferior_event always prints the
"context switch":

  if (non_stop
      && ecs->ws.kind != TARGET_WAITKIND_IGNORE
      && ecs->ws.kind != TARGET_WAITKIND_EXITED
      && ecs->ws.kind != TARGET_WAITKIND_SIGNALLED)
    /* In non-stop mode, each thread is handled individually.  Switch
       early, so the global state is set correctly for this
       thread.  */
    context_switch (ecs->ptid);

-- 
Pedro Alves



More information about the Gdb mailing list