Debugger: Support piping dumpers into gdb

This allows using dumpers available on the host being used from
remotely running gdb. No lldb/cdb yet.

Task-number: QTCREATORBUG-29000
Task-number: QTCREATORBUG-16246
Change-Id: Ib1a40a8c0284dcf41e8800d70ca3e632c699b2fa
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-04-03 18:46:43 +02:00
parent 808f5c0e1d
commit de546ff3ec
12 changed files with 80 additions and 37 deletions

View File

@@ -219,7 +219,8 @@ void LldbEngine::handleLldbStarted()
const DebuggerRunParameters &rp = runParameters();
executeCommand("script sys.path.insert(1, '" + rp.dumperPath.path() + "')");
QString dumperPath = ICore::resourcePath("debugger").path();
executeCommand("script sys.path.insert(1, '" + dumperPath + "')");
// This triggers reportState("enginesetupok") or "enginesetupfailed":
executeCommand("script from lldbbridge import *");