[PATCH] Print nonexisting/optimized out static fields gracefully.
Pedro Alves
palves@redhat.com
Tue Oct 15 09:48:00 GMT 2013
On 10/15/2013 02:05 AM, Yao Qi wrote:
> On 10/11/2013 02:25 AM, Pedro Alves wrote:
>> After the patch:
>>
>> (gdb) p sss
>> $1 = {static aaa = <optimized out>}
>> (gdb) p sss.aaa
>> field aaa is nonexistent or has been optimized out
>
> Does this message above still exist?
Nope, sorry, it was a copy/paste error. After patch, we get:
(gdb) p sss
$1 = {static aaa = <optimized out>}
(gdb) p sss.aaa
$2 = <optimized out>
IOW, consistent "<optimized out>".
>
>> (gdb) p sss.aaa
>> $2 = <optimized out>
>
>
--
Pedro Alves
More information about the Gdb-patches
mailing list