[gdb/testsuite] Handle ada in gdb_compile_shlib
authorTom de Vries <tdevries@suse.de>
Sun, 13 Dec 2020 15:25:19 +0000 (16:25 +0100)
committerTom de Vries <tdevries@suse.de>
Sun, 13 Dec 2020 15:25:19 +0000 (16:25 +0100)
commita406a98e6e061ac865747ac2d2ba73a2ecaab081
tree338e7c51987343dd43adb3a6ec9ca352ceca3747
parent5d7e6ed0bd0ec0d4663e55b28e6fbdca2cb798e1
[gdb/testsuite] Handle ada in gdb_compile_shlib

The single test-case in the testsuite that creates an ada shared library is
gdb.ada/catch_ex_std.exp.

The test-case does use gdb_compile_shlib, but with a few tweaks that make sure
things are properly handled for ada.

Move the ada-specific code to gdb_compile_shlib, such that gdb_compile_sh can
be used for ada shared libs without tweaks.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-12-13  Tom de Vries  <tdevries@suse.de>

* lib/gdb.exp (gdb_compile_shlib): Handle ada.
* gdb.ada/catch_ex_std.exp: Use gdb_compile_shlib to compile from
source to shared lib.  Add ada to options.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/catch_ex_std.exp
gdb/testsuite/lib/gdb.exp
This page took 0.025114 seconds and 4 git commands to generate.