git: 60077ba44d8c - main - devel/gdb: Fix support to readline 8.2

From: Luca Pizzamiglio <pizzamig_at_FreeBSD.org>
Date: Thu, 20 Oct 2022 07:22:23 UTC
The branch main has been updated by pizzamig:

URL: https://cgit.FreeBSD.org/ports/commit/?id=60077ba44d8cd1b2f5a9bce9cb2ff060b1637108

commit 60077ba44d8cd1b2f5a9bce9cb2ff060b1637108
Author:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
AuthorDate: 2022-10-20 07:21:15 +0000
Commit:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
CommitDate: 2022-10-20 07:21:15 +0000

    devel/gdb: Fix support to readline 8.2
    
    While here, half fix a warning in kgdb
---
 devel/gdb/Makefile                    |  2 +-
 devel/gdb/files/kgdb/fbsd-kvm.c       |  4 ++--
 devel/gdb/files/patch-gdb-completer.c | 11 +++++++++++
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile
index fc967cbdb352..940947366000 100644
--- a/devel/gdb/Makefile
+++ b/devel/gdb/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gdb
 DISTVERSION=	12.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	GNU
 
diff --git a/devel/gdb/files/kgdb/fbsd-kvm.c b/devel/gdb/files/kgdb/fbsd-kvm.c
index e1166a54d52e..9ea3ca250540 100644
--- a/devel/gdb/files/kgdb/fbsd-kvm.c
+++ b/devel/gdb/files/kgdb/fbsd-kvm.c
@@ -498,7 +498,7 @@ fbsd_kvm_target::update_thread_list()
 #endif
 #if 0
 	struct target_ops *tb;
-	
+
 	if (kvm != NULL)
 		return;
 
@@ -511,7 +511,7 @@ fbsd_kvm_target::update_thread_list()
 std::string
 fbsd_kvm_target::pid_to_str(ptid_t ptid)
 {
-  return string_printf (_("Thread %ld"), ptid.tid ());
+  return string_printf (_("Thread %llu"), ptid.tid ());
 }
 
 bool
diff --git a/devel/gdb/files/patch-gdb-completer.c b/devel/gdb/files/patch-gdb-completer.c
new file mode 100644
index 000000000000..2611359b7424
--- /dev/null
+++ b/devel/gdb/files/patch-gdb-completer.c
@@ -0,0 +1,11 @@
+--- gdb/completer.c.orig	2022-10-18 21:49:26.647324000 +0200
++++ gdb/completer.c	2022-10-18 22:07:35.218698000 +0200
+@@ -2011,7 +2011,7 @@
+       rl_basic_quote_characters = NULL;
+     }
+ 
+-  return rl_completer_word_break_characters;
++  return (char *)rl_completer_word_break_characters;
+ }
+ 
+ char *