Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Kernel debugging with Windbg

Posted on 2001-09-14
4
Medium Priority
?
1,117 Views
Last Modified: 2013-12-03
I'm trying to set up a kernel debugging session with Windbg.  On the target system I added /Debugport=com1 to boot.ini, and I get the target session started easily with "windbg -k".  By using a simple serial reader program on the host I can see that windbg on the target is sending a packet of bytes periodically, that is being received on the host.  But I can't figure out how to start windbg on the host so it attaches to the target.  All the Windbg documentation I can find only talks about connecting the host using 'npipe:xxxx' or 'tcp:xxx', but I need to connect over the serial port.  Does anyone know how to get the host started and attached over the com1 port?

Thanks much...

 -steve
0
Comment
Question by:steves1000
4 Comments
 
LVL 8

Accepted Solution

by:
mxjijo earned 800 total points
ID: 6537047

Its simple.

If you're using old WinDbg.
1) Start WinDbg
2) Click Options Button
3) Goto Kernel Debug Tab and specify the port setting.
   (this should match the settings on the target machine)
   Here you can specify the Symbols location also.

4) Open up a command window and type the letter "g"
5) It should say waiting for the target to connect.
6) Hit Ctrl-C to set a breakpoint on the fly.

The new version:

1) Start WinDbg
2) Open up the File menu and chose Kernel Debug.
   Here you'll be able to specify the port settings
3) Once you do that, you can hit g and Ctrl-C as mentioned above
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question