title: Windbg Set Conditional Breakpoints that depends on Call Stack
body: <p><strong>The problem</strong>: I need to make a script or an expression that that doesn't break if somewhere on callstack is a function with a specific name.  </p>
  
  <p><strong>Specific question</strong>: How can I get functions on callstack to a list of strings ?  </p>
  
  <p><strong>Example</strong>:</p>
  
  <pre><code>Module!MyFunctionWithConditionalBreakpoint    
  Module!Function1   
  Module!Function2    
  Module!Function3  
  
  
  Module!MyFunctionWithConditionalBreakpoint    
  Module!Function1   
  Module!ClassA:MemberFunction    
  Module!Function3
  </code></pre>
  
  <p>I want <code>Module!MyFunctionWithConditionalBreakpoint</code> to break only if the call cames from <code>Module!ClassA:MemberFunction</code></p>
  
  <p><strong>I need this in unmanaged code</strong>. Managed solution is something like</p>
  
  <blockquote>
    <p>System.Diagnostics.StackTrace().ToString().Contains("YourMethodName")</p>
  </blockquote>