From a5ea1e2b6c60905ed39401876b8bd28a115e39ea Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Sat, 6 Sep 2014 01:21:19 +0000 Subject: Expose ThreadCollection in SB API Reviewed at http://reviews.llvm.org/D5218 and http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20140901/012828.html llvm-svn: 217296 --- lldb/scripts/Python/interface/SBThreadCollection.i | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lldb/scripts/Python/interface/SBThreadCollection.i (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBThreadCollection.i b/lldb/scripts/Python/interface/SBThreadCollection.i new file mode 100644 index 00000000000..824f6923acc --- /dev/null +++ b/lldb/scripts/Python/interface/SBThreadCollection.i @@ -0,0 +1,38 @@ +//===-- SWIG Interface for SBThreadCollection -------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include + +namespace lldb { + +%feature("docstring", +"Represents a collection of SBThread objects." +) SBThreadCollection; +class SBThreadCollection +{ +public: + + SBThreadCollection (); + + SBThreadCollection (const SBThreadCollection &rhs); + + ~SBThreadCollection (); + + bool + IsValid () const; + + size_t + GetSize (); + + lldb::SBThread + GetThreadAtIndex (size_t idx); + +}; + +} // namespace lldb -- cgit v1.2.3