• Home
  • History
  • Annotate
  • only in /external/lldb/test/python_api/function_symbol/
History log of /external/lldb/test/python_api/function_symbol/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
166b89f089d6bec5bb9dd40470a4dc951ffc9daa 19-Mar-2013 Greg Clayton <gclayton@apple.com> Fixed incorrect python that was trying to validate that we got a valid lldb.SBThread object by checking to see if it is equal to "None".

This test is incorrect as functions that return lldb.SBThread objects never return None, they just return lldb.SBThread objects that contain invalid opaque classes.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@177416 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
estSymbolAPI.py
21b1984e161b0cadee331d32bfd721eccfdf4b1f 06-Apr-2012 Johnny Chen <johnny.chen@apple.com> Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases.
Plus some minor cleanup of test method names.
Third and final batch is coming.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@154197 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
estSymbolAPI.py
3e8c25f62f92145b6fb699b379cbfe72b1245d4a 24-Sep-2011 Greg Clayton <gclayton@apple.com> Added to the public API to allow symbolication:
- New SBSection objects that are object file sections which can be accessed
through the SBModule classes. You can get the number of sections, get a
section at index, and find a section by name.
- SBSections can contain subsections (first find "__TEXT" on darwin, then
us the resulting SBSection to find "__text" sub section).
- Set load addresses for a SBSection in the SBTarget interface
- Set the load addresses of all SBSection in a SBModule in the SBTarget interface
- Add a new module the an existing target in the SBTarget interface
- Get a SBSection from a SBAddress object

This should get us a lot closer to being able to symbolicate using LLDB through
the public API.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140437 91177308-0d34-0410-b5e6-96231b3b80d8
estSymbolAPI.py
3d8ae4681b81b42a404ad77a231c6f743040e644 16-Jun-2011 Johnny Chen <johnny.chen@apple.com> The extra burden for the Python API test case to assign its process object 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@133097 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
estSymbolAPI.py
ac27455ab52b363304d7ac430bcd4630fe991eb8 10-Jun-2011 Johnny Chen <johnny.chen@apple.com> Comment out the debug stmts.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@132808 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
694cfd036c78cc28ece8b4eebf2087f0572158cd 10-Jun-2011 Johnny Chen <johnny.chen@apple.com> Add rich comparison methods for the SBAddress object.
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@132807 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
805fec7ec90a09b94bc4515fcac9b2b03bae153b 24-May-2011 Johnny Chen <johnny.chen@apple.com> Now that we have added a post-processing step for adding truth value testing to
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).


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131970 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
estSymbolAPI.py
eda90656e43ad30454c540aa74d9d6b84de89841 23-Apr-2011 Johnny Chen <johnny.chen@apple.com> Convert the rest of the test suite to use the lldbutil.get_description() utility function.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@130041 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
257c608e31752b65f54ced4d5646954c29382149 19-Apr-2011 Johnny Chen <johnny.chen@apple.com> Converted to use SBProcess.LaunchSimple() API.
And use self.TraceOn() in order to print more debug output.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129791 91177308-0d34-0410-b5e6-96231b3b80d8
estDisasmAPI.py
estSymbolAPI.py
919ee60577297be31eb69f14a5901e7c6170a9ca 01-Apr-2011 Johnny Chen <johnny.chen@apple.com> Add TestSymbolAPI.py to test the newly added SBSymbol and SBAddress APIs:

lldb::SymbolType SBSymbol::GetType();

lldb::SectionType SBAddress::GetSectionType ();
lldb::SBModule SBAddress::GetModule ();

Also add an lldb::SBModule::GetUUIDString() API which is easier for Python
to work with in the test script.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@128695 91177308-0d34-0410-b5e6-96231b3b80d8
estSymbolAPI.py
51ed1b614f2c2b6970f50296d7d41c9de2c30ff4 03-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add TestDisasmAPI.py which exercises the newly added 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126955 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
estDisasmAPI.py
ain.c