public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Add osabi support.
@ 2018-07-04  0:16 Jim Wilson
  2018-07-04  9:11 ` Andrew Burgess
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Wilson @ 2018-07-04  0:16 UTC (permalink / raw)
  To: gdb-patches; +Cc: andrew.burgess, Jim Wilson

This adds the osabi init call that the linux native port needs.

	gdb/
	* riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
---
 gdb/riscv-tdep.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index 154567136e..1b941eee55 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -2562,6 +2562,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.17.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-07-16 21:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-04  0:16 [PATCH] RISC-V: Add osabi support Jim Wilson
2018-07-04  9:11 ` Andrew Burgess
2018-07-05 22:26   ` John Baldwin
2018-07-06 21:39     ` Andrew Burgess
2018-07-07  1:53       ` Simon Marchi
2018-07-16 21:51         ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).