[packages/crash] - cover more archs in gdb-glibc patch

qboosh qboosh at pld-linux.org
Tue Apr 11 22:20:42 CEST 2017


commit 50dde1f3effe359feebf5a18619b1fb2485af741
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 11 22:20:50 2017 +0200

    - cover more archs in gdb-glibc patch

 gdb-glibc.patch | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/gdb-glibc.patch b/gdb-glibc.patch
index b158715..310b97e 100644
--- a/gdb-glibc.patch
+++ b/gdb-glibc.patch
@@ -21,3 +21,58 @@ Sync ps_get_thread_area() prototype with glibc 2.25.
  		    lwpid_t lwpid, int idx, void **base)
  {
    /* NOTE: cagney/2003-08-26: The definition of this buffer is found
+--- gdb-7.6/gdb/aarch64-linux-nat.c.orig	2017-04-11 21:51:39.994282135 +0200
++++ gdb-7.6/gdb/aarch64-linux-nat.c	2017-04-11 22:17:19.040025470 +0200
+@@ -750,7 +750,7 @@ aarch64_linux_new_fork (struct lwp_info
+    storage (or its descriptor).  */
+ 
+ ps_err_e
+-ps_get_thread_area (const struct ps_prochandle *ph,
++ps_get_thread_area (struct ps_prochandle *ph,
+ 		    lwpid_t lwpid, int idx, void **base)
+ {
+   struct iovec iovec;
+--- gdb-7.6/gdb/amd64-linux-nat.c.orig	2017-04-11 21:51:39.930945697 +0200
++++ gdb-7.6/gdb/amd64-linux-nat.c	2017-04-11 22:16:56.868930201 +0200
+@@ -493,7 +493,7 @@ amd64_linux_new_fork (struct lwp_info *p
+    a request for a thread's local storage address.  */
+ 
+ ps_err_e
+-ps_get_thread_area (const struct ps_prochandle *ph,
++ps_get_thread_area (struct ps_prochandle *ph,
+                     lwpid_t lwpid, int idx, void **base)
+ {
+   if (gdbarch_bfd_arch_info (target_gdbarch ())->bits_per_word == 32)
+--- gdb-7.6/gdb/arm-linux-nat.c.orig	2017-04-11 21:51:37.884178700 +0200
++++ gdb-7.6/gdb/arm-linux-nat.c	2017-04-11 22:17:34.610794784 +0200
+@@ -613,7 +613,7 @@ supply_fpregset (struct regcache *regcac
+ /* Fetch the thread-local storage pointer for libthread_db.  */
+ 
+ ps_err_e
+-ps_get_thread_area (const struct ps_prochandle *ph,
++ps_get_thread_area (struct ps_prochandle *ph,
+                     lwpid_t lwpid, int idx, void **base)
+ {
+   if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)
+--- gdb-7.6/gdb/m68klinux-nat.c.orig	2017-04-11 21:51:37.870844712 +0200
++++ gdb-7.6/gdb/m68klinux-nat.c	2017-04-11 22:17:56.778556705 +0200
+@@ -568,7 +568,7 @@ fetch_core_registers (struct regcache *r
+ /* Fetch the thread-local storage pointer for libthread_db.  */
+ 
+ ps_err_e
+-ps_get_thread_area (const struct ps_prochandle *ph, 
++ps_get_thread_area (struct ps_prochandle *ph, 
+ 		    lwpid_t lwpid, int idx, void **base)
+ {
+   if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) < 0)
+--- gdb-7.6/gdb/mips-linux-nat.c.orig	2017-04-11 21:51:38.040853046 +0200
++++ gdb-7.6/gdb/mips-linux-nat.c	2017-04-11 22:18:09.319176306 +0200
+@@ -154,7 +154,7 @@ mips64_linux_register_addr (struct gdbar
+ /* Fetch the thread-local storage pointer for libthread_db.  */
+ 
+ ps_err_e
+-ps_get_thread_area (const struct ps_prochandle *ph,
++ps_get_thread_area (struct ps_prochandle *ph,
+                     lwpid_t lwpid, int idx, void **base)
+ {
+   if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crash.git/commitdiff/50dde1f3effe359feebf5a18619b1fb2485af741



More information about the pld-cvs-commit mailing list