Patchwork [PATCH:,gdb-7.9-branch] gdbserver: fix uClibc whithout MMU.

login
register
mail settings
Submitter Romain Naour
Date April 10, 2015, 10:10 p.m.
Message ID <1428703843-28835-1-git-send-email-romain.naour@openwide.fr>
Download mbox | patch
Permalink /patch/6152/
State New
Headers show

Comments

Romain Naour - April 10, 2015, 10:10 p.m.
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

Signed-off-by: Romain Naour <romain.naour@openwide.fr>

Conflicts:
	gdb/gdbserver/linux-low.c
---
 gdb/gdbserver/linux-low.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 4d19c87..23f012d 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -4933,7 +4933,8 @@  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;