From 6b2a0e184094750a448352f801757c7f69b14714 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Sat, 21 Oct 2023 12:34:48 +0800 Subject: [PATCH] Update parsedump.py --- contrib/windows/parsedump/parsedump.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/contrib/windows/parsedump/parsedump.py b/contrib/windows/parsedump/parsedump.py index 3571b87971e7..f18cabf8380f 100644 --- a/contrib/windows/parsedump/parsedump.py +++ b/contrib/windows/parsedump/parsedump.py @@ -64,10 +64,24 @@ def find_zfs(): zfs = find_zfs() +if zfs: + print(zfs) +else: + print("zfs not found.") + exit() + + dumpfilestr = "C:\\Windows\\MEMORY.DMP" symbolstr = "srv*;" + str(zfs / "symbols") + "\\;" + +def quote(string): + return '"' + string + '"' + + +print(" ".join(["cdb command", quote(str(cdb)), "-z", quote(dumpfilestr), "-y", quote(symbolstr)])) + def run(arg): result = subprocess.run( [str(cdb), "-z", dumpfilestr, "-c", arg, "-y", symbolstr],