отладка вмста64 под варей в кернелмоде WinDbg

Тема в разделе "WASM.X64", создана пользователем wsd, 20 авг 2009.

  1. wsd

    wsd New Member

    Публикаций:
    0
    Регистрация:
    8 авг 2007
    Сообщения:
    2.824
    как всё это правильно настроить?
     
  2. xssww2

    xssww2 New Member

    Публикаций:
    0
    Регистрация:
    11 апр 2009
    Сообщения:
    84
    Мой мануал

    Virtual null-modem cable:
    Host kernel mode:
    \\.\pipe\com1
    This end is the client
    The other end is a virtual machine
    set _NT_DEBUG_PORT=com1
    set _NT_DEBUG_BAUD_RATE=115200
    kd -k com:port=com1,baud=115200
    Target kernel mode:
    COM1:
    Auto detect (COM1)
    COM2:
    \\.\pipe\com1
    This end is the server
    The other end is a virtual machine
    /debug /debugport=COM2 /baudrate=115200

    Remote debugging of an application in the kernel mode:
    - "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug": Auto = 1
    - "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug": Debugger = "c:\Program Files (x86)\Windbg\windbg.exe" -p %ld -e %ld -g -WF "c:\Work\Windbg\windbg.wew" -c "$<c:\Work\Windbg\windbg.script"
    - execute the command line: windbg.exe /IS
    - catch a error in the user mode
    - set before a error the code: int 3
    - rerun an application

    Vista:
    - Start button/All Programs/Accessories/Command Prompt (run as administrator)
    - bcdedit.exe /dbgsettings SERIAL DEBUGPORT:2 BAUDRATE:115200 /start AUTOENABLE
    - bcdedit.exe /debug on
    - restart with the debugging mode
     
  3. wasm_test

    wasm_test wasm test user

    Публикаций:
    0
    Регистрация:
    24 ноя 2006
    Сообщения:
    5.582
    xssww2
    Димачка, это ты?
     
  4. xssww2

    xssww2 New Member

    Публикаций:
    0
    Регистрация:
    11 апр 2009
    Сообщения:
    84
    Да Грейтег)
     
  5. wasm_test

    wasm_test wasm test user

    Публикаций:
    0
    Регистрация:
    24 ноя 2006
    Сообщения:
    5.582
    А я еще ставлю галочку Yield CPU on poll