aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2018-07-16 14:50:36 -0700
committerJim Wilson <jimw@sifive.com>2018-07-16 14:50:36 -0700
commit117a0e996dab2abae985a2b4251ebfb092955dc8 (patch)
treecd331a79fe4eade832294d4f1e97ac26788cd42f /gdb
parent3fd217186c573ccbe22ad1512578fd316cd7870a (diff)
downloadgdb-117a0e996dab2abae985a2b4251ebfb092955dc8.zip
gdb-117a0e996dab2abae985a2b4251ebfb092955dc8.tar.gz
gdb-117a0e996dab2abae985a2b4251ebfb092955dc8.tar.bz2
RISC-V: Add osabi support.
gdb/ * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/riscv-tdep.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 950cf89..635f592 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-16 Jim Wilson <jimw@sifive.com>
+
+ * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
+
2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
* ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index 25a8fda..72dab0f 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;
}