aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-06-22 10:23:30 +0100
committerPedro Alves <palves@redhat.com>2017-06-22 10:59:42 +0100
commitd269dfc64fb5307dbbaecbc5d55861a705b729ab (patch)
treef1a6ff725f1975447fa4605d2575002ea145c689 /gdb/compile
parentb45a120833d862aeeba6803b2cc131724ef89dda (diff)
downloadgdb-d269dfc64fb5307dbbaecbc5d55861a705b729ab.zip
gdb-d269dfc64fb5307dbbaecbc5d55861a705b729ab.tar.gz
gdb-d269dfc64fb5307dbbaecbc5d55861a705b729ab.tar.bz2
Add STRINGIFY to gdb/common/preprocessor.h
We have several copies of this common idiom under gdb/ currently. This commit moves them / factors them out to gdb/common/preprocessor.h. gdb/ChangeLog: 2017-06-22 Pedro Alves <palves@redhat.com> * common/agent.h: Include "common/preprocessor.h". (STRINGIZE_1, STRINGIZE): Delete. (IPA_SYM): Use STRINGIFY instead. * common/preprocessor.h (STRINGIFY_1, STRINGIFY): New. * compile/compile-c-support.c: Include "common/preprocessor.h". (STR, STRINGIFY): Delete. * ia64-libunwind-tdep.c: Include "common/preprocessor.h". (STRINGIFY2, STRINGIFY): Delete.
Diffstat (limited to 'gdb/compile')
-rw-r--r--gdb/compile/compile-c-support.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/compile/compile-c-support.c b/gdb/compile/compile-c-support.c
index 2614570..3bec28c 100644
--- a/gdb/compile/compile-c-support.c
+++ b/gdb/compile/compile-c-support.c
@@ -26,6 +26,7 @@
#include "macroscope.h"
#include "regcache.h"
#include "common/function-view.h"
+#include "common/preprocessor.h"
/* See compile-internal.h. */
@@ -65,9 +66,6 @@ c_get_range_decl_name (const struct dynamic_prop *prop)
-#define STR(x) #x
-#define STRINGIFY(x) STR(x)
-
/* Helper function for c_get_compile_context. Open the GCC front-end
shared library and return the symbol specified by the current
GCC_C_FE_CONTEXT. */