[PATCH] Enable multi-process mode in the FreeBSD native target.
Pedro Alves
alves.ped@gmail.com
Wed Jul 8 18:43:31 GMT 2020
Ok.
A Qua, 8/07/2020, 01:54, John Baldwin <jhb@freebsd.org> escreveu:
> gdb/ChangeLog:
>
> * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
> declaration.
> * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
> function.
> ---
> gdb/ChangeLog | 7 +++++++
> gdb/fbsd-nat.c | 6 ++++++
> gdb/fbsd-nat.h | 2 ++
> 3 files changed, 15 insertions(+)
>
> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
> index c86d7e4647..f4e0e2990f 100644
> --- a/gdb/ChangeLog
> +++ b/gdb/ChangeLog
> @@ -1,3 +1,10 @@
> +2020-07-07 John Baldwin <jhb@FreeBSD.org>
> +
> + * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
> + declaration.
> + * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
> + function.
> +
> 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
>
> PR python/22748
> diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
> index 1d189a2501..4d6edb8cae 100644
> --- a/gdb/fbsd-nat.c
> +++ b/gdb/fbsd-nat.c
> @@ -1669,6 +1669,12 @@ fbsd_nat_target::set_syscall_catchpoint (int pid,
> bool needed,
> #endif
> #endif
>
> +bool
> +fbsd_nat_target::supports_multi_process ()
> +{
> + return true;
> +}
> +
> void _initialize_fbsd_nat ();
> void
> _initialize_fbsd_nat ()
> diff --git a/gdb/fbsd-nat.h b/gdb/fbsd-nat.h
> index 40117177b1..b5a62b9212 100644
> --- a/gdb/fbsd-nat.h
> +++ b/gdb/fbsd-nat.h
> @@ -94,6 +94,8 @@ class fbsd_nat_target : public inf_ptrace_target
> override;
> #endif
> #endif /* PT_LWPINFO */
> +
> + bool supports_multi_process () override;
> };
>
> #endif /* fbsd-nat.h */
> --
> 2.25.1
>
>
More information about the Gdb-patches
mailing list