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]

Regression for T (Stopped) processes [Re: [PATCH] PR threads/10729: x86 hw watchpoints and non-stop mode]


On Wed, 14 Dec 2011 18:34:43 +0100, Pedro Alves wrote:
> --- a/gdb/gdbserver/linux-low.c
> +++ b/gdb/gdbserver/linux-low.c
> @@ -918,6 +918,8 @@ linux_detach_one_lwp (struct inferior_list_entry *entry, void *args)
>  			   get_lwp_thread (lwp));
>  
>    /* Finally, let it resume.  */
> +  if (the_low_target.prepare_to_resume != NULL)
> +    the_low_target.prepare_to_resume (lwp);
>    ptrace (PTRACE_DETACH, lwpid_of (lwp), 0, 0);
>  
>    delete_lwp (lwp);

If you have T (Stopped) process on Linux kernel 3.1+, you do attach,
bt/gcore/etc., detach, the state of the process must not change.
But the process will now run for a bit.

This is a regression.  Some users really insist the T (Stopped) inferior state
absolutely does not change.


Thanks,
Jan


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