Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: Generate set_tdesc_osabi for valid OSABI
@ 2010-02-04 15:49 H.J. Lu
  2010-02-04 16:04 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: H.J. Lu @ 2010-02-04 15:49 UTC (permalink / raw)
  To: GDB

We don't call set_tdesc_osabi even if there is

<osabi>GNU/Linux</osabi>

in target xml file.  This patch adds it. OK to install?

Thanks.


H.J.
---
2010-02-04  H.J. Lu  <hongjiu.lu@intel.com>

	* target-descriptions.c (maint_print_c_tdesc_cmd): Generate
	set_tdesc_osabi for valid OSABI.

diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 720f0c7..c07173a 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -1427,6 +1427,15 @@ maint_print_c_tdesc_cmd (char *args, int from_tty)
       printf_unfiltered ("\n");
     }
 
+  if (tdesc_osabi (tdesc) > GDB_OSABI_UNKNOWN
+      && tdesc_osabi (tdesc) < GDB_OSABI_INVALID)
+    {
+      printf_unfiltered
+	("  set_tdesc_osabi (result, (enum gdb_osabi) %d);\n",
+	 (int) tdesc_osabi (tdesc));
+      printf_unfiltered ("\n");
+    }
+
   for (ix = 0; VEC_iterate (arch_p, tdesc->compatible, ix, compatible);
        ix++)
     {


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

end of thread, other threads:[~2010-02-04 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-04 15:49 PATCH: Generate set_tdesc_osabi for valid OSABI H.J. Lu
2010-02-04 16:04 ` Daniel Jacobowitz
2010-02-04 16:55   ` H.J. Lu
2010-02-04 17:06     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox