From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14850 invoked by alias); 8 Apr 2010 22:57:27 -0000 Received: (qmail 14838 invoked by uid 22791); 8 Apr 2010 22:57:26 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM,TW_EG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mga10.intel.com (HELO fmsmga102.fm.intel.com) (192.55.52.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Apr 2010 22:57:22 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 08 Apr 2010 15:56:54 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([10.3.194.107]) by fmsmga002.fm.intel.com with ESMTP; 08 Apr 2010 15:57:11 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 500) id 042B7812386; Thu, 8 Apr 2010 15:57:21 -0700 (PDT) Date: Thu, 08 Apr 2010 22:57:00 -0000 From: "H.J. Lu" To: GDB Subject: PATCH: Replace abort with internal_error in i387-tdep.c Message-ID: <20100408225720.GA1503@intel.com> 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-04/txt/msg00205.txt.bz2 Hi, This patch replaces abort with internal_error. OK to install? Thanks. H.J. --- 2010-04-08 H.J. Lu * i387-tdep.c (i387_collect_xsave): Replace abort with internal_error. diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c index eac3216..6dc9c2c 100644 --- a/gdb/i387-tdep.c +++ b/gdb/i387-tdep.c @@ -1033,7 +1033,8 @@ i387_collect_xsave (const struct regcache *regcache, int regnum, switch (regclass) { default: - abort (); + internal_error (__FILE__, __LINE__, + _("invalid i387 regclass")); case avxh: /* This is an upper YMM register. */ @@ -1077,7 +1078,8 @@ i387_collect_xsave (const struct regcache *regcache, int regnum, switch (regclass) { default: - abort (); + internal_error (__FILE__, __LINE__, + _("invalid i387 regclass")); case all: break;