zoukankan      html  css  js  c++  java
  • WinDBG双机调试之Vista Boot Config 设置,高手勿进.

    作 者: xzchina
    时 间: 2006-12-08 13:39
    链 接: http://bbs.pediy.com/showthread.php?threadid=36107

    声明:我是菜鸟,还请大侠多多指教.
    vista没有和win2k/xp一样的boot.ini文件,必须用bcdedit来设置启动信息.
    在默认的用户下是没有权限改变Boot Config的,必须把现在的用户删除,激活
    管理员帐号,重启电脑,系统会自动以管理员的身份登录.

    第一步.我们先查看一下当前的用户设置:
    命令为:
    bcdedit
     

    第二步.然后我们设置端口,COM1 ,每秒位数:115200,也可以用1394或者USB,
    这里以COM1为例:
    命令为:
    bcdedit /dbgsettings {serial [baudrate:value][debugport:value] |
    1394 [channel:value] | usb }
     

    第三步. 复制一个开机选项
    命令为:
    bcdedit /copy {current} /d DebugEntry
    DebugEntry为选项名称, 可以自行命名. 然后将结果的 GUID 值复制一份. 
     

    第四步.增加一个新的选项到引导菜单
    命令为:
    bcdedit /displayorder {current} {ID}
    这里的{ID}的GUID值是第三步的GUID值.
     

    第五步.激活DEBUG
    命令为:
    bcdedit /debug {ID} ON
    这里的{ID} 的GUID值是第三步的GUID值.
     

    命令执行成功后,重新启动.

    选择DebugEntry 登录,开启Windbg
    Microsoft (R) Windows Debugger  Version 6.6.0007.5
    Copyright (c) Microsoft Corporation. All rights reserved.

    Opened \\.\pipe\com_1
    Waiting to reconnect...
    Connected to Windows Vista 6000 x86 compatible target, ptr64 FALSE
    Kernel Debugger connection established.
    Symbol search path is: symsrv*symsrv.dll*F:\symbols*http://msdl.microsoft.com/download/symbols
    Executable search path is: 
    Windows Vista Kernel Version 6000 MP (1 procs) Free x86 compatible
    Built by: 6000.16386.x86fre.vista_rtm.061101-2205
    Kernel base = 0x81800000 PsLoadedModuleList = 0x81911db0
    System Uptime: not available
    Break instruction exception - code 80000003 (first chance)
    *******************************************************************************
    *                                                                             *
    *   You are seeing this message because you pressed either                    *
    *       CTRL+C (if you run kd.exe) or,                                        *
    *       CTRL+BREAK (if you run WinDBG),                                       *
    *   on your debugger machine's keyboard.                                      *
    *                                                                             *
    *                   THIS IS NOT A BUG OR A SYSTEM CRASH                       *
    *                                                                             *
    * If you did not intend to break into the debugger, press the "g" key, then   *
    * press the "Enter" key now.  This message might immediately reappear.  If it *
    * does, press "g" and "Enter" again.                                          *
    *                                                                             *
    *******************************************************************************
    nt!RtlpBreakWithStatusInstruction:
    81881760 cc              int     3
    关于Windbg设置部分和虚拟机设置部分可以参考:
    http://silverstr.ufies.org/lotr0/windbg-vmware.html
    http://www.vmware.com/support/ws3/doc/ws32_devices3.html
    http://www.wintoolspro.com/?p=6

  • 相关阅读:
    POJ2777
    链表
    模板
    poj 3468(线段树)
    用react编写一个hello world
    用express快速写一个hello world
    naturalWidth与naturalHeight
    div里面的图片垂直居中
    js将网址转为二维码并下载图片
    记一个视频播放器插件 video.js
  • 原文地址:https://www.cnblogs.com/adylee/p/1537533.html
Copyright © 2011-2022 走看看