Re: [patch] Use mmap instead of obstack_alloc for dwarf debug sections.

Ken Werner
2009-06-18T09:08:33Z

Paul Pluzhnikov wrote:
> On Tue, Jun 16, 2009 at 1:58 PM, Tom Tromey<tromey@redhat.com> wrote:
>
>> This patch ok.
>
> So committed.
>
> Thanks,

Hi,
I noticed gdb/dwarf2-frame.c:1922 (and :1950) calls dwarf2_get_section_info
with unsigned long* (5th argument). The function expects a bfd_size_type *
(a pointer to an unsigned long long on my machine). Thus the compiler issues
a warning and the gdb build fails because of -Werror. Is it sufficient to
just cast to (bfd_size_type *) or am I missing something?
Regards
-ken