<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 7:13 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank" class="cremed">richard@metafoo.co.uk</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On Tue, Apr 22, 2014 at 2:55 PM, Diego Novillo <span dir="ltr"><<a href="mailto:dnovillo@google.com" target="_blank" class="cremed">dnovillo@google.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





================<br>
Comment at: docs/UsersManual.rst:1176-1178<br>
@@ +1175,5 @@<br>
+<br>
+b. [OPTIONAL] Discriminator. This is used if the sampled program<br>
+   was compiled with DWARF discriminator support<br>
+   (<a href="http://wiki.dwarfstd.org/index.php?title=Path_Discriminators" target="_blank" class="cremed">http://wiki.dwarfstd.org/index.php?title=Path_Discriminators</a>)<br>
+<br>
----------------<br>
... and what is it, in that case? At a guess: "If present, this is a decimal integer representing the value of the DWARF discriminator register."<br>
<br></blockquote><div><br></div></div><div>Done.</div></div></div></div></blockquote><div><br></div></div><div>Thanks, this helps -- it explains why we'd want this. But it still doesn't answer my question of what value is specified here, and how it's represented.</div>


</div></div></div></blockquote><div><br></div><div>Ah. Fixed.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">


<div class="gmail_quote"><div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Or are you thinking something else?</div></div></div>


</div></blockquote><div><br></div></div><div>More mundane cases than that =) For instance:</div>
<div><br></div><div>file.def:</div><div>  FOO(a)</div><div>  FOO(b)</div><div>  FOO(c)</div><div>  #undef FOO</div><div><br></div><div>file.cc:</div><div>  void f() {</div><div>    #define FOO(x) x = 0;</div><div>    #include "file.def"</div>



<div>  }</div><div><br></div><div>or simply:</div><div><br></div><div>file.cc:</div><div>  void f() {</div><div>    assert(some_expensive_call());</div><div><div><div>  }</div></div></div></div></div></div></blockquote>
<div><br></div><div>Oh, macros. Yeah, macros are an issue wrt -gmlt. The problem is that they give the line number at the point of expansion, so we'll get a 0 there (the profile converter deals with this).  I've added some wording describing the issue.</div>

</div></div></div>