[Pkg-gdb-logs] [gdb] 01/01: fix arm64 build and release.

Hector Oron zumbi at moszumanska.debian.org
Sun Nov 9 11:20:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch jessie
in repository gdb.

commit 9d8e481976827ebe7b25d6301632e6fd0b95f0dc
Author: Héctor Orón Martínez <zumbi at debian.org>
Date:   Sun Nov 9 11:45:20 2014 +0100

    fix arm64 build and release.
    
    Signed-off-by: Héctor Orón Martínez <zumbi at debian.org>
---
 debian/changelog                     | 10 ++++++++
 debian/patches/fix-ftbfs-arm64.patch | 46 ++++++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 57 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 110b23e..412042b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+gdb (7.7.1+dfsg-5) unstable; urgency=medium
+
+  * d/p/fix-ftbfs-arm64.patch
+    - Include asm/ptrace.h. A recent change to glibc removed asm/ptrace.h from
+      user.h for AArch64. This meant that cross-native builds of gdbserver
+      using trunk glibc broke because linux-aarch64-low.c because
+      user_hwdebug_state couldn't be found.
+
+ -- Hector Oron <zumbi at debian.org>  Sun, 09 Nov 2014 11:36:01 +0100
+
 gdb (7.7.1+dfsg-4) unstable; urgency=medium
 
   * d/rules: fix FTBFS on newer dpkg changes.
diff --git a/debian/patches/fix-ftbfs-arm64.patch b/debian/patches/fix-ftbfs-arm64.patch
new file mode 100644
index 0000000..e23e60a
--- /dev/null
+++ b/debian/patches/fix-ftbfs-arm64.patch
@@ -0,0 +1,46 @@
+From 036cd38182bde32d8297b630cd5c861d53b8949e Mon Sep 17 00:00:00 2001
+From: Ramana Radhakrishnan <ramana.radhakrishnan at arm.com>
+Date: Thu, 22 May 2014 16:07:20 +0100
+Subject: [PATCH] Include asm/ptrace.h in aarch64-linux-nat.c
+
+From e9dae05e9c32efda9724330c6d5ade3ca848591d Mon Sep 17 00:00:00 2001
+From: Ramana Radhakrishnan <ramana.radhakrishnan at arm.com>
+Date: Fri, 23 May 2014 09:01:14 +0100
+Subject: [PATCH] Include asm/ptrace.h for linux-aarch64-low.c
+
+A recent change to glibc removed asm/ptrace.h from user.h for
+AArch64. This meant that cross-native builds of gdb using trunk
+glibc broke because aarch64-linux-nat.c because user_hwdebug_state
+couldn't be found.
+
+Fixed by including asm/ptrace.h like other ports.
+
+
+diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
+index 28ad38b..877e702 100644
+--- a/gdb/aarch64-linux-nat.c
++++ b/gdb/aarch64-linux-nat.c
+@@ -33,6 +33,7 @@
+ 
+ #include <sys/ptrace.h>
+ #include <sys/utsname.h>
++#include <asm/ptrace.h>
+ 
+ #include "gregset.h"
+ 
+diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
+index 033e79e..6066e15 100644
+--- a/gdb/gdbserver/linux-aarch64-low.c
++++ b/gdb/gdbserver/linux-aarch64-low.c
+@@ -26,6 +26,7 @@
+ #include <signal.h>
+ #include <sys/user.h>
+ #include <sys/ptrace.h>
++#include <asm/ptrace.h>
+ #include <sys/uio.h>
+ 
+ #include "gdb_proc_service.h"
+
+-- 
+1.7.1
+
diff --git a/debian/patches/series b/debian/patches/series
index c732034..1e86205 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ hurd-adjust-to-startup-with-shell-changes.patch
 hurd-make-MIG-output-parsing-more-robust.patch
 kfreebsd_bug752390.diff
 restore-run.1.patch
+fix-ftbfs-arm64.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gdb/gdb.git



More information about the Pkg-gdb-logs mailing list