From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23505 invoked by alias); 20 Sep 2012 16:34:42 -0000 Received: (qmail 23277 invoked by uid 22791); 20 Sep 2012 16:34:40 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Sep 2012 16:34:17 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 376B32900E1; Thu, 20 Sep 2012 18:34:27 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AeCvA0u0uNHb; Thu, 20 Sep 2012 18:34:27 +0200 (CEST) Received: from chinon.act-europe.fr (chinon.act-europe.fr [10.10.0.182]) by mel.act-europe.fr (Postfix) with ESMTP id 25D2C29000B; Thu, 20 Sep 2012 18:34:27 +0200 (CEST) Received: by chinon.act-europe.fr (Postfix, from userid 507) id 3970FD8B81; Thu, 20 Sep 2012 18:34:14 +0200 (CEST) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [PATCH 3/4] Add procfs_find_LDT_entry declaration (procfs.h). Date: Thu, 20 Sep 2012 16:34:00 -0000 Message-Id: <1348158841-2313-4-git-send-email-brobecker@adacore.com> In-Reply-To: <1348158841-2313-1-git-send-email-brobecker@adacore.com> References: <1348158841-2313-1-git-send-email-brobecker@adacore.com> 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 X-SW-Source: 2012-09/txt/msg00407.txt.bz2 Add a declaration for procfs_find_LDT_entry in order to prevent a compiler warning about this function missing one. This also helps making sure that declaration and definition remain consistent. gdb/ChangeLog: * procfs.h (procfs_find_LDT_entry): Add declaration. * sol-thread.c (ps_lgetLDT): Delete local declaration of function procfs_find_LDT_entry. --- gdb/procfs.h | 7 +++++++ gdb/sol-thread.c | 1 - 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/gdb/procfs.h b/gdb/procfs.h index 8293322..9dbf531 100644 --- a/gdb/procfs.h +++ b/gdb/procfs.h @@ -34,3 +34,10 @@ extern void procfs_use_watchpoints (struct target_ops *t); 'live' procinfo. */ extern ptid_t procfs_first_available (void); + +#if (defined(__i386__) || defined(__x86_64__)) && defined (sun) +struct ssd; + +extern struct ssd *procfs_find_LDT_entry (ptid_t); +#endif + diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index 3577b5a..cd37615 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -1108,7 +1108,6 @@ ps_lgetLDT (gdb_ps_prochandle_t ph, lwpid_t lwpid, struct ssd *pldt) { /* NOTE: only used on Solaris, therefore OK to refer to procfs.c. */ - extern struct ssd *procfs_find_LDT_entry (ptid_t); struct ssd *ret; /* FIXME: can't I get the process ID from the prochandle or -- 1.6.5.rc2