Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@openwide.fr>
To: gdb-patches@sourceware.org
Cc: Romain Naour <romain.naour@openwide.fr>
Subject: [PATCH v2] gdbserver: fix uClibc build whithout MMU.
Date: Tue, 14 Apr 2015 21:07:00 -0000	[thread overview]
Message-ID: <1429045654-6479-1-git-send-email-romain.naour@openwide.fr> (raw)

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>
---
v2: add a ChangleLog entry
    fix commit subject
    rebase on master
---
 gdb/gdbserver/ChangeLog   | 4 ++++
 gdb/gdbserver/linux-low.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 332a516..cf3b998 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-14  Romain Naour <romain.naour@openwide.fr>
+
+	* 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.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 6dd9224..a7f8446 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;
 
-- 
1.9.3


             reply	other threads:[~2015-04-14 21:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14 21:07 Romain Naour [this message]
2015-04-15 14:47 ` Yao Qi
2015-04-15 15:21   ` Joel Brobecker
2015-04-15 16:03     ` Yao Qi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1429045654-6479-1-git-send-email-romain.naour@openwide.fr \
    --to=romain.naour@openwide.fr \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox