From: Jim Wilson Date: Mon, 16 Jul 2018 21:50:36 +0000 (-0700) Subject: RISC-V: Add osabi support. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=117a0e996dab2abae985a2b4251ebfb092955dc8;p=binutils-gdb.git RISC-V: Add osabi support. gdb/ * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 950cf894704..635f592e476 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-07-16 Jim Wilson + + * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. + 2018-07-16 Simon Marchi * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 25a8fda29c4..72dab0f8975 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -2569,6 +2569,9 @@ riscv_gdbarch_init (struct gdbarch_info info, user_reg_add (gdbarch, riscv_register_aliases[i].name, value_of_riscv_user_reg, &riscv_register_aliases[i].regnum); + /* Hook in OS ABI-specific overrides, if they have been registered. */ + gdbarch_init_osabi (info, gdbarch); + return gdbarch; }