From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by sourceware.org (Postfix) with ESMTPS id B85B33858D28 for ; Fri, 10 Feb 2023 23:36:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B85B33858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f41.google.com with SMTP id f23-20020a05600c491700b003dff4480a17so6057650wmp.1 for ; Fri, 10 Feb 2023 15:36:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5ioXCmtf2ccBKUr2mrIuQV3AewEtb4ysSCxfe+dtHzQ=; b=KGToVEjTqDZJ4ICMvSirUxl2zC0SjK20vixwBX0lGPzsGz1c4bHBAIUe30lzeZU9Nv wRaDIs4WuhLxFbd9u38f3EOJyfJQT9k5RRojDj7fR6r8Gq1rBuaPze/D7i4IK2WFc0oB 91OYOKpixGI2OhPyaepNbM35xi30uwXVSpx9zUvD+9M4Dhd7chvJ+YSvRf+8sY4FA3vN zB7RwDE2NiDV6R20eBOIPBCDSKB6yYz2Rq9+77PkjZxTkuVeTkprM5ffSZ8MRfDf/Lcn ZGGmbbFnaW3EHFEG4JR0IXbcH/J+b/yEEy0dm3zVvqzNW4x0w058D7k1fVrQvGRXQ5j/ 8Tpw== X-Gm-Message-State: AO0yUKWZdz7cXATVurcSRKEDDFVFbCtbBVbdiVVILP0SsX139sO/rZnC JORuJSMKHpwu3m/Qgi0JR8wuwOJEISAWJw== X-Google-Smtp-Source: AK7set/mm8OJ/Nt/Od/dUKiUa8MXmRUmwJutY7TBAnEl3Y1i8cRspB4dcTrcZVacSHPtA1HgpjeYPQ== X-Received: by 2002:a05:600c:160a:b0:3df:ffab:a391 with SMTP id m10-20020a05600c160a00b003dfffaba391mr13880207wmn.24.1676072167334; Fri, 10 Feb 2023 15:36:07 -0800 (PST) Received: from localhost ([2001:8a0:f92b:9e00::1fe]) by smtp.gmail.com with ESMTPSA id k21-20020a05600c1c9500b003e01493b136sm10043261wms.43.2023.02.10.15.36.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Feb 2023 15:36:06 -0800 (PST) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/6] Don't throw quit while handling inferior events Date: Fri, 10 Feb 2023 23:35:58 +0000 Message-Id: <20230210233604.2228450-1-pedro@palves.net> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This series implements what I suggested here: https://inbox.sourceware.org/gdb-patches/ab97c553-f406-b094-cdf3-ba031fdea925@palves.net/ ... and then some more. To expose the problem with a testcase, I added a new $_shell convenience function, and I'm using that to send a SIGINT signal to GDB from a breakpoint condition. While writing tests for the new $_shell convenience function, I ran into a number of bugs, also fixed in the series. Pedro Alves (6): Fix "ptype INTERNAL_FUNC" (PR gdb/30105) Make "ptype INTERNAL_FUNCTION" in Ada print like other languages Add new "$_shell(CMD)" internal function Don't throw quit while handling inferior events GC get_active_ext_lang Don't throw quit while handling inferior events, part II gdb/NEWS | 10 ++ gdb/ada-typeprint.c | 7 ++ gdb/c-typeprint.c | 51 ---------- gdb/cli/cli-cmds.c | 89 ++++++++++++++++- gdb/doc/gdb.texinfo | 47 +++++++++ gdb/extension-priv.h | 2 - gdb/extension.c | 70 +++++++++++-- gdb/extension.h | 16 +++ gdb/infrun.c | 54 ++++++++++ gdb/p-typeprint.c | 46 --------- .../gdb.base/bg-exec-sigint-bp-cond.c | 35 +++++++ .../gdb.base/bg-exec-sigint-bp-cond.exp | 98 +++++++++++++++++++ gdb/testsuite/gdb.base/default.exp | 1 + .../gdb.base/internal-functions-ptype.exp | 40 ++++++++ gdb/testsuite/gdb.base/shell.exp | 36 +++++++ gdb/testsuite/gdb.python/py-xmethods.exp | 8 ++ 16 files changed, 498 insertions(+), 112 deletions(-) create mode 100644 gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.c create mode 100644 gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.exp create mode 100644 gdb/testsuite/gdb.base/internal-functions-ptype.exp base-commit: 5036bde964bc1a18282dde536a95aecd0d2c08fb -- 2.36.0