summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed the Symbol code to resolve the callable addressSean Callanan2014-05-231-23/+13
| | | | | | | | | | of the symbol itself rather than forcing clients to do it. This simplifies the logic for the expression parser a great deal. <rdar://problem/16935324> llvm-svn: 209494
* Update for llvm api change in r209266.Rafael Espindola2014-05-211-3/+6
| | | | llvm-svn: 209303
* Rename eExecution*** to eExpression*** to be consistent with the result type.Jim Ingham2014-05-052-31/+31
| | | | llvm-svn: 207945
* Make the Expression Execution result enum available to the SB API layer.Jim Ingham2014-05-052-36/+59
| | | | | | | | | Add a callback that will allow an expression to be cancelled between the expression evaluation stages (for the ClangUserExpressions.) <rdar://problem/16790467>, <rdar://problem/16573440> llvm-svn: 207944
* Track recent changes in clang internalsAlp Toker2014-05-031-3/+2
| | | | llvm-svn: 207913
* Fixed a flipped conditional when writing back theSean Callanan2014-04-241-1/+1
| | | | | | | | | | | | values of variables in the Materializer. The Materializer should not write the variable back if its new value is the *same* as the old value, not if the new value is *different*. <rdar://problem/16712205> llvm-svn: 207148
* Give the clang functions names. This is only for logging.Jim Ingham2014-04-221-7/+11
| | | | llvm-svn: 206836
* Fixed a problem where IRForTarget wasn't ignoringSean Callanan2014-04-091-0/+1
| | | | | | | | dbg_value intrinsics appropriately. <rdar://problem/16504649> llvm-svn: 205825
* sweep up -Wformat warnings from gccSaleem Abdulrasool2014-04-046-401/+401
| | | | | | | This is a purely mechanical change explicitly casting any parameters for printf style conversion. This cleans up the warnings emitted by gcc 4.8 on Linux. llvm-svn: 205607
* sanitise sign comparisonsSaleem Abdulrasool2014-04-021-1/+1
| | | | | | | | This is a mechanical change addressing the various sign comparison warnings that are identified by both clang and gcc. This helps cleanup some of the warning spew that occurs during builds. llvm-svn: 205390
* lldb arm64 import.Jason Molenda2014-03-293-6/+41
| | | | | | | | | | | | | | | | 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
* Made the Materializer not write back variablesSean Callanan2014-03-251-5/+23
| | | | | | | | | | | if they didn't change, just like it does for registers. This makes life easier for kernel debugging and any other situation where values are read-only. <rdar://problem/16367795> llvm-svn: 204764
* Added a missing "break" to avoid falling throughSean Callanan2014-03-251-0/+1
| | | | | | when other cases get added. llvm-svn: 204751
* Fixed the IRInterpreter to ignore call instructionsSean Callanan2014-03-251-0/+68
| | | | | | that call debug-information intrinsics. llvm-svn: 204750
* JITed functions can now have debug info and be debugged with debug and ↵Greg Clayton2014-03-247-97/+498
| | | | | | | | | | | | | | | | | | | source info: (lldb) b puts (lldb) expr -g -i0 -- (int)puts("hello") First we will stop at the entry point of the expression before it runs, then we can step over a few times and hit the breakpoint in "puts", then we can continue and finishing stepping and fininsh the expression. Main features: - New ObjectFileJIT class that can be easily created for JIT functions - debug info can now be enabled when parsing expressions - source for any function that is run throught the JIT is now saved in LLDB process specific temp directory and cleaned up on exit - "expr -g --" allows you to single step through your expression function with source code <rdar://problem/16382881> llvm-svn: 204682
* Cleanup some dead assignements reported by scan-buildArnaud A. de Grandmaison2014-03-221-1/+0
| | | | | | No functionnal change. llvm-svn: 204545
* cleanup unreferenced functionsSaleem Abdulrasool2014-03-204-153/+51
| | | | | | | | | | | | | This is a mechanical cleanup of unused functions. In the case where the functions are referenced (in comment form), I've simply commented out the functions. A second pass to clean that up is warranted. The functions which are otherwise unused have been removed. Some of these were introduced in the initial commit and not in use prior to that point! NFC llvm-svn: 204310
* Fix expression parsing (on FreeBSD, at least)Ed Maste2014-03-181-0/+1
| | | | | | | This reverts part of r204112 (Expression: cleanup unused include). It looks like MCJIT.h is required to force MCJIT to be linked. llvm-svn: 204170
* Expression: cleanup unused includeSaleem Abdulrasool2014-03-181-5/+0
| | | | | | | | The standard JIT has been discarded in favour of MCJIT. USE_STANDARD_JIT is no longer defined. Furthermore, the execution engine is now built in IRExecutionUnit. Simply remove inclusion of both JIT headers. llvm-svn: 204112
* Don’t put Radar numbers in code.Jim Ingham2014-03-121-1/+1
| | | | llvm-svn: 203737
* Fixed a problem where the expression parser wasSean Callanan2014-03-111-0/+16
| | | | | | | | | | | erroneously completing Objective-C classes sourced from the Objective-C runtime without checking if there was an authoritative version in the debug information. <rdar://problem/16065049> llvm-svn: 203600
* Followed up on Ed Maste's patch with a few moreSean Callanan2014-03-111-51/+23
| | | | | | | | User fixes. Also changed our iterations across global variables and instruction operands to reflect the new C++11 approach. llvm-svn: 203599
* Fix #if 0'd code after range-based for loop changeEd Maste2014-03-101-2/+2
| | | | llvm-svn: 203487
* Update LLDB for LLVM iterator change in r203364Ed Maste2014-03-101-24/+14
| | | | | | | | | | | What was use_iterator is now user_iterator. Also switch to range-based APIs, as in Clang r203365. (This part of the change was missed in r203463) Differential Revision: http://llvm-reviews.chandlerc.com/D3030 llvm-svn: 203475
* Update LLDB for LLVM iterator change in r203364Ed Maste2014-03-101-13/+5
| | | | | | | What was use_iterator is now user_iterator. Also switch to range-based APIs, as in Clang r203365. llvm-svn: 203463
* Update for clang r203213Ben Langmuir2014-03-071-1/+1
| | | | llvm-svn: 203217
* Replace uses of OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles2014-03-071-2/+2
| | | | llvm-svn: 203200
* Hardened against reads in the IRMemoryMap thatSean Callanan2014-03-041-0/+14
| | | | | | | | exceed the bounds of the backing memory. <rdar://problem/16088322> llvm-svn: 202899
* Only require thread scope when we're about to run the function on a thread.Jim Ingham2014-03-031-6/+6
| | | | llvm-svn: 202740
* "size_t" isn't always 64 bit, it is 32 bit on 32 bit systems. All printf ↵Greg Clayton2014-03-033-6/+6
| | | | | | | | style statements that were assuming size_t were 64 bit were changed, and they were also changed to display them as unsigned values as "size_t" isn't signed. If you print anything with 'size_t', please cast it to "uint64_t" in the printf and use PRIu64 or PRIx64. llvm-svn: 202738
* Fix Windows build using portable types for formatting the log outputsDeepak Panickal2014-03-033-6/+6
| | | | llvm-svn: 202723
* Don't require a valid thread if expr can be evaluated staticallyEd Maste2014-03-031-1/+1
| | | | | | | This seems reasonable and the BackticksWithNoTargetTestCase suggests it should be this way. llvm-svn: 202722
* Make sure the exe_ctx passed to ClangUserExpression::Execute has a valid thread.Jim Ingham2014-03-011-0/+6
| | | | | | <rdar://problem/15949113> llvm-svn: 202561
* Better error reporting when a variable can't beSean Callanan2014-02-282-4/+26
| | | | | | | | | | | read during materialization. First of all, report if we can't read the data for some reason. Second, consult the ValueObject's error and report that if there's some problem. <rdar://problem/16074201> llvm-svn: 202552
* update the declaration from llvm::OwningPtr to llvm::IntrusiveRefCntPtr to ↵Sylvestre Ledru2014-02-271-1/+1
| | | | | | match the clang update (r202346) on ASTContext llvm-svn: 202376
* Revert "Track Clang virtualFileSystem change (r201618)"Juergen Ributzka2014-02-201-1/+0
| | | | | | This reverts commit r201671, because the clang changes have been reverted. llvm-svn: 201759
* Emit a warning diagnostic if a symbol was promotedSean Callanan2014-02-191-0/+4
| | | | | | | | | to a variable. This helps people figure out what happened if they tried to do something to the variable and it didn't work because we gave it the default type of void*. llvm-svn: 201737
* Track Clang virtualFileSystem change (r201618)Ed Maste2014-02-191-0/+1
| | | | | | | Clang now requires calling CompilerInstance::createVirtualFileSystem before CompilerInstance::createFileManager. llvm-svn: 201671
* Add support for DW_OP_piece and DW_OP_bit_piece.Greg Clayton2014-02-121-3/+84
| | | | llvm-svn: 201268
* Lock the JIT before using it.Sean Callanan2014-02-061-0/+4
| | | | | | <rdar://problem/15958296> llvm-svn: 200951
* Removed spurious lookup of the $__lldb_exprSean Callanan2014-02-061-0/+3
| | | | | | | | | selector when compiling an expression in an Objective-C context. <rdar://problem/15797390> llvm-svn: 200950
* Merging the iohandler branch back into main. Greg Clayton2014-01-271-1/+2
| | | | | | | | | | | | The many many benefits include: 1 - Input/Output/Error streams are now handled as real streams not a push style input 2 - auto completion in python embedded interpreter 3 - multi-line input for "script" and "expression" commands now allow you to edit previous/next lines using up and down arrow keys and this makes multi-line input actually a viable thing to use 4 - it is now possible to use curses to drive LLDB (please try the "gui" command) We will need to deal with and fix any buildbot failures and tests and arise now that input/output and error are correctly hooked up in all cases. llvm-svn: 200263
* Better logging for the IRExecutionUnit so thatSean Callanan2014-01-211-6/+20
| | | | | | we can see exactly what data was put where. llvm-svn: 199701
* Build fix following clang r199686Alp Toker2014-01-201-2/+2
| | | | llvm-svn: 199689
* Harden the Materializer logic against types thatSean Callanan2014-01-141-0/+6
| | | | | | don't know their bit alignment. llvm-svn: 199173
* Avoid LLDB crash upon DW_OP_deref* with empty stackEd Maste2014-01-131-0/+12
| | | | | | | | As done in other DW_OP_* cases, return an error if the stack is empty rather than eventually crashing elsewhere. Encountered on big-endian MIPS, where LLVM bugs currently result in invalid .debug_loc data. llvm-svn: 199110
* Fixed a bug where the expression parser doesn'tSean Callanan2014-01-071-1/+3
| | | | | | | | | materialize a variable in a register correctly if the variable is a pointer. This fixes a regression introduced by my commit of Oct. 22nd (r193191). llvm-svn: 198718
* Updated our IR processing to reflect best practicesSean Callanan2013-12-202-29/+32
| | | | | | for making pointer-valued constants. llvm-svn: 197829
* Fixed the AST importer to ensure that base classesSean Callanan2013-12-202-0/+6
| | | | | | | | | | | | | of Objective-C classes are completed, and that variables of Objective-C types have their types completed when the variables are reported. This fixes a long-standing issue where ivars did not show up correctly on 32-bit OS X. <rdar://problem/12184093> llvm-svn: 197775
* Adjust to the new way LLVM emits modules: it doesn'tSean Callanan2013-12-202-20/+9
| | | | | | | | specify a pointer size until code gen. So we just make all our pointer-sized integer literals 64-bit. That doesn't seem to hurt anything. llvm-svn: 197774
OpenPOWER on IntegriCloud