Fix riscv-linux native gdb build failure.
authorJim Wilson <jimw@sifive.com>
Wed, 29 Aug 2018 17:52:42 +0000 (10:52 -0700)
committerJim Wilson <jimw@sifive.com>
Wed, 29 Aug 2018 17:52:42 +0000 (10:52 -0700)
commit4d3928d7e0a141e0fb16405d33b375cbe2f13123
tree0ca008facc6f6c25e2b65a1df25ce24af22c2c7b
parent7a6dbc2fdb2323c35e981f93236f323e9d7c0b24
Fix riscv-linux native gdb build failure.

The linux kernel uses NT_PRFPREG.  Glibc before BZ 14890 defines NT_FPREGSET.
After it defines both.  Avoid glibc version dependency by using the gdb header
file instead of the glibc header file, and the macro name that gdb defines
which is NT_FPREGSET.

gdb/
* riscv-linux-nat.c: Include elf/common.h instead of elf.h.
(riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
of NT_PRFPREG.
(riscv_linux_nat_target::store_registers): Likewise.
gdb/ChangeLog
gdb/riscv-linux-nat.c
This page took 0.025607 seconds and 4 git commands to generate.