[lldb-dev] [Bug 18772] Breakpoint reports invalid locations and breaks incorrectly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 14 05:04:04 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18772

Andrew Shevchenko <sheeftz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #6 from Andrew Shevchenko <sheeftz at gmail.com> ---
(In reply to comment #4)
> Hey Andrew,
> 
> Can you reproduce it with a small program that you could attach here?

I could not reproduce it with simple code.
I tried to simplify my code step by step, but it appears that number of
reported locations depends on text of some include files and the actual line
number but not actual code. This means if insert some empty lines, number of
reported locations changes. I can get a single location, put some empty lines
before and get 33 locations on same piece of code, then remove some includes
and get 1 location again. It's very unstable.
I can share my includes and .a lib to link. It can be reproduced easy with it.

> Also, do you get different results when compiling with gcc (maybe a gcc
> 4.8.x?)

Unfortunately, gcc could not compile my code. The bug is fixed in gcc-4.9. I
was not able to find prebuilt gcc-4.9 package for Ubunut saucy.


> On Ubuntu, which release are you on?  And is it x86_64 or x86?
x86_64

> If you can also include the command line options that you are using, that
> would be great.
-c -Xclang -include-pch -Xclang -pipe -stdlib=libc++ -g -std=c++11 -fPIE

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140214/edb7abdf/attachment.html>


More information about the lldb-dev mailing list