From patchwork Mon Jan 11 11:57:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 10325 Received: (qmail 32023 invoked by alias); 11 Jan 2016 11:57:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 32007 invoked by uid 89); 11 Jan 2016 11:57:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=DOC, @section, Hx-languages-length:1530, Stop X-HELO: mail-pf0-f174.google.com Received: from mail-pf0-f174.google.com (HELO mail-pf0-f174.google.com) (209.85.192.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 11 Jan 2016 11:57:51 +0000 Received: by mail-pf0-f174.google.com with SMTP id 65so43921546pff.2 for ; Mon, 11 Jan 2016 03:57:51 -0800 (PST) X-Received: by 10.98.9.220 with SMTP id 89mr25676726pfj.17.1452513469447; Mon, 11 Jan 2016 03:57:49 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id ze5sm15889901pac.32.2016.01.11.03.57.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jan 2016 03:57:48 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Cc: palves@redhat.com Subject: [PATCH] [DOC] Interrupt when program is stopped Date: Mon, 11 Jan 2016 11:57:40 +0000 Message-Id: <1452513460-24295-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes This patch changes the document that interrupt (ctrl-c) is not ignored when the program is stopped. When the interrupt was supported in remote target, people thought interrupt is meaningless when the program is stopped. See https://www.sourceware.org/ml/gdb/2005-11/msg00349.html https://www.sourceware.org/ml/gdb-patches/2005-11/msg00307.html recently we find it is hard to preserve this feature "ignore interrupt while program is stopped" when we fix some other bugs. See https://sourceware.org/ml/gdb-patches/2016-01/msg00039.html so we think we can go to the simpler approach "not ignoring ctrl-c when program is stopped". As a result, we tweak the documentation here. gdb/doc: 2016-01-11 Yao Qi * gdb.texinfo (Interrupts): Update the document on handling interrupt when program is stopped. --- gdb/doc/gdb.texinfo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 0778383..da9c7db 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -38130,7 +38130,8 @@ reply packets (@pxref{Stop Reply Packets}) to @value{GDBN} as a result of successfully stopping the program in all-stop mode, and a stop reply for each stopped thread in non-stop mode. Interrupts received while the -program is stopped are discarded. +program is stopped are queued and the program will be interrupted when +it is resumed next time. @node Notification Packets @section Notification Packets