aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/debug.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2019-06-19 16:56:23 +0200
committerTom de Vries <tdevries@suse.de>2019-06-19 16:56:23 +0200
commitf23f598e28ad39dac7ae87cdc400d2f6b27dc403 (patch)
tree165982abd499ac693d17328fd8293f5a01f3e569 /gdb/gdbserver/debug.c
parent899277ae529c2b743d22093fcc1a9e46aff4422a (diff)
downloadbinutils-f23f598e28ad39dac7ae87cdc400d2f6b27dc403.zip
binutils-f23f598e28ad39dac7ae87cdc400d2f6b27dc403.tar.gz
binutils-f23f598e28ad39dac7ae87cdc400d2f6b27dc403.tar.bz2
[gdb] Fix build breaker with gcc 4.8
When compiling with gcc 4.8, we run into: ... /usr/include/c++/4.8/bits/unordered_map.h:100:18: required from \ ‘class std::unordered_map<sect_offset, std::vector<sect_offset> >’ src/gdb/dwarf2read.h:260:5: required from here /usr/include/c++/4.8/bits/hashtable_policy.h:1070:12: error: invalid use of \ incomplete type ‘struct std::hash<sect_offset>’ ... Fix this by setting the Hash template parameter of the unordered_map to gdb::hash_enum<sect_offset>, rather than using the default std::hash<sect_offset>. Build and reg-tested on x86_64-linux with gcc 4.8. gdb/ChangeLog: 2019-06-19 Tom de Vries <tdevries@suse.de> * dwarf2read.h (abstract_to_concrete): Change type to std::unordered_map<sect_offset, std::vector<sect_offset>, gdb::hash_enum<sect_offset>>.
Diffstat (limited to 'gdb/gdbserver/debug.c')
0 files changed, 0 insertions, 0 deletions