From owner-dev-commits-ports-main@freebsd.org Sat Jul 3 09:57:36 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA8D964FB1F; Sat, 3 Jul 2021 09:57:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GH6nX4nWBz4lgT; Sat, 3 Jul 2021 09:57:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 88EE6257D9; Sat, 3 Jul 2021 09:57:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1639vaJ5054865; Sat, 3 Jul 2021 09:57:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1639vava054864; Sat, 3 Jul 2021 09:57:36 GMT (envelope-from git) Date: Sat, 3 Jul 2021 09:57:36 GMT Message-Id: <202107030957.1639vava054864@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Luca Pizzamiglio Subject: git: 65af5b9da153 - main - devel/gdb: Add a hack to fix the kill storm bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pizzamig X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 65af5b9da1535eba81a41c88e386aa1729ceb60c Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2021 09:57:36 -0000 The branch main has been updated by pizzamig: URL: https://cgit.FreeBSD.org/ports/commit/?id=65af5b9da1535eba81a41c88e386aa1729ceb60c commit 65af5b9da1535eba81a41c88e386aa1729ceb60c Author: Luca Pizzamiglio AuthorDate: 2021-07-03 09:54:51 +0000 Commit: Luca Pizzamiglio CommitDate: 2021-07-03 09:54:51 +0000 devel/gdb: Add a hack to fix the kill storm bug While here, fix the debug install avoid stripping gdb Bump portrevision PR: 256838 Reported by: arrowd@FreeBSD.org Co-Author: arrowd@FreeBSD.org --- devel/gdb/Makefile | 3 ++- devel/gdb/files/patch-gdb_inflow.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 308c44bd9740..b2afab9118ad 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -2,7 +2,7 @@ PORTNAME= gdb DISTVERSION= 10.2 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= GNU @@ -68,6 +68,7 @@ OPTIONS_SUB= yes BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline DEBUG_CFLAGS= -g +DEBUG_VARS= STRIP= GUILE_CONFIGURE_WITH= guile GUILE_LIB_DEPENDS= libguile-2.2.so:lang/guile2 NLS_USES= gettext-runtime diff --git a/devel/gdb/files/patch-gdb_inflow.c b/devel/gdb/files/patch-gdb_inflow.c new file mode 100644 index 000000000000..ffac898e0d85 --- /dev/null +++ b/devel/gdb/files/patch-gdb_inflow.c @@ -0,0 +1,14 @@ +--- gdb/inflow.c.orig 2021-07-03 10:52:57.144161000 +0200 ++++ gdb/inflow.c 2021-07-03 10:55:06.776399000 +0200 +@@ -881,7 +881,10 @@ + pass_signal (int signo) + { + #ifndef _WIN32 +- kill (inferior_ptid.pid (), SIGINT); ++ if (inferior_ptid.pid () ) ++ kill (inferior_ptid.pid (), SIGINT); ++ else ++ kill (current_inferior ()->pid, SIGINT); + #endif + } +