Skip to content

Commit 0bd3677

Browse files
grasci-armbrondani
andauthored
[projmgr] Skip dbgconf output when not provided by user nor by DFP (Open-CMSIS-Pack#2009)
Address Open-CMSIS-Pack#2004 Co-authored-by: Daniel Brondani <daniel.brondani@arm.com>
1 parent c2eb303 commit 0bd3677

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/projmgr/src/ProjMgrCbuild.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ void ProjMgrCbuild::SetDebugConfigNode(YAML::Node node, const ContextItem* conte
159159
map<string, StrVec> dbgconfList;
160160
for (const auto& debugger : context->debuggers) {
161161
string dbgconf = debugger.dbgconf.empty() ? context->dbgconf.first : debugger.dbgconf;
162-
CollectionUtils::PushBackUniquely(dbgconfList[dbgconf], debugger.name);
162+
if (!dbgconf.empty()) {
163+
CollectionUtils::PushBackUniquely(dbgconfList[dbgconf], debugger.name);
164+
}
163165
}
164166
if (dbgconfList.empty() && !context->dbgconf.first.empty()) {
165167
dbgconfList[context->dbgconf.first];

0 commit comments

Comments
 (0)