From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27677 invoked by alias); 18 Oct 2006 13:53:15 -0000 Received: (qmail 27652 invoked by uid 22791); 18 Oct 2006 13:53:14 -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; Wed, 18 Oct 2006 13:53:08 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GaBr0-0001s1-RB for gdb@sourceware.org; Wed, 18 Oct 2006 09:53:06 -0400 Date: Wed, 18 Oct 2006 13:53:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: GDB printf command Message-ID: <20061018135305.GA7083@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <4534C695.2050206@st.com> <20061017132426.GA28323@nevyn.them.org> <4534E3FF.9030505@st.com> <20061017142451.GA30620@nevyn.them.org> <4534EC06.3050200@st.com> <20061017145411.GA31447@nevyn.them.org> <45360ECE.4060506@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45360ECE.4060506@st.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00134.txt.bz2 On Wed, Oct 18, 2006 at 12:23:58PM +0100, Andrew STUBBS wrote: > Daniel Jacobowitz wrote: > >Once we have the structure in place, we could basically replace > >printf_fetchargs (which uses va_arg) with something that operated on > >our list of values and did appropriate type checking / casts, then > >hand it back to the gnulib printf routine. > > So you're not talking about changing anything outside of printcmd.c, > just adding a few files from another project and rewriting the relevant > bits of the printf command? Right. Our value infrastructure is more than adequate for what we need. We'll end up with more total code, but less of our own; gnulib will do most of the heavy lifting. > OK, that sounds like a plan. Where do we start? Well, the very first thing is going to be a version of gnulib that lets us reuse its printf this way. I'll contact the gnulib maintainers about that right now, and get back to you. -- Daniel Jacobowitz CodeSourcery