Mdbg Stack Frame,

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laurent@clae.net

    Mdbg Stack Frame,

    Hi,


    I need some help with cordbg. I try to do some search on google, but
    don't find any answer.
    I try to use MDBGEngine to analyse the trace stack frame of an
    appplication which have deadlocks.
    For this, I use the following code:

    proc = debugger.Attach (processId);
    DrainAttach(deb ugger, proc);
    MDbgThreadColle ction threads = proc.Threads;
    Console.WriteLi ne("Attached to pid:{0}", processId);
    foreach (MDbgThread thread in threads)
    {
    Console.WriteLi ne("Callstack for Thread {0}",
    thread.Id.ToStr ing());
    foreach (MDbgFrame frame in thread.Frames)
    {
    Console.WriteLi ne(" " + frame);
    }
    }

    It's work well, and output something like this:
    ...
    System.Web.Http Runtime.Process RequestInternal (source line
    information unavailable)
    System.Web.Http Runtime.Process RequestNoDemand (source line
    information unavailable)
    System.Web.Host ing.ISAPIRuntim e.ProcessReques t (source line
    information unavailable)
    [Internal Frame, 'AD Switch']
    [Internal Frame, 'U-->M']

    My question is about the last two lines "Internal Frame". I don't
    understand what is it ?
    Somes of the stacks have the U-->M flags, other don't have. Is this
    related to lock waiting ?


    Thanks,
    Laurent.
Working...