Skip to content

Commit

Permalink
Update parsedump.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewc12 committed Oct 21, 2023
1 parent 8ab4db4 commit 6b2a0e1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contrib/windows/parsedump/parsedump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 6b2a0e1

Please sign in to comment.