77356a0e9bec77c6ed7eb23151bcd8de27fef902 |
|
03-Mar-2011 |
Johnny Chen <johnny.chen@apple.com> |
Add TestTargetAPI.py: // When stopped on breakppint 1, and then 2, we can get the line entries using // SBFrame API SBFrame.GetLineEntry(). We'll get the start addresses for the // two line entries; with the start address (of SBAddress type), we can then // resolve the symbol context using the SBTarget API // SBTarget.ResolveSymbolContextForAddress(). // // The two symbol context should point to the same symbol, i.e., 'a' function. Add two utility functions to lldbutil.py: o get_stopped_threads(process, reason): return the list of threads with the specified stop reason or an empty list if not found o get_stopped_thread(process, reason): return the first thread with the given stop reason or None if not found git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126916 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/target/Makefile
|