[llvm] r181471 - Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)

Eric Christopher echristo at gmail.com
Wed May 8 16:01:51 PDT 2013


On Wed, May 8, 2013 at 3:02 PM, David Blaikie <dblaikie at gmail.com> wrote:
> On Wed, May 8, 2013 at 2:23 PM, Eric Christopher <echristo at gmail.com> wrote:
>> Author: echristo
>> Date: Wed May  8 16:23:22 2013
>> New Revision: 181471
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=181471&view=rev
>> Log:
>> Make sure debug info contains linkage names (DW_AT_MIPS_linkage_name)
>> for constructors and destructors since the original declaration given
>> by the AT_specification both won't and can't.
>
> I haven't looked closely, but I guess this might've regressed the GDB
> 7.5 buildbot:
>
> Before:
>
> print intBazOne::~Baz
> $2 = {void (Baz<int, '\x01'> * const)} 0x402820 <Baz<int, '\x01'>::~Baz(void)>
>
> After:
>
> print intBazOne::~Baz
> There is no field named ~Baz
>
> Haven't looked further to see why this would've broken things or how
> GCC handles it.
>

gcc doesn't emit the linkage information for them at all and relies
upon gdb to merge it back together.

I'll investigate where the easiest place to fix this is.

-eric



More information about the llvm-commits mailing list