Add gdb.ada/info_addr_mixed_case new testcase
authorJoel Brobecker <brobecker@adacore.com>
Thu, 4 Jan 2018 04:28:14 +0000 (23:28 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Thu, 4 Jan 2018 08:30:06 +0000 (03:30 -0500)
commit66fc87a0d50d2b91322cc24d17461c07925fa867
tree54e0f4f0c85d63de654bd2e7f4ae45f372e14721
parentc40d7e49cf0a6842a5cf072772a48d1f6e6eeb11
Add gdb.ada/info_addr_mixed_case new testcase

This patch adds a new testcase to demonstrate a regression introduced by:

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

The purpose of the testcase is to verify that a user can use any
casing for an Ada symbol name passed to the "info address" command.
After the patch above was applied, GDB was no longer able to find
the symbol:

    (gdb) info address My_Table
    No symbol "My_Table" in current context.

gdb/testsuite/ChangeLog:

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

Tested on x86_64-linux, both before and after the patch.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/info_addr_mixed_case.exp [new file with mode: 0644]
gdb/testsuite/gdb.ada/info_addr_mixed_case/foo.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/info_addr_mixed_case/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/info_addr_mixed_case/pck.ads [new file with mode: 0644]