Debug: remove lxml dependency, pickle SVD tree for faster processing. (#909)

* Debug: remove lxml dependency, pickle SVD tree for faster processing.
* Debug: remove unused import in svd.py
This commit is contained in:
あく
2021-12-17 04:28:51 +03:00
committed by GitHub
parent 4013da5b59
commit e109e2e3e8
6 changed files with 624 additions and 35 deletions

View File

@@ -23,6 +23,7 @@ import sys
import struct
import pkg_resources
import fnmatch
import traceback
from .svd import SVDFile
@@ -99,6 +100,7 @@ class LoadSVD(gdb.Command):
try:
SVD(SVDFile(f))
except Exception as e:
traceback.print_exc()
raise gdb.GdbError("Could not load SVD file {} : {}...\n".format(f, e))