forked from qt-creator/qt-creator
Debugger: Fix fetching memory
Do not dereference function parameter in async callback. Change-Id: I9a6cebdc59579f230a5f570969c9cd1c6417edfc Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1452,7 +1452,7 @@ void CdbEngine::fetchMemory(MemoryAgent *agent, quint64 address, quint64 length)
|
||||
StringInputStream str(args);
|
||||
str << address << ' ' << length;
|
||||
cmd.args = args;
|
||||
cmd.callback = [&](const DebuggerResponse &response) {
|
||||
cmd.callback = [=] (const DebuggerResponse &response) {
|
||||
if (!agent)
|
||||
return;
|
||||
if (response.resultClass == ResultDone) {
|
||||
|
||||
Reference in New Issue
Block a user