Warning: The magic method Math_Captcha::__wakeup() must have public visibility in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/includes/class-cookie-session.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/includes/class-cookie-session.php on line 49

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/includes/class-cookie-session.php on line 49

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/includes/class-cookie-session.php on line 49

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/includes/class-cookie-session.php on line 49

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/includes/class-cookie-session.php on line 49

Warning: Undefined array key "action" in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-recentcomments/core.php on line 7

Warning: Undefined array key "action" in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-recentcomments/core.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Robots.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog.gotocoding.com/wp-content/plugins/wp-math-captcha/wp-math-captcha.php:87) in /home/wwwroot/blog.gotocoding.com/wp-includes/feed-rss2.php on line 8
windbg | 重归混沌的BLOG https://blog.gotocoding.com 师法天地, 道法自然 Sat, 11 Mar 2017 06:21:47 +0000 zh-Hans hourly 1 https://wordpress.org/?v=6.9 windbg与虚拟机双机联调笔记 https://blog.gotocoding.com/archives/73?utm_source=rss&utm_medium=rss&utm_campaign=windbg%25e4%25b8%258e%25e8%2599%259a%25e6%258b%259f%25e6%259c%25ba%25e5%258f%258c%25e6%259c%25ba%25e8%2581%2594%25e8%25b0%2583%25e7%25ac%2594%25e8%25ae%25b0 https://blog.gotocoding.com/archives/73#respond Sat, 21 May 2011 22:54:00 +0000 http://localhost/wordpress/?p=63 阅读更多]]> 折腾了好几天,终于把双机联调给弄成功了,把参数与步骤放在这里,希望对与我一样的人有点帮助!

1.首先,安装windbg,并把它的快捷方式发送到桌面上并把中的内容改为:

D:/WinDDK/7600.16385.1/Debuggers/windbg.exe -b -k com:pipe,port=//./pipe/com_1,resets=0

然后点file->symbols file path,打开如下对话框

在里面输入上“srv*c:/symbols*http://msdl.microsoft.com/download/symbols;自已的工程路径”(以分号隔开);

2.然后点file->source file path会出现如下对话框

3.在其中输入要调试的源码文件所在的路径

然后点file->image file path会出现如下对话框

4.输入驱动文件的生成路径!

最后设置windows环境变量(不设环境变量有时会出现错误,可能我的设置有些问题)

变量名如上,变量值与Windbg中的第一个值一样也是“ srv*c:/symbols*http://msdl.microsoft.com/download/symbols”

5.最后为虚拟机设置串口

虚拟串口如上。

6.进入虚拟机系统

右键我的电脑->属性

 

在如下位置单击设置

 

 

 

 

进入如下输入并单击编辑

 

会打开boot.ini文件,拷入以下代码:

 [boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)/WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)/WINDOWS=”Microsoft Windows XP Professional” /noexecute=optin /fastdetect /noguiboot
multi(0)disk(0)rdisk(0)partition(1)/WINDOWS=”Microsoft Windows XP Professional” /noexecute=optin /fastdetect /debug /debugport=com1 /baudrate=115200 /noguiboot

保存重启即可!

7.重启动在虚拟机中选择调试模式引导

然后打开windbg

在出现一如下界面

 

 

依次在”kd>”中输入.!smy noisy

.sympath+ srv*c:/symbols*http://msdl.microsoft.com/download/symbols

.reload /f

来更新符号包,这时windbg会从网上下载符号包,windbg会表现出死机一样的现象,但不能关闭!可能一次会更新不完,有可能需要多次更新!

8.在最后调试时

使用“SRVINSTW_内核驱动安装.EXE”工具或“driver studio”附带的工具”driver monitor”时一定要先把生成的驱动文件拷到C:/windows/system32/drivers后再使用

 

“SRVINSTW_内核驱动安装.EXE”工具安装服务(目标文件要选择拷到C:/windows/system32/drivers目录下的我们自己的驱动文件),才会成功安装!要不然使用“net start 服务名”时会出现找不到路径!

]]>
https://blog.gotocoding.com/archives/73/feed 0