From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28766 invoked by alias); 28 Mar 2007 17:57:19 -0000 Received: (qmail 28745 invoked by uid 22791); 28 Mar 2007 17:57:18 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Mar 2007 18:57:09 +0100 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id DCBB148D0F7; Wed, 28 Mar 2007 13:57:06 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23341-01-10; Wed, 28 Mar 2007 13:57:06 -0400 (EDT) Received: from joel.gnat.com (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 6114348D0F4; Wed, 28 Mar 2007 13:57:06 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 1199CE7B43; Wed, 28 Mar 2007 13:58:18 -0400 (EDT) Date: Wed, 28 Mar 2007 17:57:00 -0000 From: Joel Brobecker To: Luis Machado Cc: gdb@sourceware.org Subject: Re: gdbarch script's purpose Message-ID: <20070328175818.GE3866@adacore.com> References: <1175104141.4417.3.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1175104141.4417.3.camel@localhost> User-Agent: Mutt/1.4.2.2i 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: 2007-03/txt/msg00331.txt.bz2 > What is exactly the purpose of the gdb/gdbarch.sh script and where in > the build process it's used? The purpose of this script is to generate the gdbarch.[hc] files. Most of this file is very repetitive, so gdbarch.sh contains the useful info, without any of the repetition, and then generates the C files that we then compile. This script is not invoked during the build, but only manually, when the gdbarch vector is modified. In other words, when we modify gdbarch.sh, we rerun it, and commit a new version of gdbarch.[ch]. -- Joel