Skip to content

Commit

Permalink
Fix for a 32-bit MIPS compilation error if glibc-2.25 or later has
Browse files Browse the repository at this point in the history
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'".
([email protected])
  • Loading branch information
Dave Anderson committed May 4, 2017
1 parent ad3b847 commit 3ef5191
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gdb-7.6-proc_service.h.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 3ef5191

Please sign in to comment.