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