Define HAVE_NATIVE_GCORE_HOST on NetBSD

Message ID 20170905210323.28834-1-n54@gmx.com
State New, archived
Headers

Commit Message

Kamil Rytarowski Sept. 5, 2017, 9:03 p.m. UTC
  NetBSD ships with gcore(1) againg since the version 2.0.
This tool is functional and actively maintained.

gdb/ChangeLog
2017-09-05  Kamil Rytarowski  <n54@gmx.com>

	* configure.nat:  Define HAVE_NATIVE_GCORE_HOST on NetBSD.
---
 gdb/ChangeLog     | 4 ++++
 gdb/configure.nat | 1 +
 2 files changed, 5 insertions(+)
  

Comments

Joel Brobecker Sept. 6, 2017, 12:19 a.m. UTC | #1
> NetBSD ships with gcore(1) againg since the version 2.0.
> This tool is functional and actively maintained.
> 
> gdb/ChangeLog
> 2017-09-05  Kamil Rytarowski  <n54@gmx.com>
> 
> 	* configure.nat:  Define HAVE_NATIVE_GCORE_HOST on NetBSD.

Makes sense. Approved.

> ---
>  gdb/ChangeLog     | 4 ++++
>  gdb/configure.nat | 1 +
>  2 files changed, 5 insertions(+)
> 
> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
> index 6d2eae58bc..f89ab8b06d 100644
> --- a/gdb/ChangeLog
> +++ b/gdb/ChangeLog
> @@ -1,3 +1,7 @@
> +2017-09-05  Kamil Rytarowski  <n54@gmx.com>
> +
> +	* configure.nat:  Define HAVE_NATIVE_GCORE_HOST on NetBSD.
> +
>  2017-09-05  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
>  
>  	* objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
> diff --git a/gdb/configure.nat b/gdb/configure.nat
> index b1dda30852..c14a5b8f0b 100644
> --- a/gdb/configure.nat
> +++ b/gdb/configure.nat
> @@ -68,6 +68,7 @@ case ${gdb_host} in
>  	;;
>      nbsd*)
>  	NATDEPFILES='fork-child.o fork-inferior.o inf-ptrace.o'
> +	HAVE_NATIVE_GCORE_HOST=1
>  	;;
>      obsd*)
>  	NATDEPFILES='fork-child.o fork-inferior.o inf-ptrace.o'
> -- 
> 2.14.1
  

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6d2eae58bc..f89ab8b06d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@ 
+2017-09-05  Kamil Rytarowski  <n54@gmx.com>
+
+	* configure.nat:  Define HAVE_NATIVE_GCORE_HOST on NetBSD.
+
 2017-09-05  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
 
 	* objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
diff --git a/gdb/configure.nat b/gdb/configure.nat
index b1dda30852..c14a5b8f0b 100644
--- a/gdb/configure.nat
+++ b/gdb/configure.nat
@@ -68,6 +68,7 @@  case ${gdb_host} in
 	;;
     nbsd*)
 	NATDEPFILES='fork-child.o fork-inferior.o inf-ptrace.o'
+	HAVE_NATIVE_GCORE_HOST=1
 	;;
     obsd*)
 	NATDEPFILES='fork-child.o fork-inferior.o inf-ptrace.o'