summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/target/Makefile
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-03 01:41:57 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-03 01:41:57 +0000
commitd61816b5b8c5e0f5d5c9e6c5e6811bee59c98140 (patch)
treef51b3a5b57c08b2c2c7957f9803f66402c6b2d95 /lldb/test/python_api/target/Makefile
parentec845689049c89ffb7d021cc245774f0f21e6796 (diff)
downloadbcm5719-llvm-d61816b5b8c5e0f5d5c9e6c5e6811bee59c98140.tar.gz
bcm5719-llvm-d61816b5b8c5e0f5d5c9e6c5e6811bee59c98140.zip
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 llvm-svn: 126916
Diffstat (limited to 'lldb/test/python_api/target/Makefile')
-rw-r--r--lldb/test/python_api/target/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/python_api/target/Makefile b/lldb/test/python_api/target/Makefile
new file mode 100644
index 00000000000..0d70f259501
--- /dev/null
+++ b/lldb/test/python_api/target/Makefile
@@ -0,0 +1,5 @@
+LEVEL = ../../make
+
+C_SOURCES := main.c
+
+include $(LEVEL)/Makefile.rules
OpenPOWER on IntegriCloud