[3/3] Include common-exceptions.h in common-defs.h

Message ID 1409586154-16196-4-git-send-email-gbenson@redhat.com
State Committed
Headers

Commit Message

Gary Benson Sept. 1, 2014, 3:42 p.m. UTC
  This commit includes common-exceptions.h in common-defs.h and removes
all other inclusions.

gdb/ChangeLog:

	* common/common-defs.h: Include common-exceptions.h.
	* exceptions.h: Do not include common-exceptions.h.

gdb/gdbserver/ChangeLog:

	* server.h: Do not include common-exceptions.h.
---
 gdb/ChangeLog            |    5 +++++
 gdb/common/common-defs.h |    1 +
 gdb/exceptions.h         |    1 -
 gdb/gdbserver/ChangeLog  |    4 ++++
 gdb/gdbserver/server.h   |    2 --
 5 files changed, 10 insertions(+), 3 deletions(-)
  

Comments

Pedro Alves Oct. 7, 2014, 6:05 p.m. UTC | #1
On 09/01/2014 04:42 PM, Gary Benson wrote:
> This commit includes common-exceptions.h in common-defs.h and removes
> all other inclusions.
> 
> gdb/ChangeLog:
> 
> 	* common/common-defs.h: Include common-exceptions.h.
> 	* exceptions.h: Do not include common-exceptions.h.
> 
> gdb/gdbserver/ChangeLog:
> 
> 	* server.h: Do not include common-exceptions.h.

OK.

Thanks,
Pedro Alves
  

Patch

diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h
index ffcc4eb..29c8ab3 100644
--- a/gdb/common/common-defs.h
+++ b/gdb/common/common-defs.h
@@ -46,5 +46,6 @@ 
 #include "print-utils.h"
 #include "common-debug.h"
 #include "cleanups.h"
+#include "common-exceptions.h"
 
 #endif /* COMMON_DEFS_H */
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index 00d2b61..f4d62a6 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -20,7 +20,6 @@ 
 #ifndef EXCEPTIONS_H
 #define EXCEPTIONS_H
 
-#include "common-exceptions.h"
 #include "ui-out.h"
 
 /* A pre-defined non-exception.  */
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index b76bb1d..8751b8e 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -125,6 +125,4 @@  extern int handle_target_event (int err, gdb_client_data client_data);
    as large as the largest register set supported by gdbserver.  */
 #define PBUFSIZ 16384
 
-#include "common-exceptions.h"
-
 #endif /* SERVER_H */