Solved

Kernel debugging with Windbg

Posted on 2001-09-14
4
1,104 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 8

Accepted Solution

by:
mxjijo earned 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

626 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