From a4c18aba52ff3bb68f7808ada239050758db8d6c Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Mon, 25 Apr 2022 00:25:50 -0500
Subject: system/gdb: Update to 11.2

---
 system/gdb/APKBUILD         | 10 +++++-----
 system/gdb/ppc-ptregs.patch |  8 +++-----
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/system/gdb/APKBUILD b/system/gdb/APKBUILD
index c6a4883f0..f33e60377 100644
--- a/system/gdb/APKBUILD
+++ b/system/gdb/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: Natanael Copa <ncopa@alpinelinux.org>
 # Maintainer: A. Wilcox <awilfox@adelielinux.org>
 pkgname=gdb
-pkgver=8.3.1
+pkgver=11.2
 pkgrel=0
 pkgdesc="The GNU Debugger"
 url="https://www.sourceware.org/gdb/"
@@ -9,8 +9,8 @@ arch="all"
 options="!check"  # thousands of test failures
 license="GPL-3.0+"
 depends=""
-makedepends="ncurses-dev expat-dev texinfo python3-dev
-	zlib-dev autoconf automake libtool linux-headers perl"
+makedepends="ncurses-dev expat-dev texinfo python3-dev gmp-dev
+	zlib-dev linux-headers perl"
 subpackages="$pkgname-doc $pkgname-lang"
 source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz
 	s390x-use-elf-gdb_fpregset_t.patch
@@ -53,9 +53,9 @@ package() {
 	rm -rf "$pkgdir"/usr/lib
 }
 
-sha512sums="9053a2dc6b9eb921907afbc4cecc75d635aa76df5e8c4f0e5824ccf57cb206b299c19b127fff000b65c334826ff8304a54ff6098428365a8e997cca886c39e9a  gdb-8.3.1.tar.xz
+sha512sums="07e9026423438049b11f4f784d57401ece4e940570f613bd6958b3714fe7fbc2c048470bcce3e7d7d9f93331cdf3881d30dcc964cb113a071143a02b28e5b127  gdb-11.2.tar.xz
 986e68275f7692f39b5d8aedeb9f9e88f0e5bebb3f8c7f104933c525d35ca54fc90e18698c1e3e1009e8a188e5e70d6f252cb39e4c75e37db7bf479017e0da32  s390x-use-elf-gdb_fpregset_t.patch
 04911f87904b62dd7662435f9182b20485afb29ddb3d6398a9d31fef13495f7b70639c77fdae3a40e2775e270d7cd40d0cfd7ddf832372b506808d33c8301e01  ppc-musl.patch
-b75e1c1ee503a1948a7d5b8d90427b5c7d38ded69978056cee0adca222771a5c95ed1ac73127fcae7b795ea94296344eee5fca47e4cd04b418c164a756fb0933  ppc-ptregs.patch
+6de518389970f9749def91bff38c9ed283160066cb0c0b0b62fe191229089f1c040a35c819a934d85e011fd06047bfb603086760fe607a5367b48dec38cfc45a  ppc-ptregs.patch
 3ff31774ba78c1208415289566b901debd815da8b53acefe4a0785e7b2bbcff39585a556d44ff2f7d8d639ebc047620b96e72573acae376d8f23aa98dd1fe286  remove-extraneous-include.patch
 f7beecfcd9c642930dec36d7b02d5a875bcdf07b5fad82a4ef3443332c0f60706d5b48c6ae8bb68bdec0398d3c32ef35e2478dcfb1eb7806b2699cfa2df29e01  arm64.patch"
diff --git a/system/gdb/ppc-ptregs.patch b/system/gdb/ppc-ptregs.patch
index 743bd2e6d..2725a7114 100644
--- a/system/gdb/ppc-ptregs.patch
+++ b/system/gdb/ppc-ptregs.patch
@@ -1,8 +1,6 @@
---- a/gdb/gdbserver/linux-ppc-low.c
-+++ b/gdb/gdbserver/linux-ppc-low.c
-@@ -21,7 +21,6 @@
- #include "linux-low.h"
- 
+--- a/gdbserver/linux-ppc-low.cc
++++ b/gdbserver/linux-ppc-low.cc
+@@ -21,5 +21,4 @@
  #include <elf.h>
 -#include <asm/ptrace.h>
  
-- 
cgit v1.2.3-70-g09d2