<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 3, 2016 at 12:53 AM, Kamil Rytarowski via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">krytarowski added a comment.<br>
<br>
I'm declaring myself responsible for this bug. gdb(1) so far isn't helping at all, it disregards setting breakpoints even in main() of:<br>
<br>
  $ cat test.cpp<br>
  #include <iostream><br>
  #include <thread><br>
  #include <mutex><br>
<br>
  std::once_flag flag;<br>
<br>
  int main()<br>
  {<br>
      std::call_once(flag, [](){ std::cout << "Simple example: called once\n"; });<br>
  }<br></blockquote><div><br></div><div>Works for me:<br><br><pre style="color:rgb(0,0,0)">(gdb) break main
Breakpoint 1 at 0x4009d6: file call.cpp, line 8.
(gdb) r
Starting program: /tmp/dbginfo/a.out 
Loading gdb's copy of v18 libstdc++ pretty-printers.

Breakpoint 1, main () at call.cpp:8

(but I'm not following this thread, perhaps there's some particular situation/condition in which you're trying this where it doesn't work & I didn't catch that context)</pre></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
I will keep you posted.<br>
<div class=""><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D19271" rel="noreferrer" target="_blank">http://reviews.llvm.org/D19271</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>