aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/x86-low.cc
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2021-01-04 21:40:41 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2021-01-14 18:50:10 +0100
commit58eadc4b691b5c943a9b8879420242ffc6d498c7 (patch)
treeaedc0aaf4c520fa1b24d12ae012a2f8600ac924a /gdbserver/x86-low.cc
parent8ca9c7eb6773dd3cc9c536787b3489d36356ccf7 (diff)
downloadgdb-58eadc4b691b5c943a9b8879420242ffc6d498c7.zip
gdb-58eadc4b691b5c943a9b8879420242ffc6d498c7.tar.gz
gdb-58eadc4b691b5c943a9b8879420242ffc6d498c7.tar.bz2
Fix building gdb with gcc-4.x
Since is_trivially_default_constructible was not implemented before gcc-5 it cannot be used with gcc-4.x. Fix the build by using conditional compilation around that line. Use the equivalent is_trivially_constructible<T> instead, since we already have HAVE_IS_TRIVIALLY_CONSTRUCTIBLE for that purpose. Fixes: 098caef485a ("Refactor struct trad_frame_saved_regs") gdb: 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error because is_trivially_default_constructible was first implemented with gcc-5.
Diffstat (limited to 'gdbserver/x86-low.cc')
0 files changed, 0 insertions, 0 deletions