Fix build with gcc-4.8.x
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 16 Feb 2020 20:43:33 +0000 (21:43 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 18 Feb 2020 21:22:56 +0000 (22:22 +0100)
commit6d0cf4464e0477db8c15b00a99df09d84d55cda4
tree1c4427a4fd89b334768e87eebc002b6cdf0e4d63
parent7001c1b7dcde6b0e8967652d18a7c1794d5faa78
Fix build with gcc-4.8.x

Use an explicit conversion from unique_ptr<T> to
displaced_step_closure_up to avoid a compiler bug
with gcc-4.8.4:

../../binutils-gdb/gdb/amd64-tdep.c:1514:10: error: cannot bind
   'std::unique_ptr<amd64_displaced_step_closure>' lvalue to
   'std::unique_ptr<amd64_displaced_step_closure>&&'

gdb:
2020-02-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>

* aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
conversion.
* amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
* arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
* i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
* rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
* s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/amd64-tdep.c
gdb/arm-linux-tdep.c
gdb/i386-tdep.c
gdb/rs6000-tdep.c
gdb/s390-tdep.c