[PUSHED] Enable rthreads support on OpenBSD/powerpc.

Message ID 1399149731-24798-1-git-send-email-mark.kettenis@xs4all.nl
State Committed
Headers

Commit Message

Mark Kettenis May 3, 2014, 8:42 p.m. UTC
  From: Mark Kettenis <kettenis@gnu.org>

gdb/ChangeLog:

        * ppcobsd-nat.c: Include "obsd-nat.h".
        (_initialize_ppcobsd_nat): Call obsd_add_target instead of
        add_target.
        * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
---
 gdb/ChangeLog              | 7 +++++++
 gdb/config/powerpc/obsd.mh | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
  

Comments

Joel Brobecker May 3, 2014, 9:01 p.m. UTC | #1
Hi Mark,

On Sat, May 03, 2014 at 10:42:11PM +0200, Mark Kettenis wrote:
> From: Mark Kettenis <kettenis@gnu.org>
> 
> gdb/ChangeLog:
> 
>         * ppcobsd-nat.c: Include "obsd-nat.h".
>         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
>         add_target.
>         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.

Looks like you are missing the ppcobsd-nat.c change...

> ---
>  gdb/ChangeLog              | 7 +++++++
>  gdb/config/powerpc/obsd.mh | 2 +-
>  2 files changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
> index 303fcec..4f3af0d 100644
> --- a/gdb/ChangeLog
> +++ b/gdb/ChangeLog
> @@ -1,3 +1,10 @@
> +2014-05-03  Mark Kettenis  <kettenis@gnu.org>
> +
> +	* ppcobsd-nat.c: Include "obsd-nat.h".
> +	(_initialize_ppcobsd_nat): Call obsd_add_target instead of
> +	add_target.
> +	* config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
> +
>  2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
>  
>  	* stap-probe.c (enum stap_arg_bitness): New enums to represent 8
> diff --git a/gdb/config/powerpc/obsd.mh b/gdb/config/powerpc/obsd.mh
> index 51ccc81..2af667a 100644
> --- a/gdb/config/powerpc/obsd.mh
> +++ b/gdb/config/powerpc/obsd.mh
> @@ -1,4 +1,4 @@
>  # Host: OpenBSD/powerpc
> -NATDEPFILES= fork-child.o inf-ptrace.o ppcobsd-nat.o bsd-kvm.o
> +NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o ppcobsd-nat.o bsd-kvm.o
>  
>  LOADLIBES= -lkvm
> -- 
> 1.8.5.2
  
Mark Kettenis May 3, 2014, 9:21 p.m. UTC | #2
> Date: Sat, 3 May 2014 17:01:15 -0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> Hi Mark,
> 
> On Sat, May 03, 2014 at 10:42:11PM +0200, Mark Kettenis wrote:
> > From: Mark Kettenis <kettenis@gnu.org>
> > 
> > gdb/ChangeLog:
> > 
> >         * ppcobsd-nat.c: Include "obsd-nat.h".
> >         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
> >         add_target.
> >         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
> 
> Looks like you are missing the ppcobsd-nat.c change...

Yeah, already fixed.
  

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 303fcec..4f3af0d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@ 
+2014-05-03  Mark Kettenis  <kettenis@gnu.org>
+
+	* ppcobsd-nat.c: Include "obsd-nat.h".
+	(_initialize_ppcobsd_nat): Call obsd_add_target instead of
+	add_target.
+	* config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
+
 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
 
 	* stap-probe.c (enum stap_arg_bitness): New enums to represent 8
diff --git a/gdb/config/powerpc/obsd.mh b/gdb/config/powerpc/obsd.mh
index 51ccc81..2af667a 100644
--- a/gdb/config/powerpc/obsd.mh
+++ b/gdb/config/powerpc/obsd.mh
@@ -1,4 +1,4 @@ 
 # Host: OpenBSD/powerpc
-NATDEPFILES= fork-child.o inf-ptrace.o ppcobsd-nat.o bsd-kvm.o
+NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o ppcobsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm