From patchwork Fri Apr 10 22:10:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 6152 Received: (qmail 843 invoked by alias); 10 Apr 2015 22:10:57 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 795 invoked by uid 89); 10 Apr 2015 22:10:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: smtp1-g21.free.fr Received: from smtp1-g21.free.fr (HELO smtp1-g21.free.fr) (212.27.42.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 10 Apr 2015 22:10:54 +0000 Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp1-g21.free.fr (Postfix) with ESMTP id EF6B6940008; Sat, 11 Apr 2015 00:08:57 +0200 (CEST) From: Romain Naour To: gdb-patches@sourceware.org Cc: Romain Naour Subject: [PATCH: gdb-7.9-branch] gdbserver: fix uClibc whithout MMU. Date: Sat, 11 Apr 2015 00:10:43 +0200 Message-Id: <1428703843-28835-1-git-send-email-romain.naour@openwide.fr> X-IsSubscribed: yes 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 Conflicts: gdb/gdbserver/linux-low.c --- gdb/gdbserver/linux-low.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;