forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user