10 #ifndef LLDB_SBTarget_h_
11 #define LLDB_SBTarget_h_
40 eBroadcastBitBreakpointChanged = (1 << 0),
41 eBroadcastBitModulesLoaded = (1 << 1),
42 eBroadcastBitModulesUnloaded = (1 << 2),
43 eBroadcastBitWatchpointChanged = (1 << 3),
44 eBroadcastBitSymbolsLoaded = (1 << 4)
54 SBTarget(
const lldb::TargetSP &target_sp);
69 static uint32_t GetNumModulesFromEvent(
const lldb::SBEvent &event);
71 static lldb::SBModule GetModuleAtIndexFromEvent(
const uint32_t idx,
74 static const char *GetBroadcasterClassName();
162 char const **envp,
const char *stdin_path,
163 const char *stdout_path,
const char *stderr_path,
164 const char *working_directory,
165 uint32_t launch_flags,
168 SBProcess LoadCore(
const char *core_file);
196 SBProcess LaunchSimple(
const char **argv,
const char **envp,
197 const char *working_directory);
224 #if defined(__APPLE__)
254 const char *name,
bool wait_for,
279 const char *plugin_name,
SBError &error);
289 const char *uuid_cstr,
const char *symfile);
293 uint32_t GetNumModules()
const;
303 lldb::ByteOrder GetByteOrder();
305 uint32_t GetAddressByteSize();
307 const char *GetTriple();
316 uint32_t GetDataByteSize();
325 uint32_t GetCodeByteSize();
342 lldb::addr_t section_base_addr);
378 int64_t sections_offset);
410 FindFunctions(
const char *name,
411 uint32_t name_type_mask = lldb::eFunctionNameTypeAny);
456 MatchType matchtype);
474 uint32_t max_matches,
475 MatchType matchtype);
527 lldb::addr_t vm_addr);
530 uint32_t resolve_scope);
554 size_t ReadMemory(
const SBAddress addr,
void *buf,
size_t size,
561 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line);
564 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
565 lldb::addr_t offset);
568 BreakpointCreateByLocation(
const lldb::SBFileSpec &file_spec, uint32_t line,
572 const char *module_name =
nullptr);
576 BreakpointCreateByName(
const char *symbol_name,
581 const char *symbol_name,
588 const char *symbol_name,
591 lldb::LanguageType symbol_language,
595 const char *symbol_name[], uint32_t num_names,
602 const char *symbol_name[], uint32_t num_names,
605 lldb::LanguageType symbol_language,
609 const char *symbol_name[], uint32_t num_names,
612 lldb::LanguageType symbol_language,
617 const char *module_name =
nullptr);
620 BreakpointCreateByRegex(
const char *symbol_name_regex,
625 const char *symbol_name_regex, lldb::LanguageType symbol_language,
629 BreakpointCreateBySourceRegex(
const char *source_regex,
631 const char *module_name =
nullptr);
634 BreakpointCreateBySourceRegex(
const char *source_regex,
643 bool catch_bp,
bool throw_bp);
716 bool append =
false);
718 uint32_t GetNumBreakpoints()
const;
722 bool BreakpointDelete(break_id_t break_id);
730 bool EnableAllBreakpoints();
732 bool DisableAllBreakpoints();
734 bool DeleteAllBreakpoints();
736 uint32_t GetNumWatchpoints()
const;
740 bool DeleteWatchpoint(lldb::watch_id_t watch_id);
747 bool EnableAllWatchpoints();
749 bool DisableAllWatchpoints();
751 bool DeleteAllWatchpoints();
767 lldb::SBValue CreateValueFromExpression(
const char *name,
const char *expr);
776 const char *flavor_string);
779 const void *buf,
size_t size);
786 const char *flavor_string,
791 const void *buf,
size_t size);
794 const char *flavor_string,
799 lldb::SymbolType type = eSymbolTypeAny);
806 lldb::DescriptionLevel description_level);
813 lldb::addr_t GetStackRedZoneSize();
822 friend class SBBreakpointListImpl;
839 lldb::TargetSP GetSP()
const;
841 void SetSP(
const lldb::TargetSP &target_sp);
844 lldb::TargetSP m_opaque_sp;
849 #endif // LLDB_SBTarget_h_