From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 468 invoked by alias); 30 Jul 2013 16:12:21 -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 442 invoked by uid 89); 30 Jul 2013 16:12:21 -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 mms1.broadcom.com) (216.31.210.17) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 30 Jul 2013 16:12:21 +0000 Received: from [10.9.208.57] by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Tue, 30 Jul 2013 09:08:15 -0700 X-Server-Uuid: 06151B78-6688-425E-9DE2-57CB27892261 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.1.438.0; Tue, 30 Jul 2013 09:12:04 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.1.438.0; Tue, 30 Jul 2013 09:12:04 -0700 Received: from [10.177.72.91] (unknown [10.177.72.91]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 12A4EF2D72 for ; Tue, 30 Jul 2013 09:12:03 -0700 (PDT) Message-ID: <51F7E5D3.5010300@broadcom.com> Date: Tue, 30 Jul 2013 16:12: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 3/4] Remove remaining uses of deprecated_throw_reason. 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/msg00778.txt.bz2 This removes the final uses of deprecated_throw_reason. In each case I've replaced the use of deprecated_throw_reason with a call to quit. The only change this will have is that the user will now see a "Quit" message, however this seems pretty appropriate to me, what do you think? OK to apply? Thanks, Andrew gdb/ChangeLog 2013-07-30 Andrew Burgess * monitor.c (monitor_interrupt_query): Replace use of deprecated_throw_reason with quit. * nto-procfs.c (interrupt_query): Likewise. * remote-fileio.c (remote_fileio_sig_exit): Likewise. * remote-mips.c (mips_kill): Likewise. * remote.c (interrupt_query): Likewise. diff --git a/gdb/monitor.c b/gdb/monitor.c index beca4e4..0e47acc 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -1036,7 +1036,7 @@ monitor_interrupt_query (void) Give up (and stop debugging it)? "))) { target_mourn_inferior (); - deprecated_throw_reason (RETURN_QUIT); + quit (); } target_terminal_inferior (); diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 0c2d3a8..5109fac 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -694,7 +694,7 @@ interrupt_query (void) Give up (and stop debugging it)? "))) { target_mourn_inferior (); - deprecated_throw_reason (RETURN_QUIT); + quit (); } target_terminal_inferior (); diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c index cc39bdf..5b7ef1d 100644 --- a/gdb/remote-fileio.c +++ b/gdb/remote-fileio.c @@ -513,7 +513,7 @@ remote_fileio_sig_exit (void) static void async_remote_fileio_interrupt (gdb_client_data arg) { - deprecated_throw_reason (RETURN_QUIT); + quit (); } static void 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 @@ -2293,8 +2293,7 @@ Give up (and stop debugging it)? "))) printf_unfiltered ("Ending remote MIPS debugging.\n"); target_mourn_inferior (); - - deprecated_throw_reason (RETURN_QUIT); + quit (); } target_terminal_inferior (); diff --git a/gdb/remote.c b/gdb/remote.c index 1d6ac90..7830e67 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -5165,7 +5165,7 @@ interrupt_query (void) if (target_can_async_p ()) { signal (SIGINT, handle_sigint); - deprecated_throw_reason (RETURN_QUIT); + quit (); } else { @@ -5173,7 +5173,7 @@ interrupt_query (void) Give up (and stop debugging it)? "))) { remote_unpush_target (); - deprecated_throw_reason (RETURN_QUIT); + quit (); } }