[lldb-dev] [Bug 15301] New: LLDB prints incorrect size of libstdc++ vector<bool> containers (when inferior built with GCC on Linux)

Yacine Belkadi yacine.belkadi.1 at gmail.com
Thu May 16 13:13:20 PDT 2013


Hi Greg,

On 05/15/2013 11:08 PM, Greg Clayton wrote:
> What are the chances that these patches could affect other correctly emitted DWARF for templates? 
> 
> Unless this patch will _absolutely_ _never_ affect any correct debug info that is emitted by GCC, I would rather not fix this in LLDB, but just get GCC fixed.
> 
> Greg

I understand your concerns. I wasn't sure if a workaround was wanted in
lldb. I attached one in case it was, and to have some code to discuss about.

The patch is based on the assumption that a class or a function DIE
shouldn't contain multiple identical template paramter DIEs. That template
parameters DIEs should at least differ by name if everything else is
identical. It looks reasonably safe to me, but I may be missing something.

As I understand it, the choice is to avoid the workaround in lldb, and let
GCC fix the problem. According to the GCC bug report, it's "Fixed for 4.8".
So the test case will get from XFAIL to XPASS by itself, someday :)

Yacine




More information about the lldb-dev mailing list