9 #ifndef LLDB_API_SBTARGET_H
10 #define LLDB_API_SBTARGET_H
33 eBroadcastBitBreakpointChanged = (1 << 0),
34 eBroadcastBitModulesLoaded = (1 << 1),
35 eBroadcastBitModulesUnloaded = (1 << 2),
36 eBroadcastBitWatchpointChanged = (1 << 3),
37 eBroadcastBitSymbolsLoaded = (1 << 4)
45 SBTarget(
const lldb::TargetSP &target_sp);
52 explicit operator bool()
const;
65 static const char *GetBroadcasterClassName();
73 void SetCollectingStats(
bool v);
80 bool GetCollectingStats();
174 char const **envp,
const char *stdin_path,
175 const char *stdout_path,
const char *stderr_path,
176 const char *working_directory,
180 SBProcess LoadCore(
const char *core_file);
209 SBProcess LaunchSimple(
const char **argv,
const char **envp,
210 const char *working_directory);
255 const char *name,
bool wait_for,
283 void AppendImageSearchPath(
const char *from,
const char *to,
292 const char *uuid_cstr,
const char *symfile);
323 const char *GetTriple();
325 const char *GetABIName();
344 uint32_t GetMaximumNumberOfChildrenToDisplay()
const;
391 int64_t sections_offset);
419 FindFunctions(
const char *name,
420 uint32_t name_type_mask = lldb::eFunctionNameTypeAny);
548 size_t ReadMemory(
const SBAddress addr,
void *buf,
size_t size,
574 bool move_to_nearest_code);
577 const char *module_name =
nullptr);
581 BreakpointCreateByName(
const char *symbol_name,
586 const char *symbol_name,
593 const char *symbol_name,
600 const char *symbol_name[],
uint32_t num_names,
607 const char *symbol_name[],
uint32_t num_names,
614 const char *symbol_name[],
uint32_t num_names,
622 const char *module_name =
nullptr);
625 BreakpointCreateByRegex(
const char *symbol_name_regex,
634 BreakpointCreateBySourceRegex(
const char *source_regex,
636 const char *module_name =
nullptr);
639 BreakpointCreateBySourceRegex(
const char *source_regex,
648 bool catch_bp,
bool throw_bp);
677 const char *class_name,
681 bool request_hardware =
false);
742 bool append =
false);
758 void DeleteBreakpointName(
const char *name);
760 bool EnableAllBreakpoints();
762 bool DisableAllBreakpoints();
764 bool DeleteAllBreakpoints();
777 bool EnableAllWatchpoints();
779 bool DisableAllWatchpoints();
781 bool DeleteAllWatchpoints();
797 lldb::SBValue CreateValueFromExpression(
const char *name,
const char *expr);
806 const char *flavor_string);
809 const void *buf,
size_t size);
815 const char *flavor_string,
820 const void *buf,
size_t size);
823 const char *flavor_string,
886 lldb::TargetSP GetSP()
const;
888 void SetSP(
const lldb::TargetSP &target_sp);
896 #endif // LLDB_API_SBTARGET_H