This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]