aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/complete
AgeCommit message (Collapse)AuthorFilesLines
2019-01-01Update copyright year range in all GDB files.Joel Brobecker5-5/+5
This commit applies all changes made after running the gdb/copyright.py script. Note that one file was flagged by the script, due to an invalid copyright header (gdb/unittests/basic_string_view/element_access/char/empty.cc). As the file was copied from GCC's libstdc++-v3 testsuite, this commit leaves this file untouched for the time being; a patch to fix the header was sent to gcc-patches first. gdb/ChangeLog: Update copyright year range in all GDB files.
2018-01-02Update copyright year range in all GDB filesJoel Brobecker5-5/+5
gdb/ChangeLog: Update copyright year range in all GDB files
2017-01-01update copyright year range in GDB filesJoel Brobecker5-5/+5
This applies the second part of GDB's End of Year Procedure, which updates the copyright year range in all of GDB's files. gdb/ChangeLog: Update copyright year range in all GDB files.
2016-01-01GDB copyright headers update after running GDB's copyright.py script.Joel Brobecker5-5/+5
gdb/ChangeLog: Update year range in copyright notice of all files.
2015-09-01[Ada] Fix completion for multiple function matchesPierre-Marie de Rodat5-1/+61
Before this change, trying to complete an expression ending with an ambiguous function name (i.e. for which there are multiple matches) would display a menu with a prompt for the user to pick one. For instance: (gdb) p func<tab>Multiple matches for func [0] cancel [1] pack2.func at pack2.adb:5 [2] pack.func at pack.adb:5 > This is not user friendly and actually triggered a segmentation fault after the user did pick one. It is not clear whether the segmentation fault needs a separate fix, but this is the only known case which exhibits it at the moment, and this case must be fixed itself. The problem lies in ada-lang.c (ada_resolve_function): when we got multiple matches, we should not display the menu if we are in completion mode. This patch adjusts the corresponding condition accordingly. gdb/ChangeLog: * ada-lang.c (ada_resolve_function): Do not ask the user what match to use when in completion mode. gdb/testsuite/ChangeLog: * gdb.ada/complete.exp: Add "pck.ambiguous_func" to the relevant expected outputs. Add two testcases for completing ambiguous functions. * gdb.ada/complete/aux_pck.adb: New file. * gdb.ada/complete/aux_pck.ads: New file. * gdb.ada/complete/foo.adb: Pull Aux_Pck and call the two Ambiguous_Func functions. * gdb.ada/complete/pck.ads: Add an Ambiguous_Func function. * gdb.ada/complete/pck.adb: Likewise. Tested on x86_64-linux, no regression.
2015-01-01Update year range in copyright notice of all files owned by the GDB project.Joel Brobecker3-3/+3
gdb/ChangeLog: Update year range in copyright notice of all files.
2014-01-01Update Copyright year range in all files maintained by GDB.Joel Brobecker3-3/+3
2013-01-01Update years in copyright notice for the GDB files.Joel Brobecker3-3/+3
Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF.
2012-01-04Copyright year update in most files of the GDB Project.Joel Brobecker3-3/+3
gdb/ChangeLog: Copyright year update in most files of the GDB Project.
2011-01-06Add copyright header to some Ada files (testsuite)Joel Brobecker3-0/+45
gdb/testsuite/ChangeLog: * gdb.ada/complete/foo.adb, gdb.ada/complete/pck.adb, gdb.ada/complete/pck.ads, gdb.ada/print_chars/foo.adb: Add copyright header.
2008-02-05 * gdb.ada/complete/pck.ads, gdb.ada/complete/pck.adb,Joel Brobecker3-0/+38
gdb.ada/complete/foo.adb: New files. * gdb.ada/complete.exp: New testcase.