From 49710e7484e3ffcd01a995da0e7392b4dfc3a745 Mon Sep 17 00:00:00 2001 From: Nav Date: Wed, 9 Feb 2022 17:44:58 +0000 Subject: [PATCH] New shutdownPostDebugSession config parameter --- src/ProjectConfig.cpp | 3 +++ src/ProjectConfig.hpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/ProjectConfig.cpp b/src/ProjectConfig.cpp index 128d9052..e71bcdb6 100644 --- a/src/ProjectConfig.cpp +++ b/src/ProjectConfig.cpp @@ -61,6 +61,9 @@ namespace Bloom } this->name = std::move(name); + this->shutdownPostDebugSession = jsonObject.value( + "shutdownPostDebugSession" + ).toBool(this->shutdownPostDebugSession); this->debugToolConfig = DebugToolConfig(jsonObject.find("debugTool")->toObject()); this->targetConfig = TargetConfig(jsonObject.find("target")->toObject()); diff --git a/src/ProjectConfig.hpp b/src/ProjectConfig.hpp index 85877c7c..e30e0de3 100644 --- a/src/ProjectConfig.hpp +++ b/src/ProjectConfig.hpp @@ -148,6 +148,11 @@ namespace Bloom */ std::string name; + /** + * Flag to determine whether Bloom should shutdown at the end of a debug session. + */ + bool shutdownPostDebugSession = false; + /** * Configuration for the environment's selected debug tool. *