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:
Orgad Shaneh
2015-06-22 08:00:47 +03:00
committed by Orgad Shaneh
parent 96f03dc09d
commit fc6480866c
2 changed files with 2 additions and 2 deletions

View File

@@ -4221,7 +4221,7 @@ void GdbEngine::startGdb(const QStringList &args)
postCommand("python from gdbbridge import *", flags);
const QString path = stringSetting(ExtraDumperFile);
if (!path.isEmpty()) {
if (!path.isEmpty() && QFileInfo(path).isReadable()) {
DebuggerCommand cmd("addDumperModule");
cmd.arg("path", path.toUtf8());
runCommand(cmd);

View File

@@ -291,7 +291,7 @@ void LldbEngine::startLldbStage2()
void LldbEngine::setupInferior()
{
const QString path = stringSetting(ExtraDumperFile);
if (!path.isEmpty()) {
if (!path.isEmpty() && QFileInfo(path).isReadable()) {
DebuggerCommand cmd("addDumperModule");
cmd.arg("path", path.toUtf8());
runCommand(cmd);