From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 47B1B3858C27 for ; Sun, 27 Feb 2022 00:01:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 47B1B3858C27 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-589-_rdmYtuZMzeVWlIPbevohw-1; Sat, 26 Feb 2022 19:01:18 -0500 X-MC-Unique: _rdmYtuZMzeVWlIPbevohw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A5C491006AA5; Sun, 27 Feb 2022 00:01:17 +0000 (UTC) Received: from f35-1.lan (unknown [10.2.16.40]) by smtp.corp.redhat.com (Postfix) with ESMTP id EBDFB18230; Sun, 27 Feb 2022 00:01:16 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Subject: [PATCH v3 0/7] glibc-2.34: Fix gdb.base/gdb-sigterm.exp failure/error Date: Sat, 26 Feb 2022 17:00:44 -0700 Message-Id: <20220227000051.3336149-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_FMBLA_NEWDOM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2022 00:01:26 -0000 This series addresses Pedro's concerns regarding the v2 series posted last year: https://sourceware.org/pipermail/gdb-patches/2021-August/181575.html In particular, it introduces a new exception which will be thrown when GDB receives a SIGTERM. That exception is handled at the top level when possible, though for the extension languages, Python and Guile, a somewhat different approach had to be taken. In order to ensure that this new exception isn't inadvertently swallowed on its way up to the top level, I also did an audit of the try / catch code involving gdb_exception, making adjustments where necessary. Kevin Buettner (7): Introduce gdb_exception_forced_quit Handle gdb SIGTERM by throwing / catching gdb_exception_force_quit Catch gdb_exception_error instead of gdb_exception (in many places) Python QUIT processing updates Guile QUIT processing updates QUIT processing w/ explicit throw for gdb_exception_forced_quit Handle QUIT processing in the scoped_switch_fork_info destructor gdb/ada-lang.c | 2 +- gdb/breakpoint.c | 8 ++++---- gdb/cli/cli-interp.c | 2 +- gdb/event-top.c | 2 ++ gdb/guile/guile-internal.h | 5 +++++ gdb/guile/scm-pretty-print.c | 5 +++++ gdb/guile/scm-type.c | 5 +++++ gdb/guile/scm-value.c | 5 +++++ gdb/i386-linux-tdep.c | 2 +- gdb/inf-loop.c | 2 +- gdb/infcmd.c | 2 +- gdb/infrun.c | 2 +- gdb/jit.c | 2 +- gdb/linux-fork.c | 13 +++++++++++++ gdb/main.c | 12 ++++++++++++ gdb/mi/mi-cmd-break.c | 2 +- gdb/mi/mi-interp.c | 2 +- gdb/mi/mi-main.c | 4 ++++ gdb/objc-lang.c | 2 +- gdb/parse.c | 2 +- gdb/printcmd.c | 2 +- gdb/python/py-finishbreakpoint.c | 5 +++++ gdb/python/py-gdb-readline.c | 4 ++++ gdb/python/py-symbol.c | 5 +++++ gdb/python/py-utils.c | 3 +++ gdb/python/py-value.c | 5 +++++ gdb/record-btrace.c | 2 +- gdb/record-full.c | 2 +- gdb/remote-fileio.c | 15 ++++++++++----- gdb/solib.c | 2 +- gdb/sparc64-linux-tdep.c | 2 +- gdb/symfile-mem.c | 2 +- gdb/top.h | 2 +- gdb/tui/tui-io.c | 4 ++++ gdb/tui/tui.c | 4 ++++ gdb/utils.c | 2 +- gdb/windows-nat.c | 4 ++++ gdbsupport/common-exceptions.cc | 14 ++++++++++++++ gdbsupport/common-exceptions.h | 22 +++++++++++++++++++++- 39 files changed, 153 insertions(+), 29 deletions(-) -- 2.35.1