summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/find.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-11-13 22:18:37 +0000
committerDaniel Jacobowitz <drow@false.org>2009-11-13 22:18:37 +0000
commitd3e1fc54d4d03509b5c552d21a06a829406729a2 (patch)
treededa9ee6c167e9d0d61995f0108f4685d7e02c99 /gdb/testsuite/gdb.base/find.c
parent66076460436b4f9f7917fce7b073fcc79cb81ce9 (diff)
2009-11-13 Maciej W. Rozycki <macro@codesourcery.com>
* gdb.base/find.c (int8_t, int16_t, int32_t, int64_t): Undefine macros.
Diffstat (limited to 'gdb/testsuite/gdb.base/find.c')
-rw-r--r--gdb/testsuite/gdb.base/find.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/find.c b/gdb/testsuite/gdb.base/find.c
index b54ae0ac88..77acec939b 100644
--- a/gdb/testsuite/gdb.base/find.c
+++ b/gdb/testsuite/gdb.base/find.c
@@ -22,6 +22,15 @@
#include <stdlib.h>
#include <stdint.h>
+/* According to C99 <stdint.h> has to provide these identifiers as
+ types, but is also free to define macros shadowing the typedefs.
+ This is the case with some C library implementations. Undefine
+ them to make sure the types are used and included in debug output. */
+#undef int8_t
+#undef int16_t
+#undef int32_t
+#undef int64_t
+
#define CHUNK_SIZE 16000 /* same as findcmd.c's */
#define BUF_SIZE (2 * CHUNK_SIZE) /* at least two chunks */