From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23191 invoked by alias); 12 Mar 2004 20:55:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23178 invoked from network); 12 Mar 2004 20:55:17 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 12 Mar 2004 20:55:17 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1B1tgb-0000Fw-B5 for ; Fri, 12 Mar 2004 15:55:17 -0500 Date: Fri, 19 Mar 2004 00:09:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: [patch] Remove an 'extern int errno' Message-ID: <20040312205517.GA944@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i X-SW-Source: 2004-03/txt/msg00288.txt.bz2 Message-ID: <20040319000900.5zDpPbGy1Q1zJgf48XPFagSrWQbL1AARru2ogKZgOQM@z> This is harmless, since was included by server.h anyway; but the 'extern int errno' declaration is incorrect and should always be removed in favor of . Committed to HEAD and 6.1. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer 2004-03-12 Daniel Jacobowitz * linux-low.c: Include . Remove extern declaration of errno. Index: linux-low.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v retrieving revision 1.30 diff -u -p -r1.30 linux-low.c --- linux-low.c 5 Mar 2004 03:43:19 -0000 1.30 +++ linux-low.c 12 Mar 2004 20:49:24 -0000 @@ -34,6 +34,7 @@ #include #include #include +#include /* ``all_threads'' is keyed by the LWP ID - it should be the thread ID instead, however. This requires changing the ID in place when we go from !using_threads @@ -68,8 +69,6 @@ struct pending_signals #ifdef HAVE_LINUX_REGSETS static int use_regsets_p = 1; #endif - -extern int errno; int debug_threads = 0;