aboutsummaryrefslogtreecommitdiff
path: root/gdb/or1k-linux-tdep.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-12-07 19:54:19 +0000
committerPedro Alves <palves@redhat.com>2018-12-07 19:54:19 +0000
commit8bebfcda34f2ea883fa6b87e748ad8a5f72b352f (patch)
tree9b7ee71783a0e62ca2094b7deff749d48afb5ab7 /gdb/or1k-linux-tdep.c
parentd2ef37ebd9f771d06edf1fdea37970f60b242b2d (diff)
downloadgdb-8bebfcda34f2ea883fa6b87e748ad8a5f72b352f.zip
gdb-8bebfcda34f2ea883fa6b87e748ad8a5f72b352f.tar.gz
gdb-8bebfcda34f2ea883fa6b87e748ad8a5f72b352f.tar.bz2
Fix gdb build on 32-bit hosts w/ --enable-64-bit-bfd
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. gdb/ChangeLog: 2018-12-07 Pedro Alves <palves@redhat.com> * dwarf2read.c (get_gdb_index_contents_from_section): Use gdb::make_array_view.
Diffstat (limited to 'gdb/or1k-linux-tdep.c')
0 files changed, 0 insertions, 0 deletions