Quantcast
Channel: Python extension for WinDbg
Viewing all articles
Browse latest Browse all 1625

Commented Issue: How to use getParams()? [12739]

$
0
0
I'm trying to implement a multi-load breakpoint script, which is called like this:

sxe -c"!py loadModule.py comctl32 comdlg32 clr mscorwks" ld

However, I can't get the parameters working:

from pykd import *
event = lastEvent()
if event != eventType.LoadModule:
go()
details = dbgCommand(".lastevent")
# remove the debugger time
details = details.split("\n")[0]
# get everything behind "Load module"
details = details.split("Load module ")[1]
# remove address
details = details.split(" at ")[0]
# remove full path
details = details.split("\\")[-1]
# remove extension
details = ".".join(details.split(".")[0:-1])
prm = getParams()
if details in prm:
breakin()
go()

The problem is in the line "if details in prm"

SymbolException: pyDia: Call IDiaSession::findSymbolByRVAEx failed
Return value is 0x1: S_FALSE

How can I access the paramters (prm) in order to compare it with the module name (details)?
Comments: ** Comment from web user: kernelnet **

You are lucky :) Two bugs found and fixed :)


Viewing all articles
Browse latest Browse all 1625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>