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: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 29 Oct 2015 13:44:40 -0400
- 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> <563253F0 dot 1050305 at redhat dot com>
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!