-
Notifications
You must be signed in to change notification settings - Fork 1
/
gdb-7.6-proc_service.h.patch
67 lines (59 loc) · 2.55 KB
/
gdb-7.6-proc_service.h.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
--- gdb-7.6/gdb/gdb_proc_service.h.orig
+++ gdb-7.6/gdb/gdb_proc_service.h
@@ -115,7 +115,7 @@ extern pid_t ps_getpid (struct ps_procha
/* Fetch the special per-thread address associated with the given LWP.
This call is only used on a few platforms (most use a normal register).
The meaning of the `int' parameter is machine-dependent. */
-extern ps_err_e ps_get_thread_area (const struct ps_prochandle *,
+extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
lwpid_t, int, psaddr_t *);
--- gdb-7.6/gdb/amd64-linux-nat.c.orig
+++ gdb-7.6/gdb/amd64-linux-nat.c
@@ -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/aarch64-linux-nat.c.orig
+++ gdb-7.6/gdb/aarch64-linux-nat.c
@@ -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/arm-linux-nat.c.orig
+++ gdb-7.6/gdb/arm-linux-nat.c
@@ -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/i386-linux-nat.c.orig
+++ gdb-7.6/gdb/i386-linux-nat.c
@@ -849,7 +849,7 @@ i386_linux_new_fork (struct lwp_info *pa
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)
{
/* NOTE: cagney/2003-08-26: The definition of this buffer is found
--- gdb-7.6/gdb/mips-linux-nat.c.orig
+++ gdb-7.6/gdb/mips-linux-nat.c
@@ -154,7 +154,7 @@ mips64_linux_register_addr (struct gdbarch *gdbarch, int regno, int store)
/* 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)