X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=gdb-glibc.patch;fp=gdb-glibc.patch;h=b1587154f1a4d524fccc7e24cb0a75061ed63482;hb=4ff63ee8623cec9993fed04c3dfd84906ab7696e;hp=0000000000000000000000000000000000000000;hpb=90086b87c2eb2f3b155c3775fe7c078c29cbdd55;p=packages%2Fcrash.git diff --git a/gdb-glibc.patch b/gdb-glibc.patch new file mode 100644 index 0000000..b158715 --- /dev/null +++ b/gdb-glibc.patch @@ -0,0 +1,23 @@ +Sync ps_get_thread_area() prototype with glibc 2.25. +--- gdb-7.6/gdb/gdb_proc_service.h.orig 2017-04-11 18:57:07.217202451 +0200 ++++ gdb-7.6/gdb/gdb_proc_service.h 2017-04-11 19:06:23.527196100 +0200 +@@ -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/i386-linux-nat.c.orig 2017-04-11 18:57:35.960535456 +0200 ++++ gdb-7.6/gdb/i386-linux-nat.c 2017-04-11 19:06:54.617195745 +0200 +@@ -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