[3/5,v7] Move print-utils.h to common-defs.h
Commit Message
This commit moves the inclusion of print-utils.h to common-defs.h
and removes all other inclusions.
gdb/
2014-08-13 Gary Benson <gbenson@redhat.com>
* common/common-defs.h: Include print-utils.h.
* utils.h: Do not include print-utils.h.
gdb/gdbserver/
2014-08-13 Gary Benson <gbenson@redhat.com>
* utils.h: Do not include print-utils.h.
---
gdb/ChangeLog | 5 +++++
gdb/common/common-defs.h | 1 +
gdb/gdbserver/ChangeLog | 4 ++++
gdb/gdbserver/utils.h | 2 --
gdb/utils.h | 1 -
5 files changed, 10 insertions(+), 3 deletions(-)
Comments
On Wed, Aug 13, 2014 at 2:56 AM, Gary Benson <gbenson@redhat.com> wrote:
> This commit moves the inclusion of print-utils.h to common-defs.h
> and removes all other inclusions.
>
> gdb/
> 2014-08-13 Gary Benson <gbenson@redhat.com>
>
> * common/common-defs.h: Include print-utils.h.
> * utils.h: Do not include print-utils.h.
>
> gdb/gdbserver/
> 2014-08-13 Gary Benson <gbenson@redhat.com>
>
> * utils.h: Do not include print-utils.h.
I'm kinda ambivalent on this one, but ok.
@@ -43,5 +43,6 @@
#include "gdb_assert.h"
#include "errors.h"
#include "common-types.h"
+#include "print-utils.h"
#endif /* COMMON_DEFS_H */
@@ -19,8 +19,6 @@
#ifndef UTILS_H
#define UTILS_H
-#include "print-utils.h"
-
void fatal (const char *string,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2);
char *paddress (CORE_ADDR addr);
char *pfildes (gdb_fildes_t fd);
@@ -23,7 +23,6 @@
#include "cleanups.h"
#include "exceptions.h"
-#include "print-utils.h"
extern void initialize_utils (void);