Start inferior before running test listing Ada exceptions.
authorJoel Brobecker <brobecker@adacore.com>
Fri, 15 Nov 2013 06:30:00 +0000 (10:30 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 15 Nov 2013 16:14:25 +0000 (20:14 +0400)
commite092da29031a5a5a74beb1d671da98d55fff6ebd
tree317df81dbb812d21dcb0739a16d650eaebaddbfd
parent805e1f190887b3b7dea3fd157d58bc25effcf688
Start inferior before running test listing Ada exceptions.

This patch fixes some spurious failures when the inferior is linked
against the shared version of libgnat by default, as appears to be
the case on many GNU/Linux distributions.  When that happens, we have
to start the program in order to ensure that the GNAT runtime is
mapped to memory, in order for us to find the standard exceptions
(defined within the runtime).  Otherwise, they will not be shown,
as expected, by the debugger.

gdb/testsuite/ChangeLog:

        * gdb.ada/info_exc.exp: Start inferior before starting
        the "info exceptions" tests.
        * gdb.ada/mi_exc_info.exp: Start inferior before starting
        the "-info-ada-exceptions" tests.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/info_exc.exp
gdb/testsuite/gdb.ada/mi_exc_info.exp