diff options
author | Greg Clayton <gclayton@apple.com> | 2013-01-28 22:31:43 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-01-28 22:31:43 +0000 |
commit | 5b2a789c6f3c0cb4e718ce8e8c259c9626d06180 (patch) | |
tree | bcd74694be2e915644c552ad08d1d2d76bbcca1d /lldb/source/Expression/ExpressionSourceCode.cpp | |
parent | a15b16f215b6a8c3b53429bae88b841d22c02300 (diff) | |
download | bcm5719-llvm-5b2a789c6f3c0cb4e718ce8e8c259c9626d06180.tar.gz bcm5719-llvm-5b2a789c6f3c0cb4e718ce8e8c259c9626d06180.zip |
Always define types from stdint.h so they are always available for use in expressions no matter what debug info you have. Types added are:
int8_t
uint8_t
int16_t
uint16_t
int32_t
uint32_t
int64_t
uint64_t
intptr_t
uintptr_t
size_t
ptrdiff_t
whar_t
llvm-svn: 173724
Diffstat (limited to 'lldb/source/Expression/ExpressionSourceCode.cpp')
-rw-r--r-- | lldb/source/Expression/ExpressionSourceCode.cpp | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/lldb/source/Expression/ExpressionSourceCode.cpp b/lldb/source/Expression/ExpressionSourceCode.cpp index e33fd2db69e..151076f09ec 100644 --- a/lldb/source/Expression/ExpressionSourceCode.cpp +++ b/lldb/source/Expression/ExpressionSourceCode.cpp @@ -13,18 +13,32 @@ using namespace lldb_private; -static const char *global_defines = "#undef NULL \n" - "#undef Nil \n" - "#undef nil \n" - "#undef YES \n" - "#undef NO \n" - "#define NULL ((int)0) \n" - "#define Nil ((Class)0) \n" - "#define nil ((id)0) \n" - "#define YES ((BOOL)1) \n" - "#define NO ((BOOL)0) \n" - "typedef int BOOL; \n" - "typedef unsigned short unichar; \n"; +static const char *global_defines = +"#undef NULL \n" +"#undef Nil \n" +"#undef nil \n" +"#undef YES \n" +"#undef NO \n" +"#define NULL ((int)0) \n" +"#define Nil ((Class)0) \n" +"#define nil ((id)0) \n" +"#define YES ((BOOL)1) \n" +"#define NO ((BOOL)0) \n" +"typedef int BOOL; \n" +"typedef signed __INT8_TYPE__ int8_t;\n" +"typedef unsigned __INT8_TYPE__ uint8_t;\n" +"typedef signed __INT16_TYPE__ int16_t;\n" +"typedef unsigned __INT16_TYPE__ uint16_t;\n" +"typedef signed __INT32_TYPE__ int32_t;\n" +"typedef unsigned __INT32_TYPE__ uint32_t;\n" +"typedef signed __INT64_TYPE__ int64_t;\n" +"typedef unsigned __INT64_TYPE__ uint64_t;\n" +"typedef signed __INTPTR_TYPE__ intptr_t;\n" +"typedef unsigned __INTPTR_TYPE__ uintptr_t;\n" +"typedef __SIZE_TYPE__ size_t; \n" +"typedef __PTRDIFF_TYPE__ ptrdiff_t;\n" +"typedef __WCHAR_TYPE__ whar_t; \n" +"typedef unsigned short unichar; \n"; bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrapping_language, bool const_object, bool static_method) const |