|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/lldb/source/API/SBFrame.cpp 179 frame->GetSymbolContext(eSymbolContextCompUnit).comp_unit);
tools/lldb/source/API/SBSymbolContext.cpp 87 SBCompileUnit(m_opaque_up ? m_opaque_up->comp_unit : nullptr));
144 ref().comp_unit = compile_unit.get();
tools/lldb/source/API/SBThread.cpp 883 if (frame_sc.comp_unit == nullptr) {
917 const uint32_t num_matches = frame_sc.comp_unit->ResolveSymbolContext(
tools/lldb/source/Breakpoint/Breakpoint.cpp 628 if (old_sc.comp_unit && new_sc.comp_unit &&
628 if (old_sc.comp_unit && new_sc.comp_unit &&
629 (old_sc.comp_unit == new_sc.comp_unit)) {
629 (old_sc.comp_unit == new_sc.comp_unit)) {
640 if (old_sc.comp_unit && new_sc.comp_unit) {
640 if (old_sc.comp_unit && new_sc.comp_unit) {
641 if (FileSpec::Equal(*old_sc.comp_unit, *new_sc.comp_unit, true)) {
641 if (FileSpec::Equal(*old_sc.comp_unit, *new_sc.comp_unit, true)) {
tools/lldb/source/Breakpoint/BreakpointLocation.cpp 525 if (sc.comp_unit != nullptr) {
528 static_cast<FileSpec *>(sc.comp_unit)->GetFilename().Dump(s);
tools/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp 104 CompileUnit *cu = context.comp_unit;
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp 315 if (!sc.comp_unit || !filter.CompUnitPasses(*sc.comp_unit))
315 if (!sc.comp_unit || !filter.CompUnitPasses(*sc.comp_unit))
tools/lldb/source/Commands/CommandCompletions.cpp 360 if (context.comp_unit != nullptr) {
362 FileSpecList supporting_files = context.comp_unit->GetSupportFiles();
381 const char *cur_file_name = context.comp_unit->GetFilename().GetCString();
382 const char *cur_dir_name = context.comp_unit->GetDirectory().GetCString();
394 m_matching_files.AppendIfUnique(context.comp_unit);
tools/lldb/source/Commands/CommandObjectSource.cpp 161 if (sc.comp_unit) {
163 CompileUnit *cu = sc.comp_unit;
1080 if (sc.comp_unit) {
1084 m_breakpoint_locations.Reset(*sc.comp_unit, 0, show_inlines);
1113 sc.comp_unit, sc.line_entry.line, column, lines_to_back_up,
1202 if (sc.comp_unit) {
1204 if (test_cu_spec != static_cast<FileSpec *>(sc.comp_unit))
1208 test_cu_spec = sc.comp_unit;
1222 if (sc.comp_unit) {
1225 m_breakpoint_locations.Reset(*sc.comp_unit, 0, show_inlines);
1236 sc.comp_unit, m_options.start_line, column,
tools/lldb/source/Commands/CommandObjectTarget.cpp 818 if (sc.comp_unit) {
820 sc.comp_unit->GetPath().c_str(),
826 } else if (sc.comp_unit) {
827 s.Printf("Global variables for %s\n", sc.comp_unit->GetPath().c_str());
916 if (sc.comp_unit) {
919 sc.comp_unit->GetVariableList(can_create));
984 if (sc.comp_unit) {
987 sc.comp_unit->GetVariableList(can_create));
1333 strm << "Line table for " << *static_cast<FileSpec *>(sc.comp_unit)
1335 LineTable *line_table = sc.comp_unit->GetLineTable();
tools/lldb/source/Commands/CommandObjectThread.cpp 1165 if (sc.comp_unit)
1166 line_table = sc.comp_unit->GetLineTable();
1201 start_idx_ptr = sc.comp_unit->FindLineEntry(
1202 start_idx_ptr, line_number, sc.comp_unit, exact, &line_entry);
tools/lldb/source/Core/Address.cpp 830 return sc.comp_unit;
tools/lldb/source/Core/AddressResolverFileLine.cpp 44 CompileUnit *cu = context.comp_unit;
tools/lldb/source/Core/Disassembler.cpp 555 if (sc != prev_sc && sc.comp_unit && sc.line_entry.IsValid()) {
tools/lldb/source/Core/FileLineResolver.cpp 37 CompileUnit *cu = context.comp_unit;
tools/lldb/source/Core/FormatEntity.cpp 1377 CompileUnit *cu = sc->comp_unit;
1388 CompileUnit *cu = sc->comp_unit;
tools/lldb/source/Core/Module.cpp 372 sc.comp_unit = symbols->GetCompileUnitAtIndex(cu_idx).get();
373 if (!sc.comp_unit)
378 symbols->ParseFunctions(*sc.comp_unit);
380 sc.comp_unit->ForeachFunction([&sc, &symbols](const FunctionSP &f) {
390 symbols->ParseTypes(*sc.comp_unit);
618 sc.comp_unit = GetCompileUnitAtIndex(i).get();
619 if (sc.comp_unit) {
620 if (FileSpec::Equal(*sc.comp_unit, path, compare_directory))
tools/lldb/source/Core/SearchFilter.cpp 297 if (context.comp_unit == nullptr) {
343 if (CompUnitPasses(*context.comp_unit)) {
344 SymbolContext matchingContext(m_target_sp, module_sp, context.comp_unit);
745 if (!sym_ctx.comp_unit) {
749 if (m_cu_spec_list.FindFileIndex(0, sym_ctx.comp_unit, false) == UINT32_MAX)
808 matchingContext.comp_unit = cu_sp.get();
809 if (matchingContext.comp_unit) {
810 if (m_cu_spec_list.FindFileIndex(0, *matchingContext.comp_unit,
tools/lldb/source/Core/SourceManager.cpp 406 if (sc.comp_unit) {
408 if (test_cu_spec != static_cast<FileSpec *>(sc.comp_unit))
412 test_cu_spec = sc.comp_unit;
419 m_file_spec = sc.comp_unit;
tools/lldb/source/Core/ValueObject.cpp 3259 if (CompileUnit *cu = sc.comp_unit)
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp 339 if (sc.comp_unit) {
343 *sc.comp_unit, modules_for_macros, error_stream);
365 if (sc.comp_unit && sc.line_entry.IsValid()) {
366 DebugMacros *dm = sc.comp_unit->GetDebugMacros();
369 AddMacros(dm, sc.comp_unit, state, debug_macros_stream);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp 368 if (sc.comp_unit) {
372 *sc.comp_unit, modules_for_macros, error_stream);
470 if (!sc.comp_unit)
475 for (const FileSpec &f : sc.comp_unit->GetSupportFiles())
479 sc.comp_unit->ForEachExternalModule([&files](lldb::ModuleSP module) {
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp 264 sc.comp_unit = GetCompileUnitAtIndex(idx).get();
267 if (sc.comp_unit->GetLineTable()->FindLineEntryByAddress(so_addr,
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 1290 symbol_context_scope = sc.comp_unit;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp 73 sc.comp_unit = m_dwarf.GetCompUnitForDWARFCompUnit(*this);
74 if (sc.comp_unit) {
78 if (LineTable *line_table = sc.comp_unit->GetLineTable()) {
99 sc.comp_unit = m_dwarf.GetCompUnitForDWARFCompUnit(*this);
100 if (sc.comp_unit) {
101 if (LineTable *line_table = sc.comp_unit->GetLineTable()) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 924 assert(sc.comp_unit);
925 DWARFUnit *dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
929 sc.comp_unit->GetLanguage()))
1494 sc.comp_unit =
1497 sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
1499 sc.function = ParseFunction(*sc.comp_unit, die);
1770 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
1771 if (sc.comp_unit) {
1781 sc.comp_unit->FindFunctionByUID(function_die.GetID()).get();
1783 sc.function = ParseFunction(*sc.comp_unit, function_die);
1815 LineTable *line_table = sc.comp_unit->GetLineTable();
1840 sc.comp_unit = nullptr;
1875 sc.comp_unit = dc_cu;
1882 sc.comp_unit->GetSupportFiles().FindFileIndex(1, file_spec, true);
1888 LineTable *line_table = sc.comp_unit->GetLineTable();
1894 file_idx = sc.comp_unit->GetSupportFiles().FindFileIndex(
1916 sc.comp_unit->FindFunctionByUID(function_die.GetID())
1920 ParseFunction(*sc.comp_unit, function_die);
2070 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
2155 sc.comp_unit = GetCompUnitForDWARFCompUnit(*dwarf_cu);
3024 child_sc.function = sc.comp_unit->FindFunctionByUID(die.GetID()).get();
3066 sc.comp_unit = &comp_unit;
3076 if (sc.comp_unit != nullptr) {
3094 } else if (sc.comp_unit) {
3095 DWARFUnit *dwarf_cu = info->GetUnitAtIndex(sc.comp_unit->GetID());
3101 VariableListSP variables(sc.comp_unit->GetVariableList(false));
3105 sc.comp_unit->SetVariableList(variables);
3177 decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(
3482 symbol_context_scope = sc.comp_unit;
3595 if (sc.comp_unit != nullptr) {
3596 variable_list_sp = sc.comp_unit->GetVariableList(false);
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp 489 return GetSymbolFile(*sc.comp_unit);
598 return GetCompUnitInfo(*sc.comp_unit);
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp 971 sc.comp_unit = GetOrCreateCompileUnit(*cci).get();
977 lldbassert(sc.comp_unit);
992 sc.function = GetOrCreateFunction(csid, *sc.comp_unit).get();
1007 lldbassert(sc.comp_unit);
1008 if (auto *line_table = sc.comp_unit->GetLineTable()) {
1235 sc.comp_unit = GetOrCreateCompileUnit(cci).get();
1237 sc.function = GetOrCreateFunction(func_id, *sc.comp_unit).get();
1481 lldbassert(sc.function || sc.comp_unit);
1498 if (sc.comp_unit) {
1499 variables = sc.comp_unit->GetVariableList(false);
1502 sc.comp_unit->SetVariableList(variables);
1504 return ParseVariablesForCompileUnit(*sc.comp_unit, *variables);
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp 504 if (!sc.comp_unit)
516 } else if (sc.comp_unit) {
517 auto compiland = GetPDBCompilandByUID(sc.comp_unit->GetID());
521 if (sc.comp_unit->GetVariableList(false))
532 if (cu_id == sc.comp_unit->GetID())
744 sc.comp_unit = cu_sp.get();
758 sc.function = sc.comp_unit->FindFunctionByUID(func_uid).get();
761 ParseCompileUnitFunctionForPDBFunc(*pdb_func, *sc.comp_unit);
778 if (auto *line_table = sc.comp_unit->GetLineTable()) {
825 sc.comp_unit = cu.get();
832 bool has_line_table = ParseCompileUnitLineTable(*sc.comp_unit, line);
848 auto *line_table = sc.comp_unit->GetLineTable();
871 sc.function = sc.comp_unit->FindFunctionByUID(func_uid).get();
876 *sc.comp_unit);
987 SymbolContextScope *context_scope = sc.comp_unit;
1048 assert(sc.comp_unit);
1051 if (sc.comp_unit) {
1052 local_variable_list_sp = sc.comp_unit->GetVariableList(false);
1055 sc.comp_unit->SetVariableList(local_variable_list_sp);
1129 sc.comp_unit = ParseCompileUnitForUID(GetCompilandId(*pdb_data)).get();
1131 if (sc.comp_unit == nullptr)
1168 sc.comp_unit = ParseCompileUnitForUID(GetCompilandId(*pdb_data)).get();
1170 if (sc.comp_unit == nullptr)
1182 sc.comp_unit = ParseCompileUnitForUID(pdb_func.getCompilandId()).get();
1183 if (!sc.comp_unit)
1185 sc.module_sp = sc.comp_unit->GetModule();
1186 sc.function = ParseCompileUnitFunctionForPDBFunc(pdb_func, *sc.comp_unit);
tools/lldb/source/Symbol/CompileUnit.cpp 48 sc->comp_unit = this;
253 sc.comp_unit = this;
256 LineTable *line_table = sc.comp_unit->GetLineTable();
tools/lldb/source/Symbol/SymbolContext.cpp 62 comp_unit = rhs.comp_unit;
62 comp_unit = rhs.comp_unit;
76 comp_unit = nullptr;
209 if (comp_unit != nullptr) {
211 comp_unit->GetDescription(s, level);
252 line_entry.GetDescription(s, level, comp_unit, target, false);
302 if (comp_unit)
330 *s << "CompileUnit = " << comp_unit;
331 if (comp_unit != nullptr)
332 *s << " {0x" << comp_unit->GetID() << "} "
333 << *(static_cast<FileSpec *>(comp_unit));
382 lhs.comp_unit == rhs.comp_unit &&
382 lhs.comp_unit == rhs.comp_unit &&
440 } else if (comp_unit &&
441 (lang = comp_unit->GetLanguage()) != eLanguageTypeUnknown) {
621 if (comp_unit != nullptr && !type_map.Empty()) {
626 if (scs && comp_unit == scs->CalculateSymbolContextCompileUnit())
731 line_index = comp_unit->FindLineEntry(line_index, line_entry.line, nullptr,
751 line_index = comp_unit->FindLineEntry(line_index, end_line, nullptr, false,
1055 if (sc.block == nullptr && sc.comp_unit == nullptr)
1073 if (!was_inlined && sc.comp_unit != nullptr) {
1074 if (!FileSpec::Equal(*(sc.comp_unit), *(m_file_spec_up.get()), false))
1232 sc.comp_unit == nullptr && sc.function == nullptr &&
tools/lldb/source/Symbol/Variable.cpp 86 if (variable_sc.comp_unit)
87 language = variable_sc.comp_unit->GetLanguage();
tools/lldb/source/Target/StackFrame.cpp 330 if (m_sc.comp_unit)
384 if ((resolved & eSymbolContextCompUnit) && m_sc.comp_unit == nullptr)
385 m_sc.comp_unit = sc.comp_unit;
385 m_sc.comp_unit = sc.comp_unit;
446 if (m_sc.comp_unit) {
448 m_sc.comp_unit->GetVariableList(true));
483 if (m_sc.comp_unit && get_file_globals) {
485 m_sc.comp_unit->GetVariableList(true));
1216 CompileUnit *cu = GetSymbolContext(eSymbolContextCompUnit).comp_unit;
1873 assert(m_sc.comp_unit == nullptr || curr_frame.m_sc.comp_unit == nullptr ||
1873 assert(m_sc.comp_unit == nullptr || curr_frame.m_sc.comp_unit == nullptr ||
1874 m_sc.comp_unit == curr_frame.m_sc.comp_unit);
1874 m_sc.comp_unit == curr_frame.m_sc.comp_unit);
1916 if (m_sc.comp_unit && m_sc.line_entry.IsValid()) {
tools/lldb/source/Target/ThreadPlanStepOverRange.cpp 107 if (m_addr_context.comp_unit) {
108 if (m_addr_context.comp_unit != context.comp_unit)
108 if (m_addr_context.comp_unit != context.comp_unit)
220 sc.comp_unit == m_addr_context.comp_unit &&
220 sc.comp_unit == m_addr_context.comp_unit &&
223 LineTable *line_table = m_addr_context.comp_unit->GetLineTable();
tools/lldb/unittests/Symbol/TestLineEntry.cpp 75 sc_comp_units[0].comp_unit->ResolveSymbolContext(