<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SOSEX on naveen srinivasan</title><link>https://naveensrinivasan.com/categories/sosex/</link><description>Recent content in SOSEX on naveen srinivasan</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 06 Dec 2010 00:16:53 +0000</lastBuildDate><atom:link href="https://naveensrinivasan.com/categories/sosex/index.xml" rel="self" type="application/rss+xml"/><item><title>Why isn’t the !bpmd in sos / windbg not working?</title><link>https://naveensrinivasan.com/?p=1271/</link><pubDate>Mon, 06 Dec 2010 00:16:53 +0000</pubDate><guid>https://naveensrinivasan.com/?p=1271/</guid><description>&lt;p&gt;I recently noticed another blog &lt;!-- raw HTML omitted --&gt;post &lt;!-- raw HTML omitted --&gt;refer to one of my &lt;!-- raw HTML omitted --&gt;post&lt;!-- raw HTML omitted --&gt;. The issue was, sos wasn’t enabling the break-points on non-jitted functions. The classic example being “Main”.  Thanks to &lt;!-- raw HTML omitted --&gt;Steve &lt;!-- raw HTML omitted --&gt; I have been using sosex and not sos for setting break-points.&lt;/p&gt;&#10;&lt;p&gt;From my previous &lt;!-- raw HTML omitted --&gt;post &lt;!-- raw HTML omitted --&gt; you can understand how CLR is using clrn/CLRNotificationException to notify sos/sosex on JIT. With this information when I looked at the rotor &lt;!-- raw HTML omitted --&gt;code&lt;!-- raw HTML omitted --&gt;, I noticed an interesting member variable “g_dacNotificationFlags”. So I decided to check the value of this variable when using !bpmd from sos and !mbm from sosex.&lt;/p&gt;</description></item><item><title>Using sosex within windbg to understand IL and Assembly code</title><link>https://naveensrinivasan.com/?p=1261/</link><pubDate>Tue, 30 Nov 2010 01:33:25 +0000</pubDate><guid>https://naveensrinivasan.com/?p=1261/</guid><description>&lt;p&gt;Sometimes when debugging managed code within the debugger I would like to see the C# code ,the IL translation for the managed code and the Assembly code for the IL. For example I recently learned that callvirt MSIL instruction must do the null-check before invoking method.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;C:UsersnaveenDocumentsVisual Studio 2010ProjectsConsoleApplication13Program.cs @ 18:&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;00bc26d8 8b4dec          mov     ecx,dword ptr [ebp-14h]&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;00bc26db 3909            cmp     dword ptr [ecx],ecx //NULL Check&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;00bc26dd ff1508a82900    call    dword ptr ds:[29A808h] (System.String.ToLower(), mdToken: 0600031d)&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Debugging Generic System.Nullable within Windbg</title><link>https://naveensrinivasan.com/?p=947/</link><pubDate>Thu, 08 Jul 2010 03:58:51 +0000</pubDate><guid>https://naveensrinivasan.com/?p=947/</guid><description>&lt;p&gt;In this post I am going to unravel the mystery of debugging the Nullable&lt;!-- raw HTML omitted --&gt; within Windbg in .NET 3.5 and also compare it with .NET 4.0. Here is the sample code and it is compiled in .NET 3.5&lt;/p&gt;&#10;&lt;p&gt;[sourcecode language=”csharp”]&lt;/p&gt;&#10;&lt;p&gt;using System;&lt;/p&gt;&#10;&lt;p&gt;namespace ConsoleApplication&lt;/p&gt;&#10;&lt;p&gt;{&lt;/p&gt;&#10;&lt;p&gt;class Program&lt;/p&gt;&#10;&lt;p&gt;{&lt;/p&gt;&#10;&lt;p&gt;Int32? test;&lt;/p&gt;&#10;&lt;p&gt;int i = 10;&lt;/p&gt;&#10;&lt;p&gt;static void Main(string[] args)&lt;/p&gt;&#10;&lt;p&gt;{&lt;/p&gt;&#10;&lt;p&gt;Nullable&lt;!-- raw HTML omitted --&gt;&lt;/p&gt;&#10;&lt;p&gt;Int32? i = 10;&lt;/p&gt;&#10;&lt;p&gt;Object o = 10;&lt;/p&gt;</description></item></channel></rss>