9#ifndef LLDB_API_SBTARGET_H
10#define LLDB_API_SBTARGET_H
41 eBroadcastBitBreakpointChanged = (1 << 0),
42 eBroadcastBitModulesLoaded = (1 << 1),
43 eBroadcastBitModulesUnloaded = (1 << 2),
44 eBroadcastBitWatchpointChanged = (1 << 3),
45 eBroadcastBitSymbolsLoaded = (1 << 4),
46 eBroadcastBitSymbolsChanged = (1 << 5),
59 explicit operator bool()
const;
67 static uint32_t GetNumModulesFromEvent(
const lldb::SBEvent &event);
69 static lldb::SBModule GetModuleAtIndexFromEvent(
const uint32_t idx,
72 static const char *GetBroadcasterClassName();
80 void SetCollectingStats(
bool v);
87 bool GetCollectingStats();
107 void ResetStatistics();
195 char const **envp,
const char *stdin_path,
196 const char *stdout_path,
const char *stderr_path,
197 const char *working_directory,
198 uint32_t launch_flags,
201 SBProcess LoadCore(
const char *core_file);
230 SBProcess LaunchSimple(
const char **argv,
const char **envp,
231 const char *working_directory);
276 const char *name,
bool wait_for,
304 void AppendImageSearchPath(
const char *from,
const char *to,
313 const char *uuid_cstr,
const char *symfile);
317 uint32_t GetNumModules()
const;
342 uint32_t GetAddressByteSize();
344 const char *GetTriple();
346 const char *GetABIName();
348 const char *GetLabel()
const;
350 SBError SetLabel(
const char *label);
357 uint32_t GetDataByteSize();
364 uint32_t GetCodeByteSize();
369 uint32_t GetMaximumNumberOfChildrenToDisplay()
const;
417 "SetModuleLoadAddress(lldb::SBModule, uint64_t)")
419 int64_t sections_offset);
441 uint64_t sections_offset);
469 FindFunctions(
const char *name,
470 uint32_t name_type_mask = lldb::eFunctionNameTypeAny);
525 uint32_t max_matches,
576 uint32_t resolve_scope);
598 size_t ReadMemory(
const SBAddress addr,
void *buf,
size_t size,
605 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line);
608 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
612 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
616 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
621 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
624 bool move_to_nearest_code);
627 const char *module_name =
nullptr);
631 BreakpointCreateByName(
const char *symbol_name,
636 const char *symbol_name,
643 const char *symbol_name,
651 const char **symbol_name, uint32_t num_names,
658 const char **symbol_name, uint32_t num_names,
665 const char **symbol_name, uint32_t num_names,
673 const char *symbol_name[], uint32_t num_names,
680 const char *symbol_name[], uint32_t num_names,
687 const char *symbol_name[], uint32_t num_names,
696 const char *module_name =
nullptr);
699 BreakpointCreateByRegex(
const char *symbol_name_regex,
708 BreakpointCreateBySourceRegex(
const char *source_regex,
710 const char *module_name =
nullptr);
713 BreakpointCreateBySourceRegex(
const char *source_regex,
722 bool catch_bp,
bool throw_bp);
751 const char *class_name,
755 bool request_hardware =
false);
816 bool append =
false);
818 uint32_t GetNumBreakpoints()
const;
832 void DeleteBreakpointName(
const char *name);
834 bool EnableAllBreakpoints();
836 bool DisableAllBreakpoints();
838 bool DeleteAllBreakpoints();
840 uint32_t GetNumWatchpoints()
const;
848 LLDB_DEPRECATED(
"WatchAddress deprecated, use WatchpointCreateByAddress")
853 WatchpointCreateByAddress(
lldb::
addr_t addr,
size_t size,
856 bool EnableAllWatchpoints();
858 bool DisableAllWatchpoints();
860 bool DeleteAllWatchpoints();
876 lldb::
SBValue CreateValueFromExpression(const
char *name, const
char *expr);
885 const
char *flavor_string);
889 const
char *flavor_string);
892 const
void *buf,
size_t size);
898 const
char *flavor_string,
904 const void *buf,
size_t size);
906 const char *flavor_string,
971 friend class lldb_private::python::SWIGBridge;
static llvm::raw_ostream & error(Stream &strm)
static llvm::Expected< lldb::addr_t > ResolveLoadAddress(ExecutionContext *exe_ctx, lldb::ModuleSP &module_sp, const char *dw_op_type, lldb::addr_t file_addr, Address &so_addr, bool check_sectionoffset=false)
Helper function to move common code used to resolve a file address and turn into a load address.
#define LLDB_DEPRECATED_FIXME(MSG, FIX)
#define LLDB_DEPRECATED(MSG)
This class handles the verbosity when dumping statistics.
lldb::TargetSP m_opaque_sp
A class that represents a running process on the host machine.
MatchType
String matching algorithm used by SBTarget.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
BasicType
Basic types enumeration for the public API SBType::GetBasicType().
LanguageType
Programming language type.
class LLDB_API SBPlatform
ByteOrder
Byte ordering definitions.
std::shared_ptr< lldb_private::Target > TargetSP
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)