RISC-V: Add osabi support.

gdb/
	* riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
This commit is contained in:
Jim Wilson 2018-07-16 14:50:36 -07:00
parent 3fd217186c
commit 117a0e996d
2 changed files with 7 additions and 0 deletions

View 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> 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
* ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused

View File

@ -2569,6 +2569,9 @@ riscv_gdbarch_init (struct gdbarch_info info,
user_reg_add (gdbarch, riscv_register_aliases[i].name, user_reg_add (gdbarch, riscv_register_aliases[i].name,
value_of_riscv_user_reg, &riscv_register_aliases[i].regnum); 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; return gdbarch;
} }