USB WDM driver debugging with softice

Hi, All:

I have a wdm usb driver to debug . I downloaded the softice and tried, but
failed.

  1. The nms file has been created;
  2. I opened it from SymbolLoader and start SoftICE.
  3. I use BPX command to set many breakpoints, but none of it stopped!

I think there were something I made wrong. I want your help, for example,
give the correct steps of debugging and how to see the debug information.

Any advice would be appreciated!

Thanks

Zhangxiaopeng

*******************************************
本邮件已经过垃圾邮件过滤,如发现垃圾
邮件,请转发至:xxxxx@zte.com.cn
*******************************************

> I think there were something I made wrong

I want your help, for example, give the correct steps
of debugging and how to see the debug information.

This seems that the NMS file is wrong or not loaded.

Try these steps:

  1. Try to enter the NMS file name into Winice.dat (in System32\drivers)

  2. Try to put a hardcoded breakpoint directly into your code
    For Soft-ICE, it is good to redefine the KdBreakPoint macro
    not to call DbgBreakpoint, but as inline int 3.

#if DBG
#ifdef KdBreakpoint
#undef KdBreakpoint
#endif
#define KdBreakpoint _asm int 3;
#else //DBG
#define KdBreakpoint() /* */
#endif

Then place a breakpoint into your code by inserting
KdBreakpoint

L.