Updated AvrGdbRsp debug server to use the provided register descriptors, instead of creating them

This commit is contained in:
Nav
2021-08-07 17:22:59 +01:00
parent d709c8aac9
commit 7ebc447344
6 changed files with 80 additions and 43 deletions

View File

@@ -67,5 +67,13 @@ namespace Bloom
std::unordered_map<TypeA, TypeB> getMap() {
return this->map;
}
void insert(const std::pair<TypeA, TypeB>& pair) {
auto insertResultPair = this->map.insert(pair);
this->flippedMap.insert(std::pair<TypeB, typename std::unordered_map<TypeA, TypeB>::iterator>(
pair.second,
insertResultPair.first
));
}
};
}