This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA/testsuite/ada] Put testcase code in own directory (2)


Hello,

Here is a updated patch that moves the code used by each Ada testcase
into its own subdirectory. See this message for the motivation:
http://sources.redhat.com/ml/gdb-patches/2004-11/msg00138.html

Note that I introduced a new variable "testdir", which will contain
the name of the subdir where the sources used by this testcase are
stored. I found it useful when I modified fixed_points.exp to the new
scheme, as the testcase searches the line number for one of the source
files.

Also, "srcfile" doesn't really apply all that much to ada, since we have
more than one src file. I kept this variable for now for better
consistency with the non-ada testcases, with the meaning being the name
of the main unit in our program.

2005-02-02  Joel Brobecker  <brobecker@adacore.com>

        * gdb.ada/gnat_ada.gpr: New file.
        * gdb.ada/gnat_ada.gin: Delete, no longer used.
        * lib/ada.exp (gdb_compile_ada): Minor adaptation to new project file.
        * configure.ac: No longer generate gnat_ada.gpr.
        * gdb.ada/Makefile.in: Minor adaptations due to new project file.
        * gdb.ada/null_record/null_record.adb: Moved here from gdb.ada.
        * gdb.ada/null_record/bar.ads: Likewise.
        * gdb.ada/null_record/bar.adb: Likewise.
        * gdb.ada/fixed_points/fixed_points.adb: Likewise.
        * gdb.ada/null_record.exp (testdir): New variable.
        (testfile): executable is now in testdir subdirectory.
        (srcfile): Use full path to the main compilation unit.
        * gdb.ada/fixed_points.exp: Same changes as above.

Tested on x86-linux, no regression for these testcases. OK to apply?
(note that I didn't attach the .ads and .adb files, since they remain
identical to the current ones, I just move them)

Thanks,
-- 
Joel

Attachment: gnat_ada.gpr
Description: Text document

Attachment: gdb.ada.1.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]