This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: A.R. Index for GDB version 6.1.91_20040719
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Elizabeth Chastain <mec dot gnu at mindspring dot com>
- Cc: brobecker at gnat dot com, eliz at gnu dot org, ac131313 at redhat dot com,gdb at sources dot redhat dot com
- Date: Mon, 19 Jul 2004 17:03:34 -0400
- Subject: Re: A.R. Index for GDB version 6.1.91_20040719
- References: <20040719210150.DC6614B104@berman.michael-chastain.com>
On Mon, Jul 19, 2004 at 05:01:50PM -0400, Michael Chastain wrote:
> eliz> I fixed the conflicts in bfd and gdb/sim. As for
> eliz> gdb/testsuite/gdb.ada/gnat_ada.gpr.in, I wonder what is that file
> eliz> needed for, as I cannot see any reference to it except in Makefile.in
> eliz> in the same directory, where the file is removed in the clean: target.
> eliz> Can we simply remove this file, instead of remapping it to something
> eliz> that doesn't have 2 dots in the name?
>
> This file is actually used.
>
> Googling on the filename turns up an explanation:
>
> http://sources.redhat.com/ml/gdb-patches/2004-02/msg00783.html
>
> The actual usage point is in the gnatmake command.
> Here's an excerpt from gdb.log:
>
> Executing on host: gnatmake null_record.adb -P/tmp/migbat-testgdb-VZzpSUK2/test/gdb.ada/gnat_ada -gdwarf-2 -g2 -lm -o /tmp/migbat-testgdb-VZzpSUK2/test/gdb.ada/null_record (timeout = 300)
>
> The "-P/blah/gdb.ada/gnat_ada" switch reads the file gnat_ada.gpr
> from the build directory. The "gpr" stands for "gnat project".
>
> $BUILD/gnat_ada.gpr.in is made from $SOURCE/gnat_ada.gpr by
> the usual autoconf magic. Search for "gnat_ada.gpr" in the
> gdb/testsuite/configure.
>
> And the name has to be foo.gpr.in with the ".gpr" for the
> "gnatmake -P" to work and the ".in" for the autoconfigury.
>
> I'm pretty clueless about Ada but I think that's what's going on;
> corrections welcomed.
If that's a correct analysis then it is not hard to rename the file;
autoconf is flexible in this regard. See config.h and config.in in gdb/.
--
Daniel Jacobowitz