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: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: brobecker at gnat dot com, eliz at gnu dot org
- Cc: ac131313 at redhat dot com, gdb at sources dot redhat dot com
- Date: Mon, 19 Jul 2004 17:01:50 -0400 (EDT)
- Subject: Re: A.R. Index for GDB version 6.1.91_20040719
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.
Michael C