summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-09-08 22:13:49 +0000
committerJim Ingham <jingham@apple.com>2011-09-08 22:13:49 +0000
commitb7f6b2fa3c4a5162223850b28e63b5193159ae6d (patch)
treef51b13eb1e25bdab179c6b60e4caaf5b104b6136 /lldb/source/API/SBDebugger.cpp
parent7db8d697cf094ac586531d5500892e94a49ec537 (diff)
downloadbcm5719-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/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 70ca8b286db..be6873be414 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -360,7 +360,7 @@ SBDebugger::HandleProcessEvent (const SBProcess &process, const SBEvent &event,
SBSourceManager &
SBDebugger::GetSourceManager ()
{
- static SourceManager g_lldb_source_manager;
+ static SourceManager g_lldb_source_manager(NULL);
static SBSourceManager g_sb_source_manager (&g_lldb_source_manager);
return g_sb_source_manager;
}
OpenPOWER on IntegriCloud