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

  • 相关阅读:
    对于捐赠承诺和劳务捐赠,不予以确认,但应在会计报表附注中披露
    R语言代写线性混合效应模型Linear Mixed-Effects Models的部分折叠Gibbs采样
    matlab代写MCMC贝叶斯方法用于加筋复合板的冲击载荷识别
    R语言代写dplyr-高效的数据变换与整理工具
    GIS代写遥感数据可视化评估:印度河流域上部的积雪面积变化
    R语言代写向量自回归模型(VAR)及其实现
    r语言代写实现似然的I(2)协整VAR模型弱外生性推理
    python代写缺失值处理案例分析:泰坦尼克数据
    Python代写高性能计算库——Numba
    matlab递归神经网络RNN实现:桨距控制控制风力发电机组研究
  • 原文地址:https://www.cnblogs.com/adylee/p/1537533.html
Copyright © 2011-2022 走看看