From d3e1fc54d4d03509b5c552d21a06a829406729a2 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 13 Nov 2009 22:18:37 +0000 Subject: [PATCH] 2009-11-13 Maciej W. Rozycki * gdb.base/find.c (int8_t, int16_t, int32_t, int64_t): Undefine macros. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/find.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5f97eb8fa6e..dedfe752e94 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-11-13 Maciej W. Rozycki + + * gdb.base/find.c (int8_t, int16_t, int32_t, int64_t): Undefine + macros. + 2009-11-13 Daniel Jacobowitz * gdb.cp/formatted-ref.exp (test_p_x_ref_addr): Allow the reference diff --git a/gdb/testsuite/gdb.base/find.c b/gdb/testsuite/gdb.base/find.c index b54ae0ac88d..77acec939b2 100644 --- a/gdb/testsuite/gdb.base/find.c +++ b/gdb/testsuite/gdb.base/find.c @@ -22,6 +22,15 @@ #include #include +/* According to C99 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 */ -- 2.30.2