Is there any way to parse the output of WinDbg and set a "trigger" on a specific line of output? I mean - executing a line of WinDbg script / pykd script when a specific line of output appears.
I've tried performing this using WinDbg scripting, but I was unsuccessful.
If you want to control the debugger using
OutputDebugString(), then have a look at.ocommand.Otherwise I'm not aware of something that could directly achieve what you want. You could write a PyKD script that runs forever and emulates the command prompt. You could then use
dbgCommand()to execute the command and get the result back as a string. Forward it to the output and analyze it in order to run a script.