This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 3/6] use gdb_string.h in m32c-tdep.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Tue, 5 Nov 2013 11:23:28 -0700
- Subject: [PATCH v2 3/6] use gdb_string.h in m32c-tdep.c
- Authentication-results: sourceware.org; auth=none
- References: <1383675811-3274-1-git-send-email-tromey at redhat dot com>
m32c-tdep.c is the last user of HAVE_STRING_H in gdb proper. It
really ought to be using gdb_string.h instead, as the rest of gdb
does.
2013-11-05 Tom Tromey <tromey@redhat.com>
* m32c-tdep.c: Use gdb_string.h.
---
gdb/ChangeLog | 4 ++++
gdb/m32c-tdep.c | 5 +----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c
index a147c94..1b0eba5 100644
--- a/gdb/m32c-tdep.c
+++ b/gdb/m32c-tdep.c
@@ -21,10 +21,7 @@
#include <stdarg.h>
-#if defined (HAVE_STRING_H)
-#include <string.h>
-#endif
-
+#include "gdb_string.h"
#include "gdb_assert.h"
#include "elf-bfd.h"
#include "elf/m32c.h"
--
1.8.1.4