From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28653 invoked by alias); 16 Jan 2008 21:42:17 -0000 Received: (qmail 28645 invoked by uid 22791); 16 Jan 2008 21:42:16 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Jan 2008 21:41:45 +0000 Received: (qmail 19545 invoked from network); 16 Jan 2008 21:41:44 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 16 Jan 2008 21:41:44 -0000 To: Doug Evans Cc: gdb@sourceware.org Subject: Re: gdbserver + libiberty? References: <20080115172615.232D61C7245@localhost> <20080115202400.GA8519@caradoc.them.org> From: Jim Blandy Date: Wed, 16 Jan 2008 21:42:00 -0000 In-Reply-To: <20080115202400.GA8519@caradoc.them.org> (Daniel Jacobowitz's message of "Tue, 15 Jan 2008 15:24:00 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00128.txt.bz2 Daniel Jacobowitz writes: > On Tue, Jan 15, 2008 at 10:41:37AM -0800, Doug Evans wrote: >> I couldn't find any docs on building gdbserver for cross targets (i.e >> --host != --target), got any pointers? It's only useful for targets >> that otherwise can be build natively (AIUIp. Would gdbserver ever be >> built with CC_FOR_TARGET whereas gdb got built with CC? I can't find >> any code to handle this in gdb or the top level configury. And if not >> would gdbserver ever need a different libiberty than the one gdb is >> linked with? > > You can build gdbserver by running src/gdb/gdbserver/configure and make; > the top level scripts are not involved at all, so you don't get a > libiberty. We need to not break that. This is arcane magic; could we document it somewhere? gdb.texinfo's Appendix B describes "Installing GDB". gdb/README also documents configuration options, and has a section on gdbserver.