阅读:3420回复:7
如何用softice中断显卡的driverentry例程?
我用ddk提供的例子驱动改了一个显卡驱动,与大家预料的一样,他不干活,我现在想知道他是在哪里出的问题,我想用softice来监视他,可是必须重新启动才可以加载,可是重新启动后在softice中设的断点又没有了。另外显卡驱动是不是在softice装载之前就加载了?
|
|
最新喜欢:![]()
|
沙发#
发布于:2002-02-06 09:36
1.Install the NMS files.
2.When SICE starts,\"Ctrl+D\" to BPX the point(s). |
|
|
板凳#
发布于:2002-02-07 11:07
1.在DriverEntry中加入
__asm { int 3 } 重新build; 2.用symbol loader生成.nms文件,再将生成的.nms加入到symbol中 这样重启时softice便会拦住并停在DriverEntry,然后你就可以随便加你的断点了。 |
|
|
地板#
发布于:2002-02-07 11:09
随便问一下,你作的是什么显卡,改的是哪个程序呀,有空交流交流。
|
|
|
地下室#
发布于:2002-02-08 09:11
多谢啊!我一直是用的ds,在里面用ASSERT来中断的。一直想知道在DDK的程序里面怎么做,到今天才知道。
:D |
|
|
5楼#
发布于:2002-02-11 10:14
直接改可执行文件,插入 int 3 岂不更好.机器码是 cc .
|
|
6楼#
发布于:2002-02-11 11:11
In softice symbol loader -> edit -> setting -> general, set \"bpx DriverEntry;\" before \"x;\", and your DriverEntry routine will be intercepted. Of course, you must load the driver symbol in advance. Use debug_build for your driver, convert the .pdb file into .nms in softice, and add the symbol file into symbol loader -> edit -> setting -> symbols -> add.... That\'s it.
Good luck ;) My two cents..... |
|
7楼#
发布于:2002-02-15 23:16
Excellent! Thanks for your good solution - very easy, very useful :)
|
|
|