003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/bindings/interface
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
bindings
/
interface
/
📁
..
📄
SBAddress.i
(9.42 KB)
📄
SBAttachInfo.i
(1.91 KB)
📄
SBBlock.i
(6.2 KB)
📄
SBBreakpoint.i
(10.37 KB)
📄
SBBreakpointLocation.i
(3.78 KB)
📄
SBBreakpointName.i
(3.14 KB)
📄
SBBroadcaster.i
(1.66 KB)
📄
SBCommandInterpreter.i
(4.92 KB)
📄
SBCommandInterpreterRunOptions.i
(1.64 KB)
📄
SBCommandReturnObject.i
(2.83 KB)
📄
SBCommunication.i
(2.18 KB)
📄
SBCompileUnit.i
(4.2 KB)
📄
SBData.i
(11.97 KB)
📄
SBDebugger.i
(14.86 KB)
📄
SBDeclaration.i
(1.94 KB)
📄
SBEnvironment.i
(1.14 KB)
📄
SBError.i
(3.67 KB)
📄
SBEvent.i
(5.17 KB)
📄
SBExecutionContext.i
(1.51 KB)
📄
SBExpressionOptions.i
(5.52 KB)
📄
SBFile.i
(3.1 KB)
📄
SBFileSpec.i
(3.29 KB)
📄
SBFileSpecList.i
(928 B)
📄
SBFrame.i
(14.59 KB)
📄
SBFunction.i
(4.8 KB)
📄
SBHostOS.i
(1.21 KB)
📄
SBInstruction.i
(2.97 KB)
📄
SBInstructionList.i
(3.06 KB)
📄
SBLanguageRuntime.i
(611 B)
📄
SBLaunchInfo.i
(2.37 KB)
📄
SBLineEntry.i
(3.19 KB)
📄
SBListener.i
(2.99 KB)
📄
SBMemoryRegionInfo.i
(1.15 KB)
📄
SBMemoryRegionInfoList.i
(856 B)
📄
SBModule.i
(22.78 KB)
📄
SBModuleSpec.i
(3.03 KB)
📄
SBPlatform.i
(4.21 KB)
📄
SBProcess.i
(17.86 KB)
📄
SBProcessInfo.i
(1.16 KB)
📄
SBQueue.i
(1.51 KB)
📄
SBQueueItem.i
(963 B)
📄
SBReproducer.i
(643 B)
📄
SBSection.i
(4.78 KB)
📄
SBSourceManager.i
(2.5 KB)
📄
SBStream.i
(2.92 KB)
📄
SBStringList.i
(1.19 KB)
📄
SBStructuredData.i
(1.66 KB)
📄
SBSymbol.i
(3.23 KB)
📄
SBSymbolContext.i
(3.71 KB)
📄
SBSymbolContextList.i
(4.71 KB)
📄
SBTarget.i
(37.44 KB)
📄
SBThread.i
(18.06 KB)
📄
SBThreadCollection.i
(825 B)
📄
SBThreadPlan.i
(3.47 KB)
📄
SBTrace.i
(995 B)
📄
SBTraceOptions.i
(948 B)
📄
SBType.i
(14.14 KB)
📄
SBTypeCategory.i
(9.15 KB)
📄
SBTypeEnumMember.i
(2.53 KB)
📄
SBTypeFilter.i
(1.69 KB)
📄
SBTypeFormat.i
(1.69 KB)
📄
SBTypeNameSpecifier.i
(1.59 KB)
📄
SBTypeSummary.i
(2.66 KB)
📄
SBTypeSynthetic.i
(1.85 KB)
📄
SBUnixSignals.i
(1.71 KB)
📄
SBValue.i
(20.94 KB)
📄
SBValueList.i
(5.04 KB)
📄
SBVariablesOptions.i
(1.28 KB)
📄
SBWatchpoint.i
(2.2 KB)
Editing: SBCompileUnit.i
//===-- SWIG Interface for SBCompileUnit ------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// namespace lldb { %feature("docstring", "Represents a compilation unit, or compiled source file. SBCompileUnit supports line entry iteration. For example, # Now get the SBSymbolContext from this frame. We want everything. :-) context = frame0.GetSymbolContext(lldb.eSymbolContextEverything) ... compileUnit = context.GetCompileUnit() for lineEntry in compileUnit: print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()), lineEntry.GetLine())) print('start addr: %s' % str(lineEntry.GetStartAddress())) print('end addr: %s' % str(lineEntry.GetEndAddress())) produces: line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20 start addr: a.out[0x100000d98] end addr: a.out[0x100000da3] line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21 start addr: a.out[0x100000da3] end addr: a.out[0x100000da9] line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22 start addr: a.out[0x100000da9] end addr: a.out[0x100000db6] line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23 start addr: a.out[0x100000db6] end addr: a.out[0x100000dbc] ... See also SBSymbolContext and SBLineEntry" ) SBCompileUnit; class SBCompileUnit { public: SBCompileUnit (); SBCompileUnit (const lldb::SBCompileUnit &rhs); ~SBCompileUnit (); bool IsValid () const; explicit operator bool() const; lldb::SBFileSpec GetFileSpec () const; uint32_t GetNumLineEntries () const; lldb::SBLineEntry GetLineEntryAtIndex (uint32_t idx) const; uint32_t FindLineEntryIndex (uint32_t start_idx, uint32_t line, lldb::SBFileSpec *inline_file_spec) const; uint32_t FindLineEntryIndex (uint32_t start_idx, uint32_t line, lldb::SBFileSpec *inline_file_spec, bool exact) const; SBFileSpec GetSupportFileAtIndex (uint32_t idx) const; uint32_t GetNumSupportFiles () const; uint32_t FindSupportFileIndex (uint32_t start_idx, const SBFileSpec &sb_file, bool full); %feature("docstring", " Get all types matching type_mask from debug info in this compile unit. @param[in] type_mask A bitfield that consists of one or more bits logically OR'ed together from the lldb::TypeClass enumeration. This allows you to request only structure types, or only class, struct and union types. Passing in lldb::eTypeClassAny will return all types found in the debug information for this compile unit. @return A list of types in this compile unit that match type_mask") GetTypes; lldb::SBTypeList GetTypes (uint32_t type_mask = lldb::eTypeClassAny); lldb::LanguageType GetLanguage (); bool GetDescription (lldb::SBStream &description); bool operator == (const lldb::SBCompileUnit &rhs) const; bool operator != (const lldb::SBCompileUnit &rhs) const; STRING_EXTENSION(SBCompileUnit) #ifdef SWIGPYTHON %pythoncode %{ def __iter__(self): '''Iterate over all line entries in a lldb.SBCompileUnit object.''' return lldb_iter(self, 'GetNumLineEntries', 'GetLineEntryAtIndex') def __len__(self): '''Return the number of line entries in a lldb.SBCompileUnit object.''' return self.GetNumLineEntries() file = property(GetFileSpec, None, doc='''A read only property that returns the same result an lldb object that represents the source file (lldb.SBFileSpec) for the compile unit.''') num_line_entries = property(GetNumLineEntries, None, doc='''A read only property that returns the number of line entries in a compile unit as an integer.''') %} #endif }; } // namespace lldb
Upload File
Create Folder