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
Solved

Kernel debugging with Windbg

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

856 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