From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1473 invoked by alias); 18 Jul 2006 13:40:54 -0000 Received: (qmail 1465 invoked by uid 22791); 18 Jul 2006 13:40:54 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 18 Jul 2006 13:40:50 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G2poe-0004HV-80 for gdb-patches@sourceware.org; Tue, 18 Jul 2006 09:40:48 -0400 Date: Tue, 18 Jul 2006 13:40:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: [RFC] Add expat to the GDB sources Message-ID: <20060718134048.GA15685@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00231.txt.bz2 At the beginning of the year, I proposed adding an XML parsing library to GDB. There was some discussion, and a few alternatives were proposed which would accomplish the same goals, but neither substantially better nor substantially worse. Since then, we've fleshed out the project the XML descriptions were originally intended for (targets which can inform the debugger about their registers), and added another (memory maps, used to control flash writing). I chose expat as the C XML library to use in GDB. It's a bit frustrating (it's a stream-oriented binding, and I find DOM (tree-oriented) bindings much more natural), but it's also useful and of a reasonable size. The most logical candidate for a DOM binding would have been libxml2, and the source for that is excessive to include in GDB. Here is a patch to add an expat directory to the src repository, gdb builds, and gdb release tarballs. Not shown is expat itself. Any comments? I will hold off on this patch for a little while, at least until one of the expat clients is ready. -- Daniel Jacobowitz CodeSourcery