X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Friscv-tdep.h;h=2af6ec332f76ba2edff14d69ac3ef2ba2e950831;hb=8677059126a84cb9f71371beb8688138a41014fc;hp=03870cf9e5b721a75c719afa077832fe68c81b69;hpb=e843807b2df9f99b8172bfaf4daa3a42461cdbfa;p=binutils-gdb.git diff --git a/gdb/riscv-tdep.h b/gdb/riscv-tdep.h index 03870cf9e5b..2af6ec332f7 100644 --- a/gdb/riscv-tdep.h +++ b/gdb/riscv-tdep.h @@ -22,6 +22,7 @@ #define RISCV_TDEP_H #include "arch/riscv.h" +#include "gdbarch.h" /* RiscV register numbers. */ enum @@ -75,7 +76,7 @@ enum }; /* RISC-V specific per-architecture information. */ -struct gdbarch_tdep +struct riscv_gdbarch_tdep : gdbarch_tdep { /* Features about the target hardware that impact how the gdbarch is configured. Two gdbarch instances are compatible only if this field @@ -105,7 +106,7 @@ struct gdbarch_tdep /* Return the expected next PC assuming FRAME is stopped at a syscall instruction. */ - CORE_ADDR (*syscall_next_pc) (struct frame_info *frame); + CORE_ADDR (*syscall_next_pc) (struct frame_info *frame) = nullptr; };