diff options
author | Jim Wilson <jimw@sifive.com> | 2018-08-29 10:52:42 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-08-29 10:52:42 -0700 |
commit | 4d3928d7e0a141e0fb16405d33b375cbe2f13123 (patch) | |
tree | 0ca008facc6f6c25e2b65a1df25ce24af22c2c7b /opcodes/sparc-opc.c | |
parent | 7a6dbc2fdb2323c35e981f93236f323e9d7c0b24 (diff) | |
download | fsf-binutils-gdb-4d3928d7e0a141e0fb16405d33b375cbe2f13123.zip fsf-binutils-gdb-4d3928d7e0a141e0fb16405d33b375cbe2f13123.tar.gz fsf-binutils-gdb-4d3928d7e0a141e0fb16405d33b375cbe2f13123.tar.bz2 |
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.
Diffstat (limited to 'opcodes/sparc-opc.c')
0 files changed, 0 insertions, 0 deletions