Testing/debugging single Ada tests
Sebastian Pop
sebastian.pop@cri.ensmp.fr
Tue Dec 13 15:18:00 GMT 2005
Richard Guenther wrote:
> On Tue, 13 Dec 2005, Arnaud Charlet wrote:
> > Except that unlike C, Ada needs a run-time, even for simple things,
> > so you need in addition to point (using e.g. -I) to the runtime,
> > which is built under obj/gcc/ada/rts,
> >
> > so from obj/gcc directory, you can do e.g:
> >
> > ./xgcc -Bstage1/ -c -Iada/rts -Itestsuite/ada/acats/support
> >
> > Not that difficult after all...
>
> Ah! This works very many thanks! So maybe we can print this
There is also a note in: http://gcc.gnu.org/wiki/DebuggingGCC
Debugging the ada compiler
If you run the debugger on ../../objdir/gnat1, you get an error message:
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
For correcting this error, simply invoke the following command at the gdb prompt:
(gdb) set env ADA_INCLUDE_PATH path_to_objdir/gcc/ada/rts
More information about the Gcc
mailing list