From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10320 invoked by alias); 6 Sep 2016 23:03:28 -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 10307 invoked by uid 89); 6 Sep 2016 23:03:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:934 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Sep 2016 23:03:26 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5CFA4800A8 for ; Tue, 6 Sep 2016 23:03:25 +0000 (UTC) Received: from cascais.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u86N3Ov1000681 for ; Tue, 6 Sep 2016 19:03:24 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [pushed master+7.12 0/2] new-ui command: gdb internal errors if input is already pending Date: Tue, 06 Sep 2016 23:03:00 -0000 Message-Id: <1473203004-28598-1-git-send-email-palves@redhat.com> X-SW-Source: 2016-09/txt/msg00059.txt.bz2 This series fixes a bug I tripped on while playing with the new-ui command. The real fix is in patch #2. Patch #1 is just a small cleanup. I've pushed them both to master and the 7.12 branch. Pedro Alves (2): Introduce make_cleanup_restore_current_ui new-ui command: gdb internal errors if input is already pending gdb/ChangeLog | 17 ++++ gdb/testsuite/ChangeLog | 9 ++ gdb/event-top.c | 14 ++- gdb/infcall.c | 2 +- gdb/infrun.c | 2 +- gdb/testsuite/gdb.base/new-ui-pending-input.c | 26 +++++ gdb/testsuite/gdb.base/new-ui-pending-input.exp | 123 ++++++++++++++++++++++++ gdb/testsuite/lib/gdb.exp | 22 ++++- gdb/top.c | 13 ++- gdb/top.h | 4 +- 10 files changed, 221 insertions(+), 11 deletions(-) create mode 100644 gdb/testsuite/gdb.base/new-ui-pending-input.c create mode 100644 gdb/testsuite/gdb.base/new-ui-pending-input.exp -- 2.5.5