Debugger: Fix loading of Linux core files with LLDB

Change-Id: I76183591c5242589c25d8e5695367d61b6cc5afc
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
hjk
2015-02-27 11:56:03 +01:00
parent 6e7f07c37a
commit eb44cfc00a
4 changed files with 48 additions and 18 deletions

View File

@@ -574,16 +574,18 @@ void DebuggerEngine::gotoLocation(const Location &loc)
{
d->resetLocation();
if ((hasCapability(OperateByInstructionCapability) &&
boolSetting(OperateByInstruction)) || !loc.hasDebugInfo()) {
if (loc.canBeDisassembled()
&& ((hasCapability(OperateByInstructionCapability) && boolSetting(OperateByInstruction))
|| !loc.hasDebugInfo()) )
{
d->m_disassemblerAgent.setLocation(loc);
return;
}
// CDB might hit on breakpoints while shutting down.
//if (m_shuttingDown)
// return;
if (loc.fileName().isEmpty()) {
showMessage(QLatin1String("CANNOT GO TO THIS LOCATION"));
return;
}
const QString file = QDir::cleanPath(loc.fileName());
const int line = loc.lineNumber();
bool newEditor = false;