gdb.ada/maint_with_ada.exp: New testcase
authorJoel Brobecker <brobecker@adacore.com>
Thu, 4 Jan 2018 09:40:17 +0000 (04:40 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Thu, 4 Jan 2018 09:40:17 +0000 (04:40 -0500)
commit7365ec2ff4a7028503f39655bd2628d54418106c
tree445f38e8ab91b6c62bf9939af43d082e70fa49c3
parent289483b6a06c7a24ee9ae9021d2728ca4700b7a6
gdb.ada/maint_with_ada.exp: New testcase

This commit adds a new testcase testing the "check-psymtabs" and
"check-symtabs" maintenance commands.

The "maintenance check-psymtabs" commands is currently known to
produce some errors. While the situation was admetedly made worse
by the following patch...

    commit b5ec771e60c1a0863e51eb491c85c674097e9e13
    Date:   Wed Nov 8 14:22:32 2017 +0000
    Subject: Introduce lookup_name_info and generalize Ada's FULL/WILD name matching

... hence the reference to PR gdb/22670, the command was already
spotting one inconsistency prior to it:

    (gdb) maintenance check-psymtabs
    Global symbol `interfaces__cS' only found in /[...]/b~var_arr_typedef.adb psymtab

For now, the "check-psymtab" test is KFAIL-ed.

gdb/testsuite/ChangeLog:

        PR gdb/22670
        * gdb.ada/maint_with_ada: New testcase.

Tested on x86_64-linux.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/maint_with_ada.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/maint_with_ada/pack.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/maint_with_ada/pack.ads [new file with mode: 0644]
gdb/testsuite/gdb.ada/maint_with_ada/var_arr_typedef.adb [new file with mode: 0644]