reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/source/API/SBFrame.cpp
  226         sb_symbol.reset(frame->GetSymbolContext(eSymbolContextSymbol).symbol);
 1241           if (sc.symbol)
 1242             name = sc.symbol->GetName().GetCString();
 1285           if (sc.symbol)
 1286             name = sc.symbol->GetDisplayName().GetCString();
tools/lldb/source/API/SBModule.cpp
  352           sc.symbol = symtab->SymbolAtIndex(matching_symbol_indexes[i]);
  353           if (sc.symbol)
tools/lldb/source/API/SBSymbolContext.cpp
  126     symbol = m_opaque_up->symbol;
  174   ref().symbol = symbol.get();
tools/lldb/source/Breakpoint/Breakpoint.cpp
  634     } else if (old_sc.symbol && new_sc.symbol &&
  634     } else if (old_sc.symbol && new_sc.symbol &&
  635                (old_sc.symbol == new_sc.symbol)) {
  635                (old_sc.symbol == new_sc.symbol)) {
  648     } else if (old_sc.symbol && new_sc.symbol) {
  648     } else if (old_sc.symbol && new_sc.symbol) {
  649       if (Mangled::Compare(old_sc.symbol->GetMangled(),
  650                            new_sc.symbol->GetMangled()) == 0) {
tools/lldb/source/Breakpoint/BreakpointLocation.cpp
  544         if (sc.symbol) {
  550           s->PutCString(sc.symbol->GetName().AsCString("<unknown>"));
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp
  354         } else if (sc.symbol) {
  355           if (sc.symbol->GetType() == eSymbolTypeReExported) {
  357                 sc.symbol->ResolveReExportedSymbol(m_breakpoint->GetTarget());
  363             break_addr = sc.symbol->GetAddress();
  368                 sc.symbol->GetPrologueByteSize();
  375                 arch->AdjustBreakpointAddress(*sc.symbol, break_addr);
tools/lldb/source/Commands/CommandObjectDisassemble.cpp
  331       Symbol *symbol = frame->GetSymbolContext(eSymbolContextSymbol).symbol;
  385                 if (sc.function || sc.symbol) {
  416                   if (sc.function || sc.symbol) {
  440           else if (sc.symbol && sc.symbol->ValueIsAddress())
  440           else if (sc.symbol && sc.symbol->ValueIsAddress())
  441             range.GetBaseAddress() = sc.symbol->GetAddress();
  485           else if (sc.symbol && sc.symbol->ValueIsAddress()) {
  485           else if (sc.symbol && sc.symbol->ValueIsAddress()) {
  486             range.GetBaseAddress() = sc.symbol->GetAddress();
  487             range.SetByteSize(sc.symbol->GetByteSize());
tools/lldb/source/Commands/CommandObjectSource.cpp
  410         if (sc.symbol && sc.symbol->ValueIsAddress()) {
  410         if (sc.symbol && sc.symbol->ValueIsAddress()) {
  411           const Address &base_address = sc.symbol->GetAddressRef();
  957           if (sc.symbol && sc.symbol->ValueIsAddress()) {
  957           if (sc.symbol && sc.symbol->ValueIsAddress()) {
  958             const Address &base_address = sc.symbol->GetAddressRef();
tools/lldb/source/Commands/CommandObjectTarget.cpp
 3361         if (sc.function || sc.symbol) {
 3383       if (sc.symbol == nullptr && sc.function == nullptr)
tools/lldb/source/Commands/CommandObjectType.cpp
 2637     Symbol *s = frame->GetSymbolContext(eSymbolContextSymbol).symbol;
tools/lldb/source/Core/Address.cpp
  540               if (func_sc.function != nullptr || func_sc.symbol != nullptr) {
  628                     pointer_sc.symbol != nullptr) {
  648           if (sc.function || sc.symbol) {
  656             if (sc.function == nullptr && sc.symbol != nullptr) {
  658               if (sc.symbol->ValueIsAddress()) {
  659                 if (sc.symbol->GetAddressRef().GetSection() != GetSection()) {
  694         if (sc.symbol) {
  699           if (sc.symbol->ValueIsAddress() &&
  700               sc.symbol->GetAddressRef().GetSection() != GetSection())
  701             sc.symbol = nullptr;
  872       return sc.symbol;
tools/lldb/source/Core/AddressResolverName.cpp
  127           if (symbol_sc.symbol && symbol_sc.symbol->ValueIsAddress()) {
  127           if (symbol_sc.symbol && symbol_sc.symbol->ValueIsAddress()) {
  129                 symbol_sc.symbol->GetAddressRef()) {
  165       if (sc.symbol && sc.symbol->ValueIsAddress()) {
  165       if (sc.symbol && sc.symbol->ValueIsAddress()) {
  166         func_addr = sc.symbol->GetAddressRef();
  167         addr_t byte_size = sc.symbol->GetByteSize();
  170           const uint32_t prologue_byte_size = sc.symbol->GetPrologueByteSize();
tools/lldb/source/Core/Debugger.cpp
 1122   if (prev_sc && (prev_sc->function || prev_sc->symbol)) {
 1123     if (sc && (sc->function || sc->symbol)) {
 1124       if (prev_sc->symbol && sc->symbol) {
 1124       if (prev_sc->symbol && sc->symbol) {
 1125         if (!sc->symbol->Compare(prev_sc->symbol->GetName(),
 1125         if (!sc->symbol->Compare(prev_sc->symbol->GetName(),
 1126                                  prev_sc->symbol->GetType())) {
 1139   if ((sc && (sc->function || sc->symbol)) && prev_sc &&
 1140       (prev_sc->function == nullptr && prev_sc->symbol == nullptr)) {
tools/lldb/source/Core/Disassembler.cpp
  370   if (avoid_regex && sc.symbol != nullptr) {
  465             if (sc.symbol != previous_symbol) {
  508             if (previous_symbol != sc.symbol) {
  516               previous_symbol = sc.symbol;
  667     } else if (sc.symbol && sc.symbol->ValueIsAddress()) {
  667     } else if (sc.symbol && sc.symbol->ValueIsAddress()) {
  668       range.GetBaseAddress() = sc.symbol->GetAddressRef();
  669       range.SetByteSize(sc.symbol->GetByteSize());
tools/lldb/source/Core/FormatEntity.cpp
  469       } else if (sc->symbol && sc->symbol->ValueIsAddress())
  469       } else if (sc->symbol && sc->symbol->ValueIsAddress())
  470         func_addr = sc->symbol->GetAddressRef();
 1500       } else if (sc->symbol) {
 1501         s.Printf("symbol[%u]", sc->symbol->GetID());
 1519     else if (sc->symbol)
 1520       language_plugin = Language::FindPlugin(sc->symbol->GetLanguage());
 1532       else if (sc->symbol)
 1533         name = sc->symbol->GetName().AsCString(nullptr);
 1560     else if (sc->symbol)
 1561       language_plugin = Language::FindPlugin(sc->symbol->GetLanguage());
 1574       else if (sc->symbol)
 1575         name = sc->symbol->GetNameNoArguments();
 1590     else if (sc->symbol)
 1591       language_plugin = Language::FindPlugin(sc->symbol->GetLanguage());
 1736       } else if (sc->symbol) {
 1737         const char *cstr = sc->symbol->GetName().AsCString(nullptr);
tools/lldb/source/Core/IOHandler.cpp
 3937           } else if (m_sc.symbol) {
 3938             if (m_disassembly_scope != m_sc.symbol) {
 3939               m_disassembly_scope = m_sc.symbol;
 3940               m_disassembly_sp = m_sc.symbol->GetInstructions(
 3945                     m_sc.symbol->GetAddress();
 3946                 m_disassembly_range.SetByteSize(m_sc.symbol->GetByteSize());
tools/lldb/source/Core/Module.cpp
  490         sc.symbol = matching_symbol;
  491         if (!sc.symbol && resolve_scope & eSymbolContextFunction &&
  497             sc.symbol =
  501         if (sc.symbol) {
  502           if (sc.symbol->IsSynthetic()) {
  518                     sc.symbol = symbol;
  559             sc.symbol =
  861               sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
  862               SymbolType sym_type = sc.symbol->GetType();
  863               if (sc.symbol && (sym_type == eSymbolTypeCode ||
  883               sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
  884               SymbolType sym_type = sc.symbol->GetType();
  885               if (sc.symbol && sc.symbol->ValueIsAddress() &&
  885               if (sc.symbol && sc.symbol->ValueIsAddress() &&
  890                         sc.symbol->GetAddressRef().GetFileAddress());
  894                   sc_list[pos->second].symbol = sc.symbol;
  894                   sc_list[pos->second].symbol = sc.symbol;
 1303       sc.symbol = symtab->SymbolAtIndex(symbol_indexes[i]);
 1304       if (sc.symbol)
tools/lldb/source/Expression/IRExecutionUnit.cpp
  801         if (!candidate_sc.symbol)
  803         else if (candidate_sc.symbol->GetType() != lldb::eSymbolTypeUndefined
  804                   || !candidate_sc.symbol->IsWeak())
  809             (candidate_sc.symbol && candidate_sc.symbol->IsExternal());
  809             (candidate_sc.symbol && candidate_sc.symbol->IsExternal());
  810         if (candidate_sc.symbol) {
  811           load_address = candidate_sc.symbol->ResolveCallableAddress(*target);
  816                   candidate_sc.symbol->GetAddress().GetLoadAddress(target);
  818               load_address = candidate_sc.symbol->GetAddress().GetFileAddress();
tools/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp
  105     else if (sc.symbol)
  106       sym_addr = sc.symbol->GetAddress();
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
 1390         if (sym_ctx.symbol || sym_ctx.function) {
tools/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp
  416   Symbol *sym = context.symbol;
tools/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/HexagonDYLDRendezvous.cpp
  298   Address address = list[0].symbol->GetAddress();
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
  713   if (sym_ctx.symbol) {
  714     module_sp = sym_ctx.symbol->GetAddressRef().GetModule();
  833   Symbol *current_symbol = current_context.symbol;
  880               if (context.symbol) {
  882                     context.symbol->ResolveReExportedSymbol(*target_sp.get());
 1028         if (sc.symbol)
 1029           m_pthread_getspecific_addr = sc.symbol->GetAddress();
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp
  112                 frame_sp->GetSymbolContext(eSymbolContextSymbol).symbol;
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
  138                 frame_sp->GetSymbolContext(eSymbolContextSymbol).symbol;
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
  566   Address address = list[0].symbol->GetAddress();
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
  459   Symbol *sym = context.symbol;
  757   if (sym_ctx.symbol)
  758     module_sp = sym_ctx.symbol->GetAddressRef().GetModule();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
  549     const Address sym_address = sym_ctx.symbol->GetAddress();
  554     switch (sym_ctx.symbol->GetType()) {
  565       ConstString reexport_name = sym_ctx.symbol->GetReExportedSymbolName();
  570             sym_ctx.symbol->GetReExportedSymbolSharedLibrary();
  581             target, process, sym_ctx.symbol->GetReExportedSymbolName(),
 1375         } else if (sym_ctx.symbol) {
 1376           if (sym_ctx.symbol->GetType() == eSymbolTypeReExported && target) {
 1377             sym_ctx.symbol = sym_ctx.symbol->ResolveReExportedSymbol(*target);
 1377             sym_ctx.symbol = sym_ctx.symbol->ResolveReExportedSymbol(*target);
 1378             if (sym_ctx.symbol == nullptr)
 1382           if (sym_ctx.symbol->IsExternal())
 1383             extern_symbol = sym_ctx.symbol;
 1385             non_extern_symbol = sym_ctx.symbol;
tools/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
  468   const Address jit_descriptor_addr = sym_ctx.symbol->GetAddress();
tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
  157   symbol = sc.symbol;
  193     symbol = sc.symbol;
  304   symbol = sc.symbol;
tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
   73         Symbol *symbol = sc.symbol;
  562   Address addr = context.symbol->GetAddress();
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
  237     m_PrintForDebugger_addr.reset(new Address(context.symbol->GetAddress()));
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
  923       if (ivar_offset_symbol.symbol)
  925             ivar_offset_symbol.symbol->GetLoadAddress(&target);
 2648       if (sc.symbol)
 2649         return sc.symbol->GetLoadAddress(&GetProcess()->GetTarget());
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 5286             m_entry_point_address = context.symbol->GetAddress();
tools/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
   45   if (sym_ctx.symbol)
   46     return sym_ctx.symbol->GetName();
  158   if (m_sym_ctx.symbol) {
  434   if (m_sym_ctx.symbol) {
  719        (m_sym_ctx.function == nullptr && m_sym_ctx.symbol == nullptr)) &&
 1122           (m_sym_ctx.symbol && m_sym_ctx.symbol->GetName() == name)) {
 1122           (m_sym_ctx.symbol && m_sym_ctx.symbol->GetName() == name)) {
 1131         (m_sym_ctx.symbol && m_sym_ctx.symbol->GetName() == name)) {
 1131         (m_sym_ctx.symbol && m_sym_ctx.symbol->GetName() == name)) {
 1912   if (!m_sym_ctx.module_sp || !m_sym_ctx.symbol)
 1918     if (!next->m_sym_ctx.module_sp || !next->m_sym_ctx.symbol)
 1922                 *next->m_sym_ctx.symbol))
tools/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
  128       else if (first_frame_sc.symbol) {
  129         range.GetBaseAddress() = first_frame_sc.symbol->GetAddress();
  130         range.SetByteSize(first_frame_sc.symbol->GetByteSize());
  219       else if (first_frame_sc.symbol) {
  220         range.GetBaseAddress() = first_frame_sc.symbol->GetAddress();
  221         range.SetByteSize(first_frame_sc.symbol->GetByteSize());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 3847                     if (sc.symbol) {
 3848                       switch (sc.symbol->GetType()) {
 3881                             sc.symbol->GetLoadAddress(&process->GetTarget());
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
  766       sc.symbol =
  769       if (sc.symbol != nullptr) {
  774             GetCompileUnitInfoForSymbolWithID(sc.symbol->GetID(), &oso_idx);
tools/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.cpp
  254     sc.symbol = m_objfile_sp->GetSymtab()->FindSymbolContainingFileAddress(
  256     if (sc.symbol)
tools/lldb/source/Symbol/Function.cpp
  154     if (num_matches == 0 || !sc_list[0].symbol) {
  159     Address callee_addr = sc_list[0].symbol->GetAddress();
tools/lldb/source/Symbol/Symbol.cpp
  382   sc->symbol = this;
  444           if (sc.symbol->IsExternal())
  445             return sc.symbol;
tools/lldb/source/Symbol/SymbolContext.cpp
   66     symbol = rhs.symbol;
   66     symbol = rhs.symbol;
   80   symbol = nullptr;
  167   } else if (symbol != nullptr) {
  171     } else if (symbol->GetName()) {
  173       if (symbol->GetType() == eSymbolTypeTrampoline)
  175       symbol->GetName().Dump(s);
  178     if (addr.IsValid() && symbol->ValueIsAddress()) {
  180           addr.GetOffset() - symbol->GetAddressRef().GetOffset();
  256   if (symbol != nullptr) {
  258     symbol->GetDescription(s, level, target);
  310   if (symbol)
  365   *s << "Symbol       = " << symbol;
  366   if (symbol != nullptr && symbol->GetMangled())
  366   if (symbol != nullptr && symbol->GetMangled())
  367     *s << ' ' << symbol->GetName().AsCString();
  380   return lhs.function == rhs.function && lhs.symbol == rhs.symbol &&
  380   return lhs.function == rhs.function && lhs.symbol == rhs.symbol &&
  418   if ((scope & eSymbolContextSymbol) && (symbol != nullptr)) {
  420       if (symbol->ValueIsAddress()) {
  421         range.GetBaseAddress() = symbol->GetAddressRef();
  422         range.SetByteSize(symbol->GetByteSize());
  438   } else if (symbol && (lang = symbol->GetLanguage()) != eLanguageTypeUnknown) {
  438   } else if (symbol && (lang = symbol->GetLanguage()) != eLanguageTypeUnknown) {
  443   } else if (symbol) {
  445     return symbol->GetMangled().GuessLanguage();
  680   } else if (symbol && symbol->ValueIsAddress()) {
  680   } else if (symbol && symbol->ValueIsAddress()) {
  681     return symbol->GetMangled().GetName(symbol->GetLanguage(), preference);
  681     return symbol->GetMangled().GetName(symbol->GetLanguage(), preference);
  796       if (sym_ctx.symbol) {
  797         const Symbol *symbol = sym_ctx.symbol;
 1106       } else if (sc.symbol != nullptr) {
 1107         if (!sc.symbol->GetMangled().NameMatches(func_name,
 1108                                                  sc.symbol->GetLanguage()))
 1231   if (merge_symbol_into_function && sc.symbol != nullptr &&
 1234     if (sc.symbol->ValueIsAddress()) {
 1242               sc.symbol->GetAddressRef()) {
 1244             if (pos->symbol == sc.symbol)
 1244             if (pos->symbol == sc.symbol)
 1246             if (pos->symbol == nullptr) {
 1247               pos->symbol = sc.symbol;
 1247               pos->symbol = sc.symbol;
tools/lldb/source/Symbol/Symtab.cpp
 1017       sc.symbol = SymbolAtIndex(symbol_indexes[i]);
 1018       if (sc.symbol)
 1041         sym_ctx.symbol = SymbolAtIndex(temp_symbol_indexes[i]);
 1042         if (sym_ctx.symbol) {
 1043           switch (sym_ctx.symbol->GetType()) {
tools/lldb/source/Target/StackFrame.cpp
  163         scope = m_sc.symbol;
  357           if (m_sc.symbol)
  390         if ((resolved & eSymbolContextSymbol) && m_sc.symbol == nullptr)
  391           m_sc.symbol = sc.symbol;
  391           m_sc.symbol = sc.symbol;
 1231     else if (sc.symbol)
 1233       lang_type = sc.symbol->GetMangled().GuessLanguage();
tools/lldb/source/Target/StackFrameList.cpp
  684                 frame_sp->GetSymbolContext(eSymbolContextSymbol).symbol);
tools/lldb/source/Target/StackFrameRecognizer.cpp
  100     Symbol *symbol = symctx.symbol;
tools/lldb/source/Target/StackID.cpp
   27     else if (sc.symbol)
   28       s->Printf(" (Symbol{0x%8.8x})", sc.symbol->GetID());
tools/lldb/source/Target/ThreadPlanShouldStopHere.cpp
  115     if (sc.symbol && sc.symbol->ValueIsAddress()) {
  115     if (sc.symbol && sc.symbol->ValueIsAddress()) {
  116       Address symbol_end = sc.symbol->GetAddress();
  117       symbol_end.Slide(sc.symbol->GetByteSize() - 1);
  118       if (range.ContainsFileAddress(sc.symbol->GetAddress()) &&
tools/lldb/source/Target/ThreadPlanStepInRange.cpp
  272         } else if (sc.symbol) {
  273           func_start_address = sc.symbol->GetAddress();
  277             bytes_to_skip = sc.symbol->GetPrologueByteSize();
  280         if (bytes_to_skip == 0 && sc.symbol) {
  287             bytes_to_skip = arch->GetBytesToSkip(*sc.symbol, curr_sec_addr);
  359     if (sc.symbol != nullptr) {
  404       if (sc.symbol != nullptr) {
tools/lldb/source/Target/ThreadPlanStepInstruction.cpp
   44       start_frame_sp->GetSymbolContext(eSymbolContextSymbol).symbol != nullptr;
tools/lldb/source/Target/ThreadPlanStepOverRange.cpp
  123   return m_addr_context.symbol && m_addr_context.symbol == context.symbol;
  123   return m_addr_context.symbol && m_addr_context.symbol == context.symbol;
  123   return m_addr_context.symbol && m_addr_context.symbol == context.symbol;
tools/lldb/source/Target/ThreadPlanStepRange.cpp
  202   } else if (m_addr_context.symbol && m_addr_context.symbol->ValueIsAddress()) {
  202   } else if (m_addr_context.symbol && m_addr_context.symbol->ValueIsAddress()) {
  203     AddressRange range(m_addr_context.symbol->GetAddressRef(),
  204                        m_addr_context.symbol->GetByteSize());