[PATCH c++ 1/6] dwarf2read.c: Add cast

Simon Marchi simon.marchi@polymtl.ca
Thu Oct 29 17:54:00 GMT 2015


On 29 October 2015 at 13:14, Pedro Alves <palves@redhat.com> wrote:
> On 10/29/2015 02:57 PM, Simon Marchi wrote:
>
>>> --- a/gdb/dwarf2read.c
>>> +++ b/gdb/dwarf2read.c
>>> @@ -6854,7 +6854,7 @@ partial_die_full_name (struct partial_die_info *pdi,
>>>           struct dwarf2_cu *ref_cu = cu;
>>>
>>>           /* DW_FORM_ref_addr is using section offset.  */
>>> -         attr.name = 0;
>>> +         attr.name = (dwarf_attribute) 0;
>>
>> Oops, here it should say (enum dwarf_attribute), so it works in C too.
>
> OK with that change.
>
> Thanks,
> Pedro Alves

Pushed everything except patch 2, thanks!



More information about the Gdb-patches mailing list