Subject: [PATCH] gnu: Add gdb-multiarch.
From: [email-masked]
To: [email-masked]
Cc: 宋文武 <[email-masked]>
Date: Sun, 7 May 2023 09:29:18 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

From: 宋文武 <[email-masked]>

* gnu/packages/gdb.scm (gdb-multiarch): New variable.
---
 gnu/packages/gdb.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index 82050d9ac5..d8ff4b8ced 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -170,6 +170,19 @@ (define-public gdb
   ;; The "default" version.
   gdb-12)
 
+(define-public gdb-multiarch
+  (package/inherit gdb-12
+    (name "gdb-multiarch")
+    (arguments
+     `(#:configure-flags
+       (list "--enable-targets=all"
+             "--enable-multilib"
+             "--enable-interwork"
+             "--enable-languages=c,c++"
+             "--disable-nls")
+       ,@(package-arguments gdb-12)))
+    (synopsis "The GNU debugger (with all architectures enabled)")))
+
 (define-public gdb-minimal
   (package/inherit gdb-12
     (name "gdb-minimal")

base-commit: 5dcfe798f44753e18104541e83591cac6e053525
-- 
2.39.2