Files
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
libcxxabi
libunwind
lld
lldb
cmake
docs
examples
include
lit
lldb.xcodeproj
lldb.xcworkspace
packages
resources
scripts
Python
Xcode
interface
SBAddress.i
SBAttachInfo.i
SBBlock.i
SBBreakpoint.i
SBBreakpointLocation.i
SBBreakpointName.i
SBBroadcaster.i
SBCommandInterpreter.i
SBCommandReturnObject.i
SBCommunication.i
SBCompileUnit.i
SBData.i
SBDebugger.i
SBDeclaration.i
SBError.i
SBEvent.i
SBExecutionContext.i
SBExpressionOptions.i
SBFileSpec.i
SBFileSpecList.i
SBFrame.i
SBFunction.i
SBHostOS.i
SBInstruction.i
SBInstructionList.i
SBLanguageRuntime.i
SBLaunchInfo.i
SBLineEntry.i
SBListener.i
SBMemoryRegionInfo.i
SBMemoryRegionInfoList.i
SBModule.i
SBModuleSpec.i
SBPlatform.i
SBProcess.i
SBProcessInfo.i
SBQueue.i
SBQueueItem.i
SBSection.i
SBSourceManager.i
SBStream.i
SBStringList.i
SBStructuredData.i
SBSymbol.i
SBSymbolContext.i
SBSymbolContextList.i
SBTarget.i
SBThread.i
SBThreadCollection.i
SBThreadPlan.i
SBTrace.i
SBTraceOptions.i
SBType.i
SBTypeCategory.i
SBTypeEnumMember.i
SBTypeFilter.i
SBTypeFormat.i
SBTypeNameSpecifier.i
SBTypeSummary.i
SBTypeSynthetic.i
SBUnixSignals.i
SBValue.i
SBValueList.i
SBVariablesOptions.i
SBWatchpoint.i
swig_bot_lib
CMakeLists.txt
analyze-project-deps.py
build-lldb-llvm-clang
buildbot.py
checkpoint-llvm.pl
disasm-gdb-remote.pl
finish-swig-wrapper-classes.sh
finishSwigWrapperClasses.py
framework-header-fix.sh
generate-vers.pl
get_relative_lib_dir.py
install-lldb.sh
install_custom_python.py
lldb.swig
prepare_bindings.py
sed-sources
shush
swig_bot.py
use_lldb_suite.py
utilsArgsParse.py
utilsDebug.py
utilsOsType.py
verify_api.py
source
third_party
tools
unittests
utils
www
.arcconfig
.clang-format
.gitignore
CMakeLists.txt
CODE_OWNERS.txt
INSTALL.txt
LICENSE.TXT
use_lldb_suite_root.py
llvm
openmp
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
linux-packaging-mono/external/llvm-project/lldb/scripts/interface/SBSourceManager.i
Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

62 lines
2.5 KiB
C++

//===-- SWIG Interface for SBSourceManager ----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
namespace lldb {
%feature("docstring",
"Represents a central authority for displaying source code.
For example (from test/source-manager/TestSourceManager.py),
# Create the filespec for 'main.c'.
filespec = lldb.SBFileSpec('main.c', False)
source_mgr = self.dbg.GetSourceManager()
# Use a string stream as the destination.
stream = lldb.SBStream()
source_mgr.DisplaySourceLinesWithLineNumbers(filespec,
self.line,
2, # context before
2, # context after
'=>', # prefix for current line
stream)
# 2
# 3 int main(int argc, char const *argv[]) {
# => 4 printf('Hello world.\\n'); // Set break point at this line.
# 5 return 0;
# 6 }
self.expect(stream.GetData(), 'Source code displayed correctly',
exe=False,
patterns = ['=> %d.*Hello world' % self.line])
") SBSourceManager;
class SBSourceManager
{
public:
SBSourceManager (const lldb::SBSourceManager &rhs);
~SBSourceManager();
size_t
DisplaySourceLinesWithLineNumbers (const lldb::SBFileSpec &file,
uint32_t line,
uint32_t context_before,
uint32_t context_after,
const char* current_line_cstr,
lldb::SBStream &s);
size_t
DisplaySourceLinesWithLineNumbersAndColumn (const lldb::SBFileSpec &file,
uint32_t line, uint32_t column,
uint32_t context_before,
uint32_t context_after,
const char* current_line_cstr,
lldb::SBStream &s);
};
} // namespace lldb