Fix for a 32-bit MIPS compilation error if glibc-2.25 or later has

been installed on the host build machine.  Without the patch, the
build fails with the error message "mips-linux-nat.c:157:1: error:
conflicting types for 'ps_get_thread_area'".
(dengke.du@windriver.com)
This commit is contained in:
Dave Anderson 2017-05-04 10:24:50 -04:00
parent ad3b84766b
commit 3ef519107a
1 changed files with 12 additions and 0 deletions

View File

@ -53,3 +53,15 @@
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)