forked from qt-creator/qt-creator
Debugger: Do not try to load unreadable extra dumpers file
It aborts the debugger. Change-Id: Ia926825f658b492fa7ac738a79027186c9dd7386 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
96f03dc09d
commit
fc6480866c
@@ -4221,7 +4221,7 @@ void GdbEngine::startGdb(const QStringList &args)
|
|||||||
postCommand("python from gdbbridge import *", flags);
|
postCommand("python from gdbbridge import *", flags);
|
||||||
|
|
||||||
const QString path = stringSetting(ExtraDumperFile);
|
const QString path = stringSetting(ExtraDumperFile);
|
||||||
if (!path.isEmpty()) {
|
if (!path.isEmpty() && QFileInfo(path).isReadable()) {
|
||||||
DebuggerCommand cmd("addDumperModule");
|
DebuggerCommand cmd("addDumperModule");
|
||||||
cmd.arg("path", path.toUtf8());
|
cmd.arg("path", path.toUtf8());
|
||||||
runCommand(cmd);
|
runCommand(cmd);
|
||||||
|
@@ -291,7 +291,7 @@ void LldbEngine::startLldbStage2()
|
|||||||
void LldbEngine::setupInferior()
|
void LldbEngine::setupInferior()
|
||||||
{
|
{
|
||||||
const QString path = stringSetting(ExtraDumperFile);
|
const QString path = stringSetting(ExtraDumperFile);
|
||||||
if (!path.isEmpty()) {
|
if (!path.isEmpty() && QFileInfo(path).isReadable()) {
|
||||||
DebuggerCommand cmd("addDumperModule");
|
DebuggerCommand cmd("addDumperModule");
|
||||||
cmd.arg("path", path.toUtf8());
|
cmd.arg("path", path.toUtf8());
|
||||||
runCommand(cmd);
|
runCommand(cmd);
|
||||||
|
Reference in New Issue
Block a user