9#ifndef LLDB_API_SBPROCESS_H
10#define LLDB_API_SBPROCESS_H
33 eBroadcastBitInterrupt = (1 << 1),
34 eBroadcastBitSTDOUT = (1 << 2),
35 eBroadcastBitSTDERR = (1 << 3),
36 eBroadcastBitProfileData = (1 << 4),
37 eBroadcastBitStructuredData = (1 << 5)};
47 static const char *GetBroadcasterClassName();
49 const char *GetPluginName();
52 const
char *GetShortPluginName();
56 explicit operator
bool() const;
64 size_t PutSTDIN(const
char *src,
size_t src_len);
66 size_t GetSTDOUT(
char *dst,
size_t dst_len) const;
68 size_t GetSTDERR(
char *dst,
size_t dst_len) const;
70 size_t GetAsyncProfileData(
char *dst,
size_t dst_len) const;
73 void ReportEventState(
const lldb::SBEvent &event, FILE *out)
const;
88 bool RemoteLaunch(
char const **argv,
char const **envp,
89 const char *stdin_path,
const char *stdout_path,
90 const char *stderr_path,
const char *working_directory,
91 uint32_t launch_flags,
bool stop_at_entry,
95 uint32_t GetNumThreads();
115 bool SetSelectedThreadByIndexID(uint32_t index_id);
118 uint32_t GetNumQueues();
128 const char *GetExitDescription();
155 uint32_t GetUniqueID();
157 uint32_t GetAddressByteSize()
const;
175 void SendAsyncInterrupt();
177 uint32_t GetStopID(
bool include_expression_stops =
false);
197 void ForceScriptedState(
StateType new_state);
201 size_t WriteMemory(
addr_t addr,
const void *buf,
size_t size,
207 uint64_t ReadUnsignedFromMemory(
addr_t addr, uint32_t byte_size,
215 uint32_t max_matches,
218 lldb::addr_t FindInMemory(
const void *buf, uint64_t size,
225 static bool GetRestartedFromEvent(
const lldb::SBEvent &event);
227 static size_t GetNumRestartedReasonsFromEvent(
const lldb::SBEvent &event);
230 GetRestartedReasonAtIndexFromEvent(
const lldb::SBEvent &event,
size_t idx);
234 static bool GetInterruptedFromEvent(
const lldb::SBEvent &event);
241 static bool EventIsStructuredDataEvent(
const lldb::SBEvent &event);
245 static const char *GetBroadcasterClass();
345 uint32_t GetNumExtendedBacktraceTypes();
358 const char *GetExtendedBacktraceTypeAtIndex(uint32_t idx);
372 lldb::SBError SaveCore(
const char *file_name,
const char *flavor,
561 lldb::addr_t AllocateMemory(
size_t size, uint32_t permissions,
600 friend class lldb_private::python::SWIGBridge;
static size_t ReadCStringFromMemory(ExecutionContextScope *exe_scope, const Address &address, Stream *strm)
static llvm::raw_ostream & error(Stream &strm)
FLAGS_ANONYMOUS_ENUM()
Broadcaster event bits definitions.
lldb::ProcessWP m_opaque_wp
LLDB_DEPRECATED_FIXME("Use GetPluginName()", "GetPluginName()") const char *GetShortPluginName()
A class that represents a running process on the host machine.
AddressMaskRange
Used in the SBProcess AddressMask/FixAddress methods.
StateType
Process and Thread States.
std::shared_ptr< lldb_private::Process > ProcessSP
InstrumentationRuntimeType
ByteOrder
Byte ordering definitions.
std::weak_ptr< lldb_private::Process > ProcessWP
AddressMaskType
Used in the SBProcess AddressMask/FixAddress methods.
std::shared_ptr< lldb_private::File > FileSP