diff options
author | Pedro Alves <palves@redhat.com> | 2017-06-22 10:23:30 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-06-22 10:59:42 +0100 |
commit | d269dfc64fb5307dbbaecbc5d55861a705b729ab (patch) | |
tree | f1a6ff725f1975447fa4605d2575002ea145c689 /gdb/ia64-libunwind-tdep.c | |
parent | b45a120833d862aeeba6803b2cc131724ef89dda (diff) | |
download | gdb-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/ia64-libunwind-tdep.c')
-rw-r--r-- | gdb/ia64-libunwind-tdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c index 4b716c4..025c870 100644 --- a/gdb/ia64-libunwind-tdep.c +++ b/gdb/ia64-libunwind-tdep.c @@ -36,6 +36,7 @@ #include "ia64-libunwind-tdep.h" #include "complaints.h" +#include "common/preprocessor.h" /* IA-64 is the only target that currently uses ia64-libunwind-tdep. Note how UNW_TARGET, UNW_OBJ, etc. are compile time constants below. @@ -99,8 +100,6 @@ struct libunwind_frame_cache /* We need to qualify the function names with a platform-specific prefix to match the names used by the libunwind library. The UNW_OBJ macro is provided by the libunwind.h header file. */ -#define STRINGIFY2(name) #name -#define STRINGIFY(name) STRINGIFY2(name) #ifndef LIBUNWIND_SO /* Use the stable ABI major version number. `libunwind-ia64.so' is a link time |