From: Romain Naour Date: Tue, 14 Apr 2015 21:07:34 +0000 (+0200) Subject: gdbserver: fix uClibc build whithout MMU. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6282837972a5c7b89968319caf821fcbd2a166bb;p=binutils-gdb.git gdbserver: fix uClibc build whithout MMU. Since commit d86d4aafd4fa22fa4cccb83253fb187b03f97f48, the pid must be retrieved from current_thread. The change has not been made in the function linux_read_offsets(). Fixes: http://autobuild.buildroot.net/results/9e4/9e4df085319e346803c26c65478accb27eb950ae/build-end.log 2015-04-14 Romain Naour (tiny change) * linux-low.c (linux_read_offsets): Remove get_thread_lwp. Signed-off-by: Romain Naour --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 332a5161ec7..165c42ca997 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-04-14 Romain Naour (tiny change) + + * linux-low.c (linux_read_offsets): Remove get_thread_lwp. + 2015-04-09 Gary Benson * hostio-errno.c (errno_to_fileio_error): Remove function. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 6dd922477d0..a7f8446f736 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -5209,7 +5209,7 @@ static int linux_read_offsets (CORE_ADDR *text_p, CORE_ADDR *data_p) { unsigned long text, text_end, data; - int pid = lwpid_of (get_thread_lwp (current_thread)); + int pid = lwpid_of (current_thread); errno = 0;