2014-10-02 04:43:45 +08:00
|
|
|
//===-- SWIG Interface for SBExecutionContext ---------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2014-10-02 04:43:45 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
namespace lldb {
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
class SBExecutionContext
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SBExecutionContext();
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBExecutionContext (const lldb::SBExecutionContext &rhs);
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBExecutionContext (const lldb::SBTarget &target);
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBExecutionContext (const lldb::SBProcess &process);
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBExecutionContext (lldb::SBThread thread); // can't be a const& because SBThread::get() isn't itself a const function
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBExecutionContext (const lldb::SBFrame &frame);
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
~SBExecutionContext();
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBTarget
|
|
|
|
GetTarget () const;
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBProcess
|
|
|
|
GetProcess () const;
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBThread
|
|
|
|
GetThread () const;
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
SBFrame
|
|
|
|
GetFrame () const;
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2015-04-22 06:09:12 +08:00
|
|
|
%pythoncode %{
|
|
|
|
__swig_getmethods__["target"] = GetTarget
|
|
|
|
if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''')
|
|
|
|
|
|
|
|
__swig_getmethods__["process"] = GetProcess
|
|
|
|
if _newclass: process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''')
|
|
|
|
|
|
|
|
__swig_getmethods__["thread"] = GetThread
|
|
|
|
if _newclass: thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''')
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2015-04-22 06:09:12 +08:00
|
|
|
__swig_getmethods__["frame"] = GetFrame
|
|
|
|
if _newclass: frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''')
|
|
|
|
%}
|
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
};
|
2019-04-19 00:23:33 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
} // namespace lldb
|