diff options
author | Jim Ingham <jingham@apple.com> | 2011-09-13 00:29:56 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-09-13 00:29:56 +0000 |
commit | e37d605e7d3ff1b684962a006000dec601b7a1f6 (patch) | |
tree | 21b641dcb82cba66b8dbf55caf7ac09661e651d4 /lldb/source/API/SBDebugger.cpp | |
parent | d68a727bd04a0e6b8be1894ce01ee1aa93304411 (diff) | |
download | bcm5719-llvm-e37d605e7d3ff1b684962a006000dec601b7a1f6.tar.gz bcm5719-llvm-e37d605e7d3ff1b684962a006000dec601b7a1f6.zip |
SBSourceManager now gets the real source manager either from the Debugger or Target. Also, move the SourceManager file cache into the debugger
so it can be shared amongst the targets.
llvm-svn: 139564
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index be6873be414..d0687261e83 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -357,12 +357,11 @@ SBDebugger::HandleProcessEvent (const SBProcess &process, const SBEvent &event, } } -SBSourceManager & +SBSourceManager SBDebugger::GetSourceManager () { - static SourceManager g_lldb_source_manager(NULL); - static SBSourceManager g_sb_source_manager (&g_lldb_source_manager); - return g_sb_source_manager; + SBSourceManager sb_source_manager (*this); + return sb_source_manager; } |