<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kichik's blog &#187; windbg</title>
	<atom:link href="http://kichik.net/tag/windbg/feed/" rel="self" type="application/rss+xml" />
	<link>http://kichik.net</link>
	<description>Random incoherent rambling about stuff</description>
	<lastBuildDate>Fri, 29 Jul 2011 19:41:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SCSIPORT debugging</title>
		<link>http://kichik.net/2009/11/11/scsiport-debugging/</link>
		<comments>http://kichik.net/2009/11/11/scsiport-debugging/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 19:29:21 +0000</pubDate>
		<dc:creator>kichik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[scsikd]]></category>
		<category><![CDATA[scsiport]]></category>
		<category><![CDATA[windbg]]></category>

		<guid isPermaLink="false">http://kichik.net/?p=129</guid>
		<description><![CDATA[Microsoft provides useful extensions for debugging SCSIPORT drivers in WinDbg. But with some versions of scsiport.sys, the symbol files don&#8217;t contain type information. This produces fun errors like the following. kd&#62; !scsikd.scsiext 8a392a38 ************************************************************************* *** *** *** *** *** Your debugger is not using the correct symbols *** *** *** *** In order for this [...]]]></description>
			<content:encoded><![CDATA[<div><p>Microsoft provides <a href="http://support.microsoft.com/kb/296225">useful extensions</a> for debugging SCSIPORT drivers in WinDbg. But with some versions of <tt>scsiport.sys</tt>, the symbol files don&#8217;t contain type information. This produces fun errors like the following.</p>
<p><pre class="text">kd&gt; !scsikd.scsiext 8a392a38
*************************************************************************
***                                                                   ***
***                                                                   ***
***    Your debugger is not using the correct symbols                 ***
***                                                                   ***
***    In order for this command to work properly, your symbol path   ***
***    must point to .pdb files that have full type information.      ***
***                                                                   ***
***    Certain .pdb files (such as the public OS symbols) do not      ***
***    contain the required information.  Contact the group that      ***
***    provided you with these symbols if you need this command to    ***
***    work.                                                          ***
***                                                                   ***
***    Type referenced: scsiport!_DEVICE_OBJECT                       ***
***                                                                   ***
*************************************************************************
scsikd error (3): ...\storage\kdext\scsikd\scsikd.c @ line 188</pre>This makes the common task of getting your device extension object very daunting. After some digging, I came up with this code to at least get my device extension object from SCSIPORT&#8217;s device extension object.</p>
<pre class="text">!drvobj mydriver
* get relevant DevObj
!devobj &lt;devobj&gt;
* get DevExt
dt mydriver!MY_DEVICE_EXTENSION poi(&lt;DevExt&gt; + b4)</pre>
<p>I&#8217;ve only tried it on Windows XP SP3. The offset may be different with other configurations. Anyone knows a better way around this? Preferable method would naturally be making <tt>scsikd</tt> work.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://kichik.net/2009/11/11/scsiport-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

