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

References

tools/lldb/source/API/SBBlock.cpp
  187     if (sc.function) {
  190           sc.function->GetAddressRange().GetBaseAddress().GetFileAddress());
tools/lldb/source/API/SBFrame.cpp
  203             frame->GetSymbolContext(eSymbolContextFunction).function);
 1231                 inlined_info->GetName(sc.function->GetLanguage()).AsCString();
 1236           if (sc.function)
 1237             name = sc.function->GetName().GetCString();
 1274             name = inlined_info->GetDisplayName(sc.function->GetLanguage())
 1280           if (sc.function)
 1281             name = sc.function->GetDisplayName().GetCString();
tools/lldb/source/API/SBSymbolContext.cpp
   96     function = m_opaque_up->function;
  151   ref().function = function.get();
tools/lldb/source/API/SBThread.cpp
  908     AddressRange fun_range = frame_sc.function->GetAddressRange();
tools/lldb/source/Breakpoint/Breakpoint.cpp
  630       if (old_sc.function && new_sc.function &&
  630       if (old_sc.function && new_sc.function &&
  631           (old_sc.function == new_sc.function)) {
  631           (old_sc.function == new_sc.function)) {
  643         if (old_sc.function && new_sc.function &&
  643         if (old_sc.function && new_sc.function &&
  644             (old_sc.function->GetName() == new_sc.function->GetName())) {
  644             (old_sc.function->GetName() == new_sc.function->GetName())) {
tools/lldb/source/Breakpoint/BreakpointLocation.cpp
  530         if (sc.function != nullptr) {
  533           s->PutCString(sc.function->GetName().AsCString("<unknown>"));
tools/lldb/source/Breakpoint/BreakpointResolver.cpp
  314   if (skip_prologue && sc.function) {
  315     Address prologue_addr(sc.function->GetAddressRange().GetBaseAddress());
  317       const uint32_t prologue_byte_size = sc.function->GetPrologueByteSize();
tools/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp
  162     } else if (sc.function)
  163       sc.function->GetStartLineSourceInfo(file, line);
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp
  346         } else if (sc.function) {
  347           break_addr = sc.function->GetAddressRange().GetBaseAddress();
  350                 sc.function->GetPrologueByteSize();
tools/lldb/source/Commands/CommandObjectDisassemble.cpp
  385                 if (sc.function || sc.symbol) {
  416                   if (sc.function || sc.symbol) {
  437           if (sc.function)
  439                 sc.function->GetAddressRange().GetBaseAddress();
  483           if (sc.function)
  484             range = sc.function->GetAddressRange();
tools/lldb/source/Commands/CommandObjectFrame.cpp
  518     if (sym_ctx.function && sym_ctx.function->IsTopLevelFunction())
  518     if (sym_ctx.function && sym_ctx.function->IsTopLevelFunction())
tools/lldb/source/Commands/CommandObjectSource.cpp
  797     if (sc.function) {
  807         sc.function->GetStartLineSourceInfo(start_file, start_line);
  815         sc.function->GetEndLineSourceInfo(end_file, end_line);
tools/lldb/source/Commands/CommandObjectTarget.cpp
 3361         if (sc.function || sc.symbol) {
 3383       if (sc.symbol == nullptr && sc.function == nullptr)
tools/lldb/source/Commands/CommandObjectThread.cpp
 1182         AddressRange fun_addr_range = sc.function->GetAddressRange();
tools/lldb/source/Core/Address.cpp
  540               if (func_sc.function != nullptr || func_sc.symbol != nullptr) {
  627                 if (pointer_sc.function != nullptr ||
  648           if (sc.function || sc.symbol) {
  656             if (sc.function == nullptr && sc.symbol != nullptr) {
  844       return sc.function;
tools/lldb/source/Core/AddressResolverName.cpp
  121       if (sc.function == nullptr)
  128             if (sc.function->GetAddressRange().GetBaseAddress() ==
  142         if (sc.function) {
  143           func_addr = sc.function->GetAddressRange().GetBaseAddress();
  144           addr_t byte_size = sc.function->GetAddressRange().GetByteSize();
  147                 sc.function->GetPrologueByteSize();
tools/lldb/source/Core/Debugger.cpp
 1122   if (prev_sc && (prev_sc->function || prev_sc->symbol)) {
 1123     if (sc && (sc->function || sc->symbol)) {
 1129       } else if (prev_sc->function && sc->function) {
 1129       } else if (prev_sc->function && sc->function) {
 1130         if (prev_sc->function->GetMangled() != sc->function->GetMangled()) {
 1130         if (prev_sc->function->GetMangled() != sc->function->GetMangled()) {
 1139   if ((sc && (sc->function || sc->symbol)) && prev_sc &&
 1140       (prev_sc->function == nullptr && prev_sc->symbol == nullptr)) {
tools/lldb/source/Core/Disassembler.cpp
  302   if (!sc.function)
  311   sc.function->GetStartLineSourceInfo(func_decl_file, func_decl_line);
  517               if (sc.function && sc.line_entry.IsValid()) {
  523                   sc.function->GetStartLineSourceInfo(func_decl_file,
  665     if (sc.function) {
  666       range = sc.function->GetAddressRange();
tools/lldb/source/Core/FormatEntity.cpp
  457       if (sc->function) {
  458         func_addr = sc->function->GetAddressRange().GetBaseAddress();
 1497       if (sc->function) {
 1498         s.Printf("function{0x%8.8" PRIx64 "}", sc->function->GetID());
 1517     if (sc->function)
 1518       language_plugin = Language::FindPlugin(sc->function->GetLanguage());
 1530       if (sc->function)
 1531         name = sc->function->GetName().AsCString(nullptr);
 1544               inline_info->GetName(sc->function->GetLanguage()).Dump(&s);
 1558     if (sc->function)
 1559       language_plugin = Language::FindPlugin(sc->function->GetLanguage());
 1572       if (sc->function)
 1573         name = sc->function->GetNameNoArguments();
 1588     if (sc->function)
 1589       language_plugin = Language::FindPlugin(sc->function->GetLanguage());
 1601       if (sc->function) {
 1604         const char *cstr = sc->function->GetName().AsCString(nullptr);
 1622                 sc->function->GetBlock(true).GetBlockVariableList(true);
 1629                 inline_info->GetName(sc->function->GetLanguage()).GetCString();
 1785     if (sc->function && sc->function->GetIsOptimized()) {
 1785     if (sc->function && sc->function->GetIsOptimized()) {
tools/lldb/source/Core/IOHandler.cpp
 3923           if (m_sc.function) {
 3924             if (m_disassembly_scope != m_sc.function) {
 3925               m_disassembly_scope = m_sc.function;
 3926               m_disassembly_sp = m_sc.function->GetInstructions(
 3930                 m_disassembly_range = m_sc.function->GetAddressRange();
tools/lldb/source/Core/Module.cpp
  384       sc.function = f.get();
  874               file_addr_to_index[sc.function->GetAddressRange()
tools/lldb/source/Core/SourceManager.cpp
  334           if (sc.function) {
  336             if (sc.function->GetAddressRange()
tools/lldb/source/Core/ValueObjectVariable.cpp
  152       if (sc.function)
  154             sc.function->GetAddressRange().GetBaseAddress().GetLoadAddress(
tools/lldb/source/Expression/DWARFExpression.cpp
  816       parent_frame->GetSymbolContext(eSymbolContextFunction).function;
  825       current_frame->GetSymbolContext(eSymbolContextFunction).function;
 2946   if (!sc.function) {
 2951       sc.function->GetAddressRange().GetBaseAddress().GetFileAddress();
tools/lldb/source/Expression/IRExecutionUnit.cpp
  808             (candidate_sc.function) ||
  822         if (load_address == LLDB_INVALID_ADDRESS && candidate_sc.function) {
  824             load_address = candidate_sc.function->GetAddressRange()
  828             load_address = candidate_sc.function->GetAddressRange()
tools/lldb/source/Plugins/Architecture/Mips/ArchitectureMips.cpp
  103     if (sc.function)
  104       sym_addr = sc.function->GetAddressRange().GetBaseAddress();
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
 1390         if (sym_ctx.symbol || sym_ctx.function) {
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
  716   if (module_sp.get() == nullptr && sym_ctx.function) {
  718         sym_ctx.function->GetAddressRange().GetBaseAddress().GetModule();
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
  759   if (!module_sp && sym_ctx.function)
  761         sym_ctx.function->GetAddressRange().GetBaseAddress().GetModule();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
 1277       if (!candidate_sc.function)
 1280       const char *candidate_name = candidate_sc.function->GetName().AsCString();
 1315       if (!sc.function)
 1318       CompilerDeclContext function_decl_ctx = sc.function->GetDeclContext();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
 1287           Function *function = sym_ctx.function;
 1362         if (sym_ctx.function) {
 1363           CompilerDeclContext decl_ctx = sym_ctx.function->GetDeclContext();
 1372           AddOneFunction(context, sym_ctx.function, nullptr, current_id);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  113   if (!sym_ctx.function) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
  472     if (sc.function) {
  473       const uint32_t offset = sc.function->GetPrologueByteSize();
tools/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
   47   else if (sym_ctx.function)
   48     return sym_ctx.function->GetName();
  161   } else if (m_sym_ctx.function) {
  437   } else if (m_sym_ctx.function) {
  719        (m_sym_ctx.function == nullptr && m_sym_ctx.symbol == nullptr)) &&
 1121       if ((m_sym_ctx.function && m_sym_ctx.function->GetName() == name) ||
 1121       if ((m_sym_ctx.function && m_sym_ctx.function->GetName() == name) ||
 1130     if ((m_sym_ctx.function && m_sym_ctx.function->GetName() == name) ||
 1130     if ((m_sym_ctx.function && m_sym_ctx.function->GetName() == name) ||
tools/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
  126       if (first_frame_sc.function)
  127         addr_range_ptr = &first_frame_sc.function->GetAddressRange();
  217       if (first_frame_sc.function)
  218         addr_range_ptr = &first_frame_sc.function->GetAddressRange();
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
 1291   } else if (sc.function != NULL && sc_parent_die) {
 1293         sc.function->GetBlock(true).FindBlockByID(sc_parent_die.GetID());
 1295       symbol_context_scope = sc.function;
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
 1497     sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
 1498     if (sc.function == nullptr)
 1499       sc.function = ParseFunction(*sc.comp_unit, die);
 1501     if (sc.function) {
 1502       sc.module_sp = sc.function->CalculateSymbolContextModule();
 1780                 sc.function =
 1782                 if (sc.function == nullptr)
 1783                   sc.function = ParseFunction(*sc.comp_unit, function_die);
 1785                 if (sc.function && (resolve_scope & eSymbolContextBlock))
 1797               if (sc.function != nullptr) {
 1801                   Block &block = sc.function->GetBlock(true);
 1904                 sc.function = nullptr;
 1915                       sc.function =
 1918                       if (sc.function == nullptr)
 1919                         sc.function =
 1922                       if (sc.function && (resolve_scope & eSymbolContextBlock))
 1927                     if (sc.function != nullptr) {
 1928                       Block &block = sc.function->GetBlock(true);
 2200       Block &function_block = sc.function->GetBlock(true);
 2208       addr = sc.function->GetAddressRange().GetBaseAddress();
 3024         child_sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
 3081     if (sc.function) {
 3082       DWARFDIE function_die = GetDIE(sc.function->GetID());
 3091         sc.function->GetBlock(false).SetDidParseVariables(true, true);
 3151       (tag == DW_TAG_formal_parameter && sc.function)) {
 3473           if (sc.function) {
 3474             symbol_context_scope = sc.function->GetBlock(true).FindBlockByID(
 3477               symbol_context_scope = sc.function;
 3588           (tag == DW_TAG_formal_parameter && sc.function)) {
 3612             if (sc.function != nullptr) {
 3616               Block *block = sc.function->GetBlock(true).FindBlockByID(
 3625                         GetDIE(sc.function->GetID()),
 3628                   block = sc.function->GetBlock(true).FindBlockByID(
 3664     bool skip_children = (sc.function == nullptr && tag == DW_TAG_subprogram);
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
  991     if (sc.function) {
  993           sc.function->GetAddressRange().GetBaseAddress().GetSection());
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
  992         sc.function = GetOrCreateFunction(csid, *sc.comp_unit).get();
  998         sc.function = sc.block->CalculateSymbolContextFunction();
 1237     sc.function = GetOrCreateFunction(func_id, *sc.comp_unit).get();
 1481   lldbassert(sc.function || sc.comp_unit);
 1491   if (sc.function) {
 1492     PdbSymUid block_id(sc.function->GetID());
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
  508   if (sc.function) {
  510         sc.function->GetID());
  515     sc.function->GetBlock(false).SetDidParseVariables(true, true);
  758       sc.function = sc.comp_unit->FindFunctionByUID(func_uid).get();
  759       if (sc.function == nullptr)
  760         sc.function =
  762       if (sc.function) {
  768                                        : sc.function->GetID();
  769           sc.block = sc.function->GetBlock(true).FindBlockByID(block_id);
  871               sc.function = sc.comp_unit->FindFunctionByUID(func_uid).get();
  872               if (sc.function == nullptr) {
  875                 sc.function = ParseCompileUnitFunctionForPDBFunc(*pdb_func,
  878               if (sc.function && (resolve_scope & eSymbolContextBlock)) {
  879                 Block &block = sc.function->GetBlock(true);
  880                 sc.block = block.FindBlockByID(sc.function->GetID());
  989     if (sc.function) {
  990       Block &function_block = sc.function->GetBlock(true);
 1061           if (sc.function) {
 1062             Block *block = sc.function->GetBlock(true).FindBlockByID(
 1186   sc.function = ParseCompileUnitFunctionForPDBFunc(pdb_func, *sc.comp_unit);
 1187   if (!sc.function)
tools/lldb/source/Symbol/Function.cpp
  361   sc->function = this;
tools/lldb/source/Symbol/SymbolContext.cpp
   63     function = rhs.function;
   63     function = rhs.function;
   77   function = nullptr;
   99   if (function != nullptr) {
  108         name = function->GetNameNoArguments();
  110         name = function->GetName();
  118           function->GetAddressRange().GetBaseAddress().GetOffset();
  136           inlined_block_info->GetName(function->GetLanguage()).GetCString());
  215   if (function != nullptr) {
  217     function->GetDescription(s, level, target);
  220     Type *func_type = function->GetType();
  245       (*pos)->GetDescription(s, function, level, target);
  304   if (function)
  336   *s << "Function     = " << function;
  337   if (function != nullptr) {
  338     *s << " {0x" << function->GetID() << "} " << function->GetType()->GetName()
  338     *s << " {0x" << function->GetID() << "} " << function->GetType()->GetName()
  340     function->GetAddressRange().Dump(s, target, Address::DumpStyleLoadAddress,
  344     Type *func_type = function->GetType();
  380   return lhs.function == rhs.function && lhs.symbol == rhs.symbol &&
  380   return lhs.function == rhs.function && lhs.symbol == rhs.symbol &&
  411   if ((scope & eSymbolContextFunction) && (function != nullptr)) {
  413       range = function->GetAddressRange();
  433   if (function && (lang = function->GetLanguage()) != eLanguageTypeUnknown) {
  433   if (function && (lang = function->GetLanguage()) != eLanguageTypeUnknown) {
  536   if (function) {
  554     return &function->GetBlock(true);
  602   if (function != nullptr && !type_map.Empty()) {
  606       if (scs && function == scs->CalculateSymbolContextFunction())
  668   if (function) {
  676           return inline_info->GetName(function->GetLanguage());
  679     return function->GetMangled().GetName(function->GetLanguage(), preference);
  679     return function->GetMangled().GetName(function->GetLanguage(), preference);
  702   if (function) {
  703     if (function->GetAddressRange()
 1096         if (!name.NameMatches(func_name, sc.function->GetLanguage()))
 1102       if (sc.function != nullptr) {
 1103         if (!sc.function->GetMangled().NameMatches(func_name,
 1104                                                    sc.function->GetLanguage()))
 1232       sc.comp_unit == nullptr && sc.function == nullptr &&
 1240         if (pos->function) {
 1241           if (pos->function->GetAddressRange().GetBaseAddress() ==
tools/lldb/source/Symbol/Variable.cpp
  156       if (variable_sc.function)
  157         loclist_base_addr = variable_sc.function->GetAddressRange()
  196     if (sc.function)
  235         frame->GetSymbolContext(eSymbolContextFunction).function;
  267       if (sc.function) {
  269             sc.function->GetAddressRange().GetBaseAddress().GetFileAddress();
  465       if (sc.function) {
  466         if (sc.function->GetAddressRange().ContainsFileAddress(address)) {
  468               sc.function->GetAddressRange().GetBaseAddress().GetFileAddress();
tools/lldb/source/Target/Process.cpp
 5702       !sc.module_sp->GetFileSpec().GetFilename().IsEmpty() && sc.function &&
 5703       sc.function->GetIsOptimized()) {
tools/lldb/source/Target/StackFrame.cpp
  263       return &m_sc.function->GetBlock(false);
  339           if (m_sc.function)
  386         if ((resolved & eSymbolContextFunction) && m_sc.function == nullptr)
  387           m_sc.function = sc.function;
  387           m_sc.function = sc.function;
 1080     if (m_sc.function) {
 1088       if (m_sc.function->GetFrameBaseExpression().IsLocationList())
 1090             m_sc.function->GetAddressRange().GetBaseAddress().GetLoadAddress(
 1093       if (!m_sc.function->GetFrameBaseExpression().Evaluate(
 1118   if (!m_sc.function) {
 1125   return &m_sc.function->GetFrameBaseExpression();
 1228     if (sc.function) {
 1229       lang_type = sc.function->GetMangled().GuessLanguage();
 1600         if (!sc.function) {
 1603         CompilerType function_type = sc.function->GetCompilerType();
 1614             sc.function->GetName().AsCString("<unknown function>"));
 1875   assert(m_sc.function == nullptr || curr_frame.m_sc.function == nullptr ||
 1875   assert(m_sc.function == nullptr || curr_frame.m_sc.function == nullptr ||
 1876          m_sc.function == curr_frame.m_sc.function);
 1876          m_sc.function == curr_frame.m_sc.function);
tools/lldb/source/Target/StackFrameList.cpp
  364       prev_frame.GetSymbolContext(eSymbolContextFunction).function;
  370       next_frame.GetSymbolContext(eSymbolContextFunction).function;
  675               frame_sp->GetSymbolContext(eSymbolContextFunction).function;
tools/lldb/source/Target/StackID.cpp
   90     if (lhs_sc.function == rhs_sc.function && lhs_sc.function != nullptr &&
   90     if (lhs_sc.function == rhs_sc.function && lhs_sc.function != nullptr &&
   90     if (lhs_sc.function == rhs_sc.function && lhs_sc.function != nullptr &&
   91         lhs_sc.block != nullptr && rhs_sc.function != nullptr &&
tools/lldb/source/Target/Thread.cpp
 1668     if (/* DISABLES CODE */ (false) && sc.function != nullptr) {
 1669       Type *function_type = sc.function->GetType();
 1672             sc.function->GetCompilerType().GetFunctionReturnType();
 1739   target->GetImages().FindAddressesForLine(target_sp, file, line, sc.function,
tools/lldb/source/Target/ThreadPlanStepInRange.cpp
  266         if (sc.function) {
  267           func_start_address = sc.function->GetAddressRange().GetBaseAddress();
  271             bytes_to_skip = sc.function->GetPrologueByteSize();
tools/lldb/source/Target/ThreadPlanStepOut.cpp
  144       if (sc.function) {
  145         m_immediate_step_from_function = sc.function;
tools/lldb/source/Target/ThreadPlanStepOverRange.cpp
  110     if (m_addr_context.function) {
  111       if (m_addr_context.function != context.function)
  111       if (m_addr_context.function != context.function)
  221               sc.function == m_addr_context.function) {
  221               sc.function == m_addr_context.function) {
  274                     if (next_line_function != m_addr_context.function)
tools/lldb/source/Target/ThreadPlanStepRange.cpp
  199   if (m_addr_context.function != nullptr) {
  200     return m_addr_context.function->GetAddressRange().ContainsLoadAddress(