]> git.pld-linux.org Git - packages/crash.git/blame_incremental - gdb-glibc.patch
- cover more archs in gdb-glibc patch
[packages/crash.git] / gdb-glibc.patch
... / ...
CommitLineData
1Sync ps_get_thread_area() prototype with glibc 2.25.
2--- gdb-7.6/gdb/gdb_proc_service.h.orig 2017-04-11 18:57:07.217202451 +0200
3+++ gdb-7.6/gdb/gdb_proc_service.h 2017-04-11 19:06:23.527196100 +0200
4@@ -115,7 +115,7 @@ extern pid_t ps_getpid (struct ps_procha
5 /* Fetch the special per-thread address associated with the given LWP.
6 This call is only used on a few platforms (most use a normal register).
7 The meaning of the `int' parameter is machine-dependent. */
8-extern ps_err_e ps_get_thread_area (const struct ps_prochandle *,
9+extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
10 lwpid_t, int, psaddr_t *);
11
12
13--- gdb-7.6/gdb/i386-linux-nat.c.orig 2017-04-11 18:57:35.960535456 +0200
14+++ gdb-7.6/gdb/i386-linux-nat.c 2017-04-11 19:06:54.617195745 +0200
15@@ -849,7 +849,7 @@ i386_linux_new_fork (struct lwp_info *pa
16 storage (or its descriptor). */
17
18 ps_err_e
19-ps_get_thread_area (const struct ps_prochandle *ph,
20+ps_get_thread_area (struct ps_prochandle *ph,
21 lwpid_t lwpid, int idx, void **base)
22 {
23 /* NOTE: cagney/2003-08-26: The definition of this buffer is found
24--- gdb-7.6/gdb/aarch64-linux-nat.c.orig 2017-04-11 21:51:39.994282135 +0200
25+++ gdb-7.6/gdb/aarch64-linux-nat.c 2017-04-11 22:17:19.040025470 +0200
26@@ -750,7 +750,7 @@ aarch64_linux_new_fork (struct lwp_info
27 storage (or its descriptor). */
28
29 ps_err_e
30-ps_get_thread_area (const struct ps_prochandle *ph,
31+ps_get_thread_area (struct ps_prochandle *ph,
32 lwpid_t lwpid, int idx, void **base)
33 {
34 struct iovec iovec;
35--- gdb-7.6/gdb/amd64-linux-nat.c.orig 2017-04-11 21:51:39.930945697 +0200
36+++ gdb-7.6/gdb/amd64-linux-nat.c 2017-04-11 22:16:56.868930201 +0200
37@@ -493,7 +493,7 @@ amd64_linux_new_fork (struct lwp_info *p
38 a request for a thread's local storage address. */
39
40 ps_err_e
41-ps_get_thread_area (const struct ps_prochandle *ph,
42+ps_get_thread_area (struct ps_prochandle *ph,
43 lwpid_t lwpid, int idx, void **base)
44 {
45 if (gdbarch_bfd_arch_info (target_gdbarch ())->bits_per_word == 32)
46--- gdb-7.6/gdb/arm-linux-nat.c.orig 2017-04-11 21:51:37.884178700 +0200
47+++ gdb-7.6/gdb/arm-linux-nat.c 2017-04-11 22:17:34.610794784 +0200
48@@ -613,7 +613,7 @@ supply_fpregset (struct regcache *regcac
49 /* Fetch the thread-local storage pointer for libthread_db. */
50
51 ps_err_e
52-ps_get_thread_area (const struct ps_prochandle *ph,
53+ps_get_thread_area (struct ps_prochandle *ph,
54 lwpid_t lwpid, int idx, void **base)
55 {
56 if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)
57--- gdb-7.6/gdb/m68klinux-nat.c.orig 2017-04-11 21:51:37.870844712 +0200
58+++ gdb-7.6/gdb/m68klinux-nat.c 2017-04-11 22:17:56.778556705 +0200
59@@ -568,7 +568,7 @@ fetch_core_registers (struct regcache *r
60 /* Fetch the thread-local storage pointer for libthread_db. */
61
62 ps_err_e
63-ps_get_thread_area (const struct ps_prochandle *ph,
64+ps_get_thread_area (struct ps_prochandle *ph,
65 lwpid_t lwpid, int idx, void **base)
66 {
67 if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) < 0)
68--- gdb-7.6/gdb/mips-linux-nat.c.orig 2017-04-11 21:51:38.040853046 +0200
69+++ gdb-7.6/gdb/mips-linux-nat.c 2017-04-11 22:18:09.319176306 +0200
70@@ -154,7 +154,7 @@ mips64_linux_register_addr (struct gdbar
71 /* Fetch the thread-local storage pointer for libthread_db. */
72
73 ps_err_e
74-ps_get_thread_area (const struct ps_prochandle *ph,
75+ps_get_thread_area (struct ps_prochandle *ph,
76 lwpid_t lwpid, int idx, void **base)
77 {
78 if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)
This page took 0.172083 seconds and 4 git commands to generate.