[PATCH v2 1/3] Add low_new_clone method to linux_nat_target.

Ulrich Weigand uweigand@de.ibm.com
Mon Feb 17 17:49:00 GMT 2020


Pedro Franco de Carvalho wrote:

> This patch adds a low_new_clone method to linux_nat_target, called after
> a PTRACE_EVENT_CLONE is detected, similar to how low_new_fork is called
> after PTRACE_EVENT_(V)FORK.
> 
> This is useful for targets that need to copy state associated with a
> thread that is inherited across clones.

Given the discussion we had last year, this is really required for a
correct Power implementation of watchpoints.  Given that the implementation
in common code is straightforward, I this this is fine.

> 	* linux-nat.h (low_new_clone): New method.
> 	* linux-nat.c (linux_handle_extended_wait): Call low_new_clone.

OK.

Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com



More information about the Gdb-patches mailing list