Skip to content

Commit f6f4254

Browse files
Merge branch 'main' into outbound/svdTypesRestructure
2 parents 10d695c + 0bd3677 commit f6f4254

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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];

tools/svdconv/SVDModel/src/SvdItem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ bool SvdItem::ProcessXmlElement(XMLTreeElement* xmlElement)
235235
}
236236
else if(tag == "protection") {
237237
const auto svdLevel = GetSvdLevel();
238-
if(svdLevel == L_Device || svdLevel == L_Peripheral || svdLevel == L_Register || svdLevel == L_Cluster) {
238+
if(svdLevel == L_Device || svdLevel == L_Peripheral || svdLevel == L_Register || svdLevel == L_Cluster || svdLevel == L_AddressBlock) {
239239
if(!SvdUtils::ConvertProtectionStringType (value, m_protection, xmlElement->GetLineNumber())) {
240240
SvdUtils::CheckParseError(tag, value, xmlElement->GetLineNumber());
241241
}

0 commit comments

Comments
 (0)