ports/devel/gdb/files/patch-gdb_inflow.c
Luca Pizzamiglio 65af5b9da1 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
2021-07-03 11:54:51 +02:00

14 lines
355 B
C

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