summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ExpressionSourceCode.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Made macros from modules be injected before ourSean Callanan2015-04-301-34/+64
| | | | | | | | | | | global convenience expression prefix. Also ensured that if macros are defined by the modules we don't try to redefine them. Finally cleaned up a bit of code while I was in there. <rdar://problem/20756642> llvm-svn: 236266
* Update ExpressionSourceCode::GetText() to match theJason Molenda2015-01-221-1/+1
| | | | | | | | name of the iOS simulator platform which was changed in r181631. <rdar://problem/19200084> llvm-svn: 226789
* Expression evaluation for functions with unknown signatures on works byKate Stone2015-01-211-0/+4
| | | | | | | | | | | | | | | inferring the function signature. This works well where the ABI doesn't distinguish between variadic and fixed argument lists, but on arm64 the calling conventions differ. The default assumption works for fixed argument lists, but variadic functions require explicit prototypes to be called. By far the most common case where this is an issue is when attempting to use printf(). This change augments the default expression prefix to include a working variadic prototype for the function. <rdar://problem/19024779> llvm-svn: 226744
* Attempt to fix the expression parser after r214119Reid Kleckner2014-07-291-10/+10
| | | | | | | __INT?_TYPE__ is now explicitly, so adding an explicit 'signed' specifier causes errors. llvm-svn: 214233
* Update lldb to track recent Triple arm64 enum removal and collapse into aarch64.Todd Fiala2014-07-231-1/+1
| | | | | | | | | | | See the following llvm change for details: r213743 | tnorthover | 2014-07-23 05:32:47 -0700 (Wed, 23 Jul 2014) | 9 lines AArch64: remove arm64 triple enumerator. This change fixes build breaks on Linux and MacOSX lldb. llvm-svn: 213755
* lldb arm64 import.Jason Molenda2014-03-291-2/+33
| | | | | | | | | | | | | | | | These changes were written by Greg Clayton, Jim Ingham, Jason Molenda. It builds cleanly against TOT llvm with xcodebuild. I updated the cmake files by visual inspection but did not try a build. I haven't built these sources on any non-Mac platforms - I don't think this patch adds any code that requires darwin, but please let me know if I missed something. In debugserver, MachProcess.cpp and MachTask.cpp were renamed to MachProcess.mm and MachTask.mm as they picked up some new Objective-C code needed to launch processes when running on iOS. llvm-svn: 205113
* Import the builtin type prefix before we import the user expression prefix ↵Greg Clayton2013-07-031-4/+4
| | | | | | so that the user expression prefix can use the uint, int, size_t, and other types without having to define them. llvm-svn: 185488
* Centralized the expression prefixes that are used for both expressions and ↵Greg Clayton2013-02-131-29/+31
| | | | | | utility functions. llvm-svn: 175108
* Made NULL, nil, and Nil use the appropriateSean Callanan2013-02-131-3/+3
| | | | | | | | builtins. <rdar://problem/13204027> llvm-svn: 175091
* Correct the definition of ObjC's BOOL in our pre-canned set of defines. ↵Jim Ingham2013-02-011-1/+1
| | | | | | | | | | It's supposed to be "signed char" not "int". <rdar://problem/13131126> llvm-svn: 174209
* <rdar://problem/13107904>Greg Clayton2013-01-291-1/+0
| | | | | | wchar_t causes problem with certain compilers. Removing it for now. llvm-svn: 173823
* Fixed a "wchar_t" typo.Greg Clayton2013-01-291-2/+2
| | | | llvm-svn: 173731
* Always define types from stdint.h so they are always available for use in ↵Greg Clayton2013-01-281-12/+26
| | | | | | | | | | | | | | | | | | | | 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
* Fixed the #defines for YES and NO, and centralizedSean Callanan2012-09-131-33/+35
| | | | | | | | | them in one place rather than having them replicated across all the potential function wrappers. <rdar://problem/12293880> llvm-svn: 163857
* Made nil resolve as (id)0 and not be looked upSean Callanan2012-05-311-0/+8
| | | | | | | (which regularly conflicts with existing symbols in Objective-C). llvm-svn: 157758
* Added a #define of NULL to 0 to make NULL usableSean Callanan2012-05-091-1/+9
| | | | | | in expressions. llvm-svn: 156514
* Pulled in a new version of LLVM/Clang to solve a varietySean Callanan2011-11-151-16/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of problems with Objective-C object completion. To go along with the LLVM/Clang-side fixes, we have a variety of Objective-C improvements. Fixes include: - It is now possible to run expressions when stopped in an Objective-C class method and have "self" act just like "self" would act in the class method itself (i.e., [self classMethod] works without casting the return type if debug info is present). To accomplish this, the expression masquerades as a class method added by a category. - Objective-C objects can now provide methods and properties and methods to Clang on demand (i.e., the ASTImporter sets hasExternalVisibleDecls on Objective-C interface objects). - Objective-C built-in types, which had long been a bone of contention (should we be using "id"? "id*"?), are now fetched correctly using accessor functions on ClangASTContext. We inhibit searches for them in the debug information. There are also a variety of logging fixes, and I made two changes to the test suite: - Enabled a test case for Objective-C properties in the current translation unit. - Added a test case for calling Objective-C class methods when stopped in a class method. llvm-svn: 144607
* Factored out handling of the source code for anSean Callanan2011-09-261-0/+88
expression into a separate class. This class encapsulates wrapping the function as needed. I am also moving from using booleans to indicate what the expression's language should be to using lldb::LanguageType instead. llvm-svn: 140545
OpenPOWER on IntegriCloud