forked from qt-creator/qt-creator
Debugger: Replace the QVariant callback cookies by direct parameters
Lambda makes it possible. Change-Id: I26a4df71dcd24b76a4f0d6d67545b2e1c6ba2412 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -39,8 +39,6 @@
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
|
||||
#define CB(callback) [this](const DebuggerResponse &r) { callback(r); }
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// AttachGdbAdapter
|
||||
@@ -69,7 +67,8 @@ void GdbAttachEngine::setupInferior()
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state());
|
||||
const qint64 pid = startParameters().attachPID;
|
||||
postCommand("attach " + QByteArray::number(pid), CB(handleAttach));
|
||||
postCommand("attach " + QByteArray::number(pid), NoFlags,
|
||||
[this](const DebuggerResponse &r) { handleAttach(r); });
|
||||
// Task 254674 does not want to remove them
|
||||
//qq->breakHandler()->removeAllBreakpoints();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user