9#ifndef LLDB_API_SBTARGET_H
10#define LLDB_API_SBTARGET_H
40 eBroadcastBitBreakpointChanged = (1 << 0),
41 eBroadcastBitModulesLoaded = (1 << 1),
42 eBroadcastBitModulesUnloaded = (1 << 2),
43 eBroadcastBitWatchpointChanged = (1 << 3),
44 eBroadcastBitSymbolsLoaded = (1 << 4)
57 explicit operator bool()
const;
65 static uint32_t GetNumModulesFromEvent(
const lldb::SBEvent &event);
67 static lldb::SBModule GetModuleAtIndexFromEvent(
const uint32_t idx,
70 static const char *GetBroadcasterClassName();
78 void SetCollectingStats(
bool v);
85 bool GetCollectingStats();
179 char const **envp,
const char *stdin_path,
180 const char *stdout_path,
const char *stderr_path,
181 const char *working_directory,
182 uint32_t launch_flags,
185 SBProcess LoadCore(
const char *core_file);
214 SBProcess LaunchSimple(
const char **argv,
const char **envp,
215 const char *working_directory);
260 const char *name,
bool wait_for,
288 void AppendImageSearchPath(
const char *from,
const char *to,
297 const char *uuid_cstr,
const char *symfile);
301 uint32_t GetNumModules()
const;
326 uint32_t GetAddressByteSize();
328 const char *GetTriple();
330 const char *GetABIName();
332 const char *GetLabel()
const;
334 SBError SetLabel(
const char *label);
341 uint32_t GetDataByteSize();
348 uint32_t GetCodeByteSize();
353 uint32_t GetMaximumNumberOfChildrenToDisplay()
const;
401 "SetModuleLoadAddress(lldb::SBModule, uint64_t)")
403 int64_t sections_offset);
425 uint64_t sections_offset);
453 FindFunctions(
const char *name,
454 uint32_t name_type_mask = lldb::eFunctionNameTypeAny);
509 uint32_t max_matches,
560 uint32_t resolve_scope);
582 size_t ReadMemory(
const SBAddress addr,
void *buf,
size_t size,
589 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line);
592 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
596 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
600 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
605 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
608 bool move_to_nearest_code);
611 const char *module_name =
nullptr);
615 BreakpointCreateByName(
const char *symbol_name,
620 const char *symbol_name,
627 const char *symbol_name,
635 const char **symbol_name, uint32_t num_names,
642 const char **symbol_name, uint32_t num_names,
649 const char **symbol_name, uint32_t num_names,
657 const char *symbol_name[], uint32_t num_names,
664 const char *symbol_name[], uint32_t num_names,
671 const char *symbol_name[], uint32_t num_names,
680 const char *module_name =
nullptr);
683 BreakpointCreateByRegex(
const char *symbol_name_regex,
692 BreakpointCreateBySourceRegex(
const char *source_regex,
694 const char *module_name =
nullptr);
697 BreakpointCreateBySourceRegex(
const char *source_regex,
706 bool catch_bp,
bool throw_bp);
735 const char *class_name,
739 bool request_hardware =
false);
800 bool append =
false);
802 uint32_t GetNumBreakpoints()
const;
816 void DeleteBreakpointName(
const char *name);
818 bool EnableAllBreakpoints();
820 bool DisableAllBreakpoints();
822 bool DeleteAllBreakpoints();
824 uint32_t GetNumWatchpoints()
const;
832 LLDB_DEPRECATED(
"WatchAddress deprecated, use WatchpointCreateByAddress")
837 WatchpointCreateByAddress(
lldb::
addr_t addr,
size_t size,
840 bool EnableAllWatchpoints();
842 bool DisableAllWatchpoints();
844 bool DeleteAllWatchpoints();
860 lldb::
SBValue CreateValueFromExpression(const
char *name, const
char *expr);
869 const
char *flavor_string);
872 const
void *buf,
size_t size);
878 const
char *flavor_string,
884 const void *buf,
size_t size);
886 const char *flavor_string,
949 friend class lldb_private::python::SWIGBridge;
static llvm::raw_ostream & error(Stream &strm)
bool operator!=(const DWARFBaseDIE &lhs, const DWARFBaseDIE &rhs)
bool operator==(const DWARFBaseDIE &lhs, const DWARFBaseDIE &rhs)
static std::optional< lldb::addr_t > ResolveLoadAddress(ExecutionContext *exe_ctx, lldb::ModuleSP &module_sp, Status *error_ptr, 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)
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