Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] fix amd64bsd-nat.c compilation
@ 2012-03-11 15:14 Andreas Tobler
  2012-03-12  5:02 ` Joel Brobecker
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Tobler @ 2012-03-11 15:14 UTC (permalink / raw)
  To: gdb-patches

Hi,

the below fixes these warnings:

/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:170: warning: no 
previous prototype for 'amd64bsd_dr_set_control'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:176: warning: no 
previous prototype for 'amd64bsd_dr_set_addr'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:184: warning: no 
previous prototype for 'amd64bsd_dr_get_addr'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:190: warning: no 
previous prototype for 'amd64bsd_dr_get_status'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:196: warning: no 
previous prototype for 'amd64bsd_dr_get_control'
gmake[2]: *** [amd64bsd-nat.o] Error 1

Ok to commit?

Thanks,
Andreas

2012-03-11  Andreas Tobler  <andreast@fgznet.ch>

	* amd64bsd-nat.c: Include amd64bsd-nat.h


Index: amd64bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64bsd-nat.c,v
retrieving revision 1.20
diff -u -r1.20 amd64bsd-nat.c
--- amd64bsd-nat.c	9 Feb 2012 16:06:44 -0000	1.20
+++ amd64bsd-nat.c	11 Mar 2012 15:05:23 -0000
@@ -31,6 +31,7 @@
  #include <machine/reg.h>

  #include "amd64-tdep.h"
+#include "amd64bsd-nat.h"
  #include "amd64-nat.h"
  #include "inf-ptrace.h"



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] fix amd64bsd-nat.c compilation
  2012-03-11 15:14 [patch] fix amd64bsd-nat.c compilation Andreas Tobler
@ 2012-03-12  5:02 ` Joel Brobecker
  2012-03-12  5:28   ` Andreas Tobler
  2012-03-12  7:56   ` Mark Kettenis
  0 siblings, 2 replies; 5+ messages in thread
From: Joel Brobecker @ 2012-03-12  5:02 UTC (permalink / raw)
  To: Andreas Tobler; +Cc: gdb-patches

> Ok to commit?
[...]
> 2012-03-11  Andreas Tobler  <andreast@fgznet.ch>
> 
> 	* amd64bsd-nat.c: Include amd64bsd-nat.h

Looks good to me. Please go ahead and commit.

Thanks for the fix,
-- 
Joel


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] fix amd64bsd-nat.c compilation
  2012-03-12  5:02 ` Joel Brobecker
@ 2012-03-12  5:28   ` Andreas Tobler
  2012-03-12  7:56   ` Mark Kettenis
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Tobler @ 2012-03-12  5:28 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

On 12.03.12 06:02, Joel Brobecker wrote:
>> Ok to commit?
> [...]
>> 2012-03-11  Andreas Tobler<andreast@fgznet.ch>
>>
>> 	* amd64bsd-nat.c: Include amd64bsd-nat.h
>
> Looks good to me. Please go ahead and commit.
>
> Thanks for the fix,

Done. Thank you for the review!

Andreas


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] fix amd64bsd-nat.c compilation
  2012-03-12  5:02 ` Joel Brobecker
  2012-03-12  5:28   ` Andreas Tobler
@ 2012-03-12  7:56   ` Mark Kettenis
  2012-03-12 15:23     ` Joel Brobecker
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Kettenis @ 2012-03-12  7:56 UTC (permalink / raw)
  To: brobecker; +Cc: andreast-list, gdb-patches

> Date: Sun, 11 Mar 2012 22:02:32 -0700
> From: Joel Brobecker <brobecker@adacore.com>
> 
> > Ok to commit?
> [...]
> > 2012-03-11  Andreas Tobler  <andreast@fgznet.ch>
> > 
> > 	* amd64bsd-nat.c: Include amd64bsd-nat.h
> 
> Looks good to me. Please go ahead and commit.

But when you do, please include amd64bsd-nat.h after amd64-nat.h
instead of before.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [patch] fix amd64bsd-nat.c compilation
  2012-03-12  7:56   ` Mark Kettenis
@ 2012-03-12 15:23     ` Joel Brobecker
  0 siblings, 0 replies; 5+ messages in thread
From: Joel Brobecker @ 2012-03-12 15:23 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: andreast-list, gdb-patches

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

> > > 2012-03-11  Andreas Tobler  <andreast@fgznet.ch>
> > > 
> > > 	* amd64bsd-nat.c: Include amd64bsd-nat.h
> > 
> > Looks good to me. Please go ahead and commit.
> 
> But when you do, please include amd64bsd-nat.h after amd64-nat.h
> instead of before.

Sorry, Mark. Here is the fix I just applied. I couldn't verify
that it builds, but it should be safe.

-- 
Joel

[-- Attachment #2: 0001-amd64bsd-nat.c-Move-amd64bsd-nat.h-include.patch --]
[-- Type: text/x-diff, Size: 1187 bytes --]

From d70ca0de856042535c1f623c886b1a10d130aa3e Mon Sep 17 00:00:00 2001
From: Joel Brobecker <brobecker@adacore.com>
Date: Mon, 12 Mar 2012 08:19:06 -0700
Subject: [PATCH] amd64bsd-nat.c: Move "amd64bsd-nat.h" include...

... after include of "amd64-nat.h".

gdb/ChangeLog:

        * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
        include of "amd64-nat.h".
---
 gdb/ChangeLog      |    5 +++++
 gdb/amd64bsd-nat.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e4d1453..98d380e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-12  Joel Brobecker  <brobecker@adacore.com>
+
+	* amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
+	include of "amd64-nat.h".
+
 2012-03-12  Tom Tromey  <tromey@redhat.com>
 
 	* buildsym.c (record_pending_block): Now static.
diff --git a/gdb/amd64bsd-nat.c b/gdb/amd64bsd-nat.c
index 5684a01..83e7ec2 100644
--- a/gdb/amd64bsd-nat.c
+++ b/gdb/amd64bsd-nat.c
@@ -31,8 +31,8 @@
 #include <machine/reg.h>
 
 #include "amd64-tdep.h"
-#include "amd64bsd-nat.h"
 #include "amd64-nat.h"
+#include "amd64bsd-nat.h"
 #include "inf-ptrace.h"
 \f
 
-- 
1.7.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-12 15:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-11 15:14 [patch] fix amd64bsd-nat.c compilation Andreas Tobler
2012-03-12  5:02 ` Joel Brobecker
2012-03-12  5:28   ` Andreas Tobler
2012-03-12  7:56   ` Mark Kettenis
2012-03-12 15:23     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox