Solved

Kernel debugging with Windbg

Posted on 2001-09-14
4
1,095 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

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…

740 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