mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add a dump mode to pddbdbg.py so we can just view records
helpful for manual debugging
This commit is contained in:
parent
b1966a2274
commit
23041ab1f1
1 changed files with 14 additions and 7 deletions
|
|
@ -145,6 +145,9 @@ def main():
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--loglevel", required=False, help="set logging level (INFO/DEBUG/WARNING/ERROR)", type=str, default="INFO",
|
"--loglevel", required=False, help="set logging level (INFO/DEBUG/WARNING/ERROR)", type=str, default="INFO",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--dump", required=False, help="Only dump the image, skip the automated CI checks", action="store_true"
|
||||||
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.name == None:
|
if args.name == None:
|
||||||
|
|
@ -261,14 +264,18 @@ def main():
|
||||||
#logging.info("listing {} keys".format(len(d2.keys)))
|
#logging.info("listing {} keys".format(len(d2.keys)))
|
||||||
#for key in d2.keys:
|
#for key in d2.keys:
|
||||||
# logging.info("{}".format(key))
|
# logging.info("{}".format(key))
|
||||||
|
if args.dump == False:
|
||||||
logging.info("CI checks:")
|
logging.info("CI checks:")
|
||||||
for bdict in basis_dicts.values():
|
for bdict in basis_dicts.values():
|
||||||
bdict.ci_check()
|
bdict.ci_check()
|
||||||
if found_all_dicts:
|
if found_all_dicts:
|
||||||
logging.info("All dicts were found.")
|
logging.info("All dicts were found.")
|
||||||
|
else:
|
||||||
|
logging.error("Missing dictionaries, something is wrong.")
|
||||||
else:
|
else:
|
||||||
logging.error("Missing dictionaries, something is wrong.")
|
for bdict in basis_dicts.values():
|
||||||
|
logging.info("==================================================================")
|
||||||
|
logging.info("Dict {}".format(bdict.as_str()))
|
||||||
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logging.error("couldn't decrypt basis root vpage @ {:x} ppage @ {:x}".format(VPAGE_SIZE, v2p_table[VPAGE_SIZE]))
|
logging.error("couldn't decrypt basis root vpage @ {:x} ppage @ {:x}".format(VPAGE_SIZE, v2p_table[VPAGE_SIZE]))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue