Commit fc648086 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Debugger: Do not try to load unreadable extra dumpers file

It aborts the debugger.

Change-Id: Ia926825f658b492fa7ac738a79027186c9dd7386
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 96f03dc0
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment