RISC-V: Add osabi support.
authorJim Wilson <jimw@sifive.com>
Mon, 16 Jul 2018 21:50:36 +0000 (14:50 -0700)
committerJim Wilson <jimw@sifive.com>
Mon, 16 Jul 2018 21:50:36 +0000 (14:50 -0700)
gdb/
* riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.

gdb/ChangeLog
gdb/riscv-tdep.c

index 950cf8947046b40b8deca9907f4f810adeb7e81a..635f592e476a55b6181ed6b7bd6adb98f9f41575 100644 (file)
@@ -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
index 25a8fda29c4aff4d9a05c8f675d1bb9652189b15..72dab0f8975ec83ce5d2d7701a862b57ead44d22 100644 (file)
@@ -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;
 }