From 117a0e996dab2abae985a2b4251ebfb092955dc8 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 16 Jul 2018 14:50:36 -0700 Subject: [PATCH] RISC-V: Add osabi support. gdb/ * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. --- gdb/ChangeLog | 4 ++++ gdb/riscv-tdep.c | 3 +++ 2 files changed, 7 insertions(+) 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; } -- 2.30.2