From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15739 invoked by alias); 16 Jul 2014 16:19:39 -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 15714 invoked by uid 89); 16 Jul 2014 16:19:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 16 Jul 2014 16:19:37 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6GGJaeQ027789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 Jul 2014 12:19:36 -0400 Received: from blade.nx (ovpn-116-36.ams2.redhat.com [10.36.116.36]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6GGJZax026422 for ; Wed, 16 Jul 2014 12:19:35 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 6E6C22640C5 for ; Wed, 16 Jul 2014 15:17:30 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 00/15 v2] Common code cleanups Date: Wed, 16 Jul 2014 16:19:00 -0000 Message-Id: <1405520243-17282-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00428.txt.bz2 Hi all, This series is version 2 of the common code cleanups patch I posted last Wednesday. I'll repeat the description of the series from the previous [PATCH 00/15] email: The directories "common", "nat" and "target" contain code shared between GDB and gdbserver. Each C file is built at least twice, once for GDB and once for gdbserver, and many of the files use "#ifdef GDBSERVER" to source headers from GDB or gdbserver as appropriate. This means that while the code is shared, the supporting definitions are not, and in some cases these are different in non-trivial ways. In other places, GDBSERVER checks are used to cope where GDB and gdbserver do the same thing in different ways. This series reduces the number of GDBSERVER checks from 34 to 11. Tom Tromey started this work back in January, and I've updated it and extended it a little. Most of the remaining checks are to select the correct gnulib config header. I've mailed details of changes I've made to the individual patches to this list and to the reviewers who suggested them already, so I won't go over them again. Built and regtested on x86-64 RHEL6.5. mips-linux-watch.h changes checked by cross-building gdbserver with the Sourcery CodeBench for MIPS GNU/Linux toolchain. Ok to commit? Thanks, Gary -- http://gbenson.net/