More luck with gdb 7.5.1:

clang trunk+patch:
(gdb) p this
$1 = (const expr::type::impl::Numeric<short> *) 0x2aacb9c75fc0
(gdb) p value_
$2 = 27648
(gdb) p key
$3 = (const expr::type::impl::Numeric<short>::UnsignedType &)
@0x2aacb9c75fc0: 27648



2014-05-25 14:39 GMT+02:00 Martin Ri <[email protected]>:

> The patch applied cleanly, but I'm still seeing problems.
>
> 189         UnsignedType GetBiased() const
> 190         {
> 191             UnsignedType const& key = reinterpret_cast<UnsignedType
> const&>(value_);
> 192             if ( value_ >= 0 )
> 193                 return key +
> static_cast<UnsignedType>(expr::types::GetMax<T>()) + 1;
>
> We are in line 192:
>
> clang 3.4 dbg:
> (gdb) p this
> $1 = (const expr::type::impl::Numeric<int> *) 0x2b3ad7c59c60
> (gdb) p value_
> $2 = 0
> (gdb) p key
> $3 = (const expr::type::impl::Numeric<int>::UnsignedType &)
> @0x2b3ad7c59c60: 0
>
> clang trunk+patch:
> (gdb) p this
> No symbol "this" in current context.
> (gdb) p value_
> No symbol "value_" in current context.
> (gdb) p key
> $6 = (DataAccess::PersistenceProperties::Key) 0x2ac8a00f7fe0
> "LVCPersistenceProperties"
>
> So two are not displayed and the third is wrong. This is with gdb 7.3.1
> though, I will try a fresher one and lldb later. I'm pretty sure I used the
> correct compiler since I had to fix some new compile errors :)
>
>
> 2014-05-24 1:29 GMT+02:00 <[email protected]>:
>
>
>> Comment #8 on issue 235 by [email protected]: compiling with asan
>> generates wrong DWARF
>> http://code.google.com/p/address-sanitizer/issues/detail?id=235
>>
>> Here's the patch - you'll need to apply it to LLVM trunk andr re-build
>> Clang.
>>
>> Attachments:
>>         zdiff.i235  18.1 KB
>>
>> --
>> You received this message because this project is configured to send all
>> issue notifications to this address.
>> You may adjust your notification preferences at:
>> https://code.google.com/hosting/settings
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "address-sanitizer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to