scylla-gdb.py: unordered_map: improve flat_hash_map matching

Strip typedefs from the type before matching.
This commit is contained in:
Botond Dénes
2024-10-02 10:27:57 -04:00
parent 06793978c1
commit 3ec8ef90fe

View File

@@ -651,7 +651,7 @@ class absl_container:
def unordered_map(ref):
if ref.type.name.startswith('flat_hash_map'):
if ref.type.strip_typedefs().name.startswith('flat_hash_map'):
try:
return flat_hash_map(ref)
except gdb.error: