gdb/riscv: Add equality operators to riscv_gdb_features
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 29 Nov 2018 15:07:59 +0000 (15:07 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 30 Nov 2018 18:13:42 +0000 (18:13 +0000)
commit65a4b373267813ae5e47ac519da2e70d9c7e09d3
treef7ef8cba13b81bdc1608001572fd1c7eb6024c05
parent0ff80bf7b9901b5e3c6805b99d30fd555f512d69
gdb/riscv: Add equality operators to riscv_gdb_features

Add '==' and '!=' operators for the struct riscv_gdb_features,
allowing a small simplification.

gdb/ChangeLog:

* arch/riscv.h (riscv_gdb_features::operator==): New.
(riscv_gdb_features::operator!=): New.
* riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality
operator.
gdb/ChangeLog
gdb/arch/riscv.h
gdb/riscv-tdep.c
This page took 0.044331 seconds and 4 git commands to generate.