devel/gdb: sync with upstream

Taken from: HardenedBSD
This commit is contained in:
Franco Fichtner 2021-07-05 10:57:32 +02:00
parent 617d403f21
commit 9eae736796
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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
}