This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH c++ 1/6] dwarf2read.c: Add cast
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, gdb-patches at sourceware dot org
- Date: Thu, 29 Oct 2015 17:14:24 +0000
- Subject: Re: [PATCH c++ 1/6] dwarf2read.c: Add cast
- Authentication-results: sourceware.org; auth=none
- References: <1446123767-25046-1-git-send-email-simon dot marchi at polymtl dot ca> <1446123767-25046-2-git-send-email-simon dot marchi at polymtl dot ca> <CAFXXi0=6iv9vvZ0HRnGLo9H4UnjNKUoF6imUgUpDYDuV7uwwEQ at mail dot gmail dot com>
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