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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user