Solved

Kernel debugging with Windbg

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now