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
This commit is contained in:
Jim Ingham
2011-09-08 22:13:49 +00:00
parent 7db8d697cf
commit b7f6b2fa3c
23 changed files with 261 additions and 165 deletions

View File

@@ -32,7 +32,7 @@
#include "lldb/API/SBAddress.h"
#include "lldb/API/SBFrame.h"
#include "lldb/API/SBSourceManager.h"
// DONT THINK THIS IS NECESSARY: #include "lldb/API/SBSourceManager.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/API/SBProcess.h"