forked from qt-creator/qt-creator
Merge branch 'debugintegration'
Conflicts: src/plugins/qmlprojectmanager/qmlproject.cpp src/plugins/qmlprojectmanager/qmlproject.h
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#include "gdboptionspage.h"
|
||||
#include "trkoptions.h"
|
||||
#include "trkoptionspage.h"
|
||||
#include "debugger/debuggeruiswitcher.h"
|
||||
#include "debugger/debuggermainwindow.h"
|
||||
|
||||
#include "attachgdbadapter.h"
|
||||
#include "coregdbadapter.h"
|
||||
@@ -210,7 +212,7 @@ DebuggerStartMode GdbEngine::startMode() const
|
||||
|
||||
QMainWindow *GdbEngine::mainWindow() const
|
||||
{
|
||||
return m_manager->mainWindow();
|
||||
return DebuggerUISwitcher::instance()->mainWindow();
|
||||
}
|
||||
|
||||
GdbEngine::~GdbEngine()
|
||||
@@ -3740,7 +3742,7 @@ void GdbEngine::handleFetchDisassemblerByLine(const GdbResponse &response)
|
||||
} else {
|
||||
// Can happen e.g. for initializer list on symbian/rvct where
|
||||
// we get a file name and line number but where the 'fully
|
||||
// disassembled function' does not cover the code in the
|
||||
// disassembled function' does not cover the code in the
|
||||
// initializer list. Fall back needed:
|
||||
//fetchDisassemblerByAddress(ac.agent, true);
|
||||
fetchDisassemblerByCli(ac.agent, true);
|
||||
@@ -3749,7 +3751,7 @@ void GdbEngine::handleFetchDisassemblerByLine(const GdbResponse &response)
|
||||
} else {
|
||||
// 536^error,msg="mi_cmd_disassemble: Invalid line number"
|
||||
QByteArray msg = response.data.findChild("msg").data();
|
||||
if (msg == "mi_cmd_disassemble: Invalid line number"
|
||||
if (msg == "mi_cmd_disassemble: Invalid line number"
|
||||
|| msg.startsWith("Cannot access memory at address"))
|
||||
fetchDisassemblerByAddress(ac.agent, true);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user