From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18141 invoked by alias); 4 Feb 2010 15:49:22 -0000 Received: (qmail 18131 invoked by uid 22791); 4 Feb 2010 15:49:20 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,NO_DNS_FOR_FROM X-Spam-Check-By: sourceware.org Received: from mga06.intel.com (HELO orsmga101.jf.intel.com) (134.134.136.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Feb 2010 15:49:12 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 04 Feb 2010 07:47:43 -0800 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.107]) by orsmga001.jf.intel.com with ESMTP; 04 Feb 2010 07:49:02 -0800 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id A2A29812344; Thu, 4 Feb 2010 07:49:10 -0800 (PST) Date: Thu, 04 Feb 2010 15:49:00 -0000 From: "H.J. Lu" To: GDB Subject: PATCH: Generate set_tdesc_osabi for valid OSABI Message-ID: <20100204154910.GA2593@lucon.org> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00112.txt.bz2 We don't call set_tdesc_osabi even if there is GNU/Linux in target xml file. This patch adds it. OK to install? Thanks. H.J. --- 2010-02-04 H.J. Lu * 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++) {