[PATCH] D19271: Change CALL_ONCE_INITIALIZATION implementation to use static initialization
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 3 08:34:25 PDT 2016
On Fri, Jun 3, 2016 at 12:53 AM, Kamil Rytarowski via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> krytarowski added a comment.
>
> 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:
>
> $ cat test.cpp
> #include <iostream>
> #include <thread>
> #include <mutex>
>
> std::once_flag flag;
>
> int main()
> {
> std::call_once(flag, [](){ std::cout << "Simple example: called
> once\n"; });
> }
>
Works for me:
(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)
>
> I will keep you posted.
>
>
> http://reviews.llvm.org/D19271
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160603/9a282b58/attachment.html>
More information about the llvm-commits
mailing list