From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28187 invoked by alias); 15 Nov 2014 13:20:35 -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 28160 invoked by uid 89); 15 Nov 2014 13:20:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_FROM_12LTRDOM autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 15 Nov 2014 13:20:32 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XpdHB-0005U1-0o from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sat, 15 Nov 2014 05:20:29 -0800 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.181.6; Sat, 15 Nov 2014 05:20:28 -0800 From: Yao Qi To: Subject: [PATCH 0/7] Import needed gnulib modules explicitly Date: Sat, 15 Nov 2014 13:20:00 -0000 Message-ID: <1416057612-16155-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00361.txt.bz2 Nowadays, when we import a certain gnulib module, some other dependent modules are imported as well. Some of them are used by gdb, while some are not. However, we may not be aware of this fact. In GDB, we should have a list of imported gnulib modules which are used by GDB, so that it is clear to know what headers and api functions are used from gnulib. I go through all imported gnulib modules, and update update-gnulib.sh to import modules used by GDB explicitly. This is what this patch series is doing. Beside this, this patch series (patch 3 and patch 6) adjusts code to not check header and api and use them directly. *** BLURB HERE *** Yao Qi (7): Make IMPORTED_GNULIB_MODULES in alphabetical order Import alloca explicitly Include alloca.h unconditionally Import memchr explicitly Import wchar and wctype-h explicitly Include wchar.h and wctype.h unconditionally Import errno explicitly gdb/common/common-defs.h | 1 + gdb/configure | 190 ---------------------------------- gdb/configure.ac | 1 - gdb/defs.h | 21 ---- gdb/gdb_wchar.h | 10 +- gdb/gdbserver/configure | 193 +---------------------------------- gdb/gdbserver/configure.ac | 2 - gdb/gdbserver/gdbreplay.c | 4 +- gdb/gdbserver/server.h | 3 - gdb/gnulib/import/Makefile.am | 2 +- gdb/gnulib/import/Makefile.in | 2 +- gdb/gnulib/import/m4/gnulib-cache.m4 | 7 +- gdb/gnulib/update-gnulib.sh | 11 +- gdb/utils.c | 2 +- 14 files changed, 26 insertions(+), 423 deletions(-) -- 1.9.3