Hi all, Is there a way to compare two UNICODE_STRING structs using WINDBG command? I want to make it into conditional breakpoint command.
Thanks!
Hi all, Is there a way to compare two UNICODE_STRING structs using WINDBG command? I want to make it into conditional breakpoint command.
Thanks!
There may very well be such a function, though I do not know of one.
However, you could use ‘c,’ which is basically windbg’s/kd’s version of
memcmp. You’d have to extract the length from UNICODE_STRING::Length and
use that to form the range.
Good luck,
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of 007xgen@163.com
Sent: Tuesday, March 29, 2011 7:59 AM
To: Kernel Debugging Interest List
Subject: [windbg] Comparing two UNICODE_STRING structs
Hi all, Is there a way to compare two UNICODE_STRING structs using WINDBG
command? I want to make it into conditional breakpoint command.
Thanks!
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Is the “c” command actually scriptable as part of an expression or does it
just output to the command window what’s different?
I don’t think there’s anything built in to do unicode string compares either
though.
-scott
–
Scott Noone
Consulting Associate and Chief System Problem Analyst
OSR Open Systems Resources, Inc.
http://www.osronline.com
“Martin O’Brien” wrote in message news:xxxxx@windbg…
There may very well be such a function, though I do not know of one.
However, you could use ‘c,’ which is basically windbg’s/kd’s version of
memcmp. You’d have to extract the length from UNICODE_STRING::Length and
use that to form the range.
Good luck,
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of 007xgen@163.com
Sent: Tuesday, March 29, 2011 7:59 AM
To: Kernel Debugging Interest List
Subject: [windbg] Comparing two UNICODE_STRING structs
Hi all, Is there a way to compare two UNICODE_STRING structs using WINDBG
command? I want to make it into conditional breakpoint command.
Thanks!
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
http://social.msdn.microsoft.com/Forums/en/windbg/thread/f998bf93-026d-4803-a067-49f98dbc4e03
On Tue, Mar 29, 2011 at 2:59 PM, <007xgen@163.com> wrote:
Hi all, Is there a way to compare two UNICODE_STRING structs using WINDBG
command? I want to make it into conditional breakpoint command.Thanks!
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarsTo unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer