From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31460 invoked by alias); 30 Jul 2013 16:11:36 -0000 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 Received: (qmail 31444 invoked by uid 89); 30 Jul 2013 16:11:36 -0000 X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_MED,RCVD_IN_HOSTKARMA_W,RDNS_NONE autolearn=ham version=3.3.1 Received: from Unknown (HELO mms2.broadcom.com) (216.31.210.18) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 30 Jul 2013 16:11:35 +0000 Received: from [10.9.208.53] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Tue, 30 Jul 2013 09:05:14 -0700 X-Server-Uuid: 4500596E-606A-40F9-852D-14843D8201B2 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.1.438.0; Tue, 30 Jul 2013 09:11:18 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.1.438.0; Tue, 30 Jul 2013 09:11:18 -0700 Received: from [10.177.72.91] (unknown [10.177.72.91]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id CF720F2D76 for ; Tue, 30 Jul 2013 09:11:17 -0700 (PDT) Message-ID: <51F7E5A4.5090106@broadcom.com> Date: Tue, 30 Jul 2013 16:11:00 -0000 From: "Andrew Burgess" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [PATCH 2/4] Remove deprecated_throw_reason from mips_error. References: <51F7E51E.3070807@broadcom.com> In-Reply-To: <51F7E51E.3070807@broadcom.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-07/txt/msg00777.txt.bz2 Removes use of deprecated_throw_reason from mips_error. The user will now see the extra "Remote debugging terminated" error message but that doesn't feel too bad to me, what do you think? OK to apply? Thanks, Andrew gdb/ChangeLog 2013-07-30 Andrew Burgess * remote-mips.c (mips_error): Replace use of deprecated_throw_reason with throw_error. diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 1619622..791aa8a 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -510,7 +510,7 @@ mips_error (char *string,...) if (!ptid_equal (inferior_ptid, null_ptid)) target_mourn_inferior (); - deprecated_throw_reason (RETURN_ERROR); + throw_error (GENERIC_ERROR, "Remote debugging terminated"); } /* putc_readable - print a character, displaying non-printable chars in