From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91943 invoked by alias); 14 Apr 2015 21:07:42 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 91933 invoked by uid 89); 14 Apr 2015 21:07:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 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; Tue, 14 Apr 2015 21:07:40 +0000 Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp1-g21.free.fr (Postfix) with ESMTP id 9B1A69400A4; Tue, 14 Apr 2015 23:05:34 +0200 (CEST) From: Romain Naour To: gdb-patches@sourceware.org Cc: Romain Naour Subject: [PATCH v2] gdbserver: fix uClibc build whithout MMU. Date: Tue, 14 Apr 2015 21:07:00 -0000 Message-Id: <1429045654-6479-1-git-send-email-romain.naour@openwide.fr> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00540.txt.bz2 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 --- 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 + + * 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 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