Enable multi-process mode in the FreeBSD native target.

Message ID 20200708004714.91309-1-jhb@FreeBSD.org
State New
Headers show
Series
  • Enable multi-process mode in the FreeBSD native target.
Related show

Commit Message

John Baldwin July 8, 2020, 12:47 a.m.
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(+)

-- 
2.25.1

Comments

Simon Marchi via Gdb-patches July 8, 2020, 9:52 a.m. | #1
John Baldwin wrote:
> gdb/ChangeLog:

> 

> 	* fbsd-nat.h (fbsd_nat_target::supports_multi_process): New

> 	declaration.

> 	* fbsd-nat.c (fbsd_nat_target::supports_multi_process): New

> 	function.


LGTM.

Cheers,
Gary

-- 
Gary Benson - he / him / his
Principal Software Engineer, Red Hat
Simon Marchi via Gdb-patches July 8, 2020, 6:43 p.m. | #2
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

>

>

Patch

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 */