gdbserver: fix uClibc build whithout MMU.

Since commit d86d4aafd4, 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 <romain.naour@openwide.fr>  (tiny change)

	* linux-low.c (linux_read_offsets): Remove get_thread_lwp.

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
This commit is contained in:
Romain Naour 2015-04-14 23:07:34 +02:00 committed by Yao Qi
parent 40d2f8d62e
commit 6282837972
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
* linux-low.c (linux_read_offsets): Remove get_thread_lwp.
2015-04-09 Gary Benson <gbenson@redhat.com>
* hostio-errno.c (errno_to_fileio_error): Remove function.

View File

@ -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;