diff options
author | Jim Ingham <jingham@apple.com> | 2011-09-08 22:13:49 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-09-08 22:13:49 +0000 |
commit | b7f6b2fa3c4a5162223850b28e63b5193159ae6d (patch) | |
tree | f51b13eb1e25bdab179c6b60e4caaf5b104b6136 /lldb/source/API/SBSourceManager.cpp | |
parent | 7db8d697cf094ac586531d5500892e94a49ec537 (diff) | |
download | bcm5719-llvm-b7f6b2fa3c4a5162223850b28e63b5193159ae6d.tar.gz bcm5719-llvm-b7f6b2fa3c4a5162223850b28e63b5193159ae6d.zip |
Move the SourceManager from the Debugger to the Target. That way it can store the per-Target default Source File & Line.
Set the default Source File & line to main (if it can be found.) at startup. Selecting the current thread & or frame resets
the current source file & line, and "source list" as well as the breakpoint command "break set -l <NUM>" will use the
current source file.
llvm-svn: 139323
Diffstat (limited to 'lldb/source/API/SBSourceManager.cpp')
-rw-r--r-- | lldb/source/API/SBSourceManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/API/SBSourceManager.cpp b/lldb/source/API/SBSourceManager.cpp index 16193dd027b..0fa98e35dea 100644 --- a/lldb/source/API/SBSourceManager.cpp +++ b/lldb/source/API/SBSourceManager.cpp @@ -61,8 +61,7 @@ SBSourceManager::DisplaySourceLinesWithLineNumbers if (file.IsValid()) { - return m_opaque_ptr->DisplaySourceLinesWithLineNumbers (NULL, - *file, + return m_opaque_ptr->DisplaySourceLinesWithLineNumbers (*file, line, context_before, context_after, |