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
|
|
|
|
2021-01-16 02:49:51 +08:00
|
|
|
%feature("docstring",
|
|
|
|
"Describes the program context in which a command should be executed."
|
|
|
|
) SBExecutionContext;
|
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
|
|
|
|
2019-12-09 06:46:48 +08:00
|
|
|
#ifdef SWIGPYTHON
|
2019-07-03 02:04:55 +08:00
|
|
|
%pythoncode %{
|
2019-07-03 06:18:35 +08:00
|
|
|
target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''')
|
|
|
|
process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''')
|
|
|
|
thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''')
|
|
|
|
frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''')
|
2019-07-03 02:04:55 +08:00
|
|
|
%}
|
2019-12-09 06:46:48 +08:00
|
|
|
#endif
|
2019-07-03 02:04:55 +08:00
|
|
|
|
|
|
|
};
|
2019-07-03 01:25:20 +08:00
|
|
|
|
2014-10-02 04:43:45 +08:00
|
|
|
} // namespace lldb
|