bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB HEAD (partly) broken for GNU/Hurd


From: Pedro Alves
Subject: Re: GDB HEAD (partly) broken for GNU/Hurd
Date: Sat, 11 Oct 2008 18:46:31 +0100
User-agent: KMail/1.9.9

On Saturday 11 October 2008 18:26:11, Thomas Schwinge wrote:

> > Doesn't resume the whole shell?
> 
> But as I see things we always have ``non_stop == 0'' and thus
> ``resume_ptid = pid_to_ptid (-1)'', so that should be fine, isn't it?
> 

Duh!  Yes, of course.

> Here is a debugging-enabled run of a thusly patched GDB HEAD:

Thanks.

> 
>     STOPPED_BY_WATCHPOINT () = 0
>     infrun: context switch
>     infrun: Switching context from bogus thread id 1 to Thread 25830.3

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is missing in the new implementation.  In Hurd when going through
the shell doing fork/execs, we see new threads at every exec, and the
old threads disappear.  Could you try adding a `switch_to_thread 
(resume_thread)'
somewhere after target_wait returns and before any other target method?

-- 
Pedro Alves




reply via email to

[Prev in Thread] Current Thread [Next in Thread]