forked from qt-creator/qt-creator
Debugger: Fall back to assembler in LLDB
... if source file does not exist. This is the same logic as for GDB now. Change-Id: I3e5a3273b571658b4dd4200c9b3a0e9542a16015 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -1176,15 +1176,16 @@ void LldbEngine::refreshState(const GdbMi &reportedState)
|
||||
|
||||
void LldbEngine::refreshLocation(const GdbMi &reportedLocation)
|
||||
{
|
||||
if (boolSetting(OperateByInstruction)) {
|
||||
Location loc(reportedLocation["addr"].toAddress());
|
||||
qulonglong addr = reportedLocation["addr"].toAddress();
|
||||
QString file = reportedLocation["file"].toUtf8();
|
||||
int line = reportedLocation["line"].toInt();
|
||||
Location loc = Location(file, line);
|
||||
if (boolSetting(OperateByInstruction) || !QFileInfo::exists(file) || line <= 0) {
|
||||
loc = Location(addr);
|
||||
loc.setNeedsMarker(true);
|
||||
gotoLocation(loc);
|
||||
} else {
|
||||
QString file = reportedLocation["file"].toUtf8();
|
||||
int line = reportedLocation["line"].toInt();
|
||||
gotoLocation(Location(file, line));
|
||||
loc.setUseAssembler(true);
|
||||
}
|
||||
gotoLocation(loc);
|
||||
}
|
||||
|
||||
void LldbEngine::reloadRegisters()
|
||||
|
||||
Reference in New Issue
Block a user