This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] fix amd64bsd-nat.c compilation


> > > 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
>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"
 
 
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]