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();
190 char const **envp,
const char *stdin_path,
191 const char *stdout_path,
const char *stderr_path,
192 const char *working_directory,
193 uint32_t launch_flags,
196 SBProcess LoadCore(
const char *core_file);
225 SBProcess LaunchSimple(
const char **argv,
const char **envp,
226 const char *working_directory);
271 const char *name,
bool wait_for,
299 void AppendImageSearchPath(
const char *from,
const char *to,
308 const char *uuid_cstr,
const char *symfile);
312 uint32_t GetNumModules()
const;
337 uint32_t GetAddressByteSize();
339 const char *GetTriple();
341 const char *GetABIName();
343 const char *GetLabel()
const;
345 SBError SetLabel(
const char *label);
352 uint32_t GetDataByteSize();
359 uint32_t GetCodeByteSize();
364 uint32_t GetMaximumNumberOfChildrenToDisplay()
const;
412 "SetModuleLoadAddress(lldb::SBModule, uint64_t)")
414 int64_t sections_offset);
436 uint64_t sections_offset);
464 FindFunctions(
const char *name,
465 uint32_t name_type_mask = lldb::eFunctionNameTypeAny);
520 uint32_t max_matches,
571 uint32_t resolve_scope);
593 size_t ReadMemory(
const SBAddress addr,
void *buf,
size_t size,
600 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line);
603 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
607 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
611 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
616 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
619 bool move_to_nearest_code);
622 const char *module_name =
nullptr);
626 BreakpointCreateByName(
const char *symbol_name,
631 const char *symbol_name,
638 const char *symbol_name,
646 const char **symbol_name, uint32_t num_names,
653 const char **symbol_name, uint32_t num_names,
660 const char **symbol_name, uint32_t num_names,
668 const char *symbol_name[], uint32_t num_names,
675 const char *symbol_name[], uint32_t num_names,
682 const char *symbol_name[], uint32_t num_names,
691 const char *module_name =
nullptr);
694 BreakpointCreateByRegex(
const char *symbol_name_regex,
703 BreakpointCreateBySourceRegex(
const char *source_regex,
705 const char *module_name =
nullptr);
708 BreakpointCreateBySourceRegex(
const char *source_regex,
717 bool catch_bp,
bool throw_bp);
746 const char *class_name,
750 bool request_hardware =
false);
811 bool append =
false);
813 uint32_t GetNumBreakpoints()
const;
827 void DeleteBreakpointName(
const char *name);
829 bool EnableAllBreakpoints();
831 bool DisableAllBreakpoints();
833 bool DeleteAllBreakpoints();
835 uint32_t GetNumWatchpoints()
const;
843 LLDB_DEPRECATED(
"WatchAddress deprecated, use WatchpointCreateByAddress")
848 WatchpointCreateByAddress(
lldb::
addr_t addr,
size_t size,
851 bool EnableAllWatchpoints();
853 bool DisableAllWatchpoints();
855 bool DeleteAllWatchpoints();
871 lldb::
SBValue CreateValueFromExpression(const
char *name, const
char *expr);
880 const
char *flavor_string);
884 const
char *flavor_string);
887 const
void *buf,
size_t size);
893 const
char *flavor_string,
899 const void *buf,
size_t size);
901 const char *flavor_string,
966 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)