This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix gdb build on 32-bit hosts w/ --enable-64-bit-bfd
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Pedro Alves <palves at redhat dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 4 Dec 2018 18:59:25 +0000
- Subject: Re: [PATCH] Fix gdb build on 32-bit hosts w/ --enable-64-bit-bfd
- References: <20181204181650.18188-1-palves@redhat.com>
On 2018-12-04 1:16 p.m., Pedro Alves wrote:
> Building for x86_64/-m32 with --enable-64-bit-bfd, compilation fails
> with:
>
> src/gdb/dwarf2read.c: In instantiation of ‘gdb::array_view<const unsigned char> get_gdb_index_contents_from_section(objfile*, T*) [with T = dwarf2_per_objfile]’:
> src/gdb/dwarf2read.c:6266:54: required from here
> src/gdb/dwarf2read.c:6192:37: error: narrowing conversion of ‘section->dwarf2_section_info::size’ from ‘bfd_size_type {aka long long unsigned int}’ to ‘size_t {aka unsigned int}’ inside { } [-Werror=narrowing]
> return {section->buffer, section->size};
> ~~~~~~~~~^~~~
>
> This fixes it.
Woops, thanks, LGTM.
Simon