summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/function_symbol/TestDisasmAPI.py
Commit message (Collapse)AuthorAgeFilesLines
* The extra burden for the Python API test case to assign its process object ↵Johnny Chen2011-06-151-9/+7
| | | | | | | | | to self.process in order to have its process cleaned up (terminated) upon tearDown is gone for good. Let's simplify a bunch of Python API test cases. llvm-svn: 133097
* Comment out the debug stmts.Johnny Chen2011-06-091-3/+2
| | | | llvm-svn: 132808
* Add rich comparison methods for the SBAddress object.Johnny Chen2011-06-091-1/+6
| | | | | | | | If two SBAddress's have the same module and file address, they are considered equal. Add a test snippet 'sa1 == sa2' to exercise the rich comparison methods for SBAddress. llvm-svn: 132807
* Now that we have added a post-processing step for adding truth value testing toJohnny Chen2011-05-241-6/+6
| | | | | | | those lldb objects which implement the IsValid() method, let's change the rest of the test suite to use the more compact truth value testing pattern (the Python way). llvm-svn: 131970
* Convert the rest of the test suite to use the lldbutil.get_description() ↵Johnny Chen2011-04-231-7/+5
| | | | | | utility function. llvm-svn: 130041
* Converted to use SBProcess.LaunchSimple() API.Johnny Chen2011-04-191-7/+11
| | | | | | And use self.TraceOn() in order to print more debug output. llvm-svn: 129791
* Add TestDisasmAPI.py which exercises the newly added ↵Johnny Chen2011-03-031-0/+121
SBFunction/SBSymbol.GetStartAddress(), among other things: // When stopped on breakppint 1, we can get the line entry using SBFrame API // SBFrame.GetLineEntry(). We'll get the start address for the the line entry // with the SBAddress type, resolve the symbol context using the SBTarget API // SBTarget.ResolveSymbolContextForAddress() in order to get the SBSymbol. // // We then stop at breakpoint 2, get the SBFrame, and the the SBFunction object. // // The address from calling GetStartAddress() on the symbol and the function // should point to the same address, and we also verify that. And add one utility function disassemble(target, function_or_symbol) to lldbutil.py: """Disassemble the function or symbol given a target. It returns the disassembly content in a string object. """ TestDisasm.py uses the disassemble() function to do disassembly on the SBSymbol, and then the SBFunction object. llvm-svn: 126955
OpenPOWER on IntegriCloud