Debugger: Support core input in custom thread names

GDB doesn't provide thread-core on core dump debugging.

Give the user the option provide it.

Change-Id: I15eae0280243ce307b9045be33e4b28e9b9c64d0
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2018-09-16 12:38:29 +03:00
committed by Orgad Shaneh
parent 296ae92853
commit c83b5afa9b

View File

@@ -3031,6 +3031,8 @@ void GdbEngine::handleThreadNames(const DebuggerResponse &response)
for (const GdbMi &name : names.children()) {
ThreadData thread;
thread.id = name["id"].data();
// Core is unavailable in core dump. Allow the user to provide it.
thread.core = name["core"].data();
thread.name = decodeData(name["value"].data(), name["valueencoded"].data());
handler->updateThread(thread);
}