gdb: handle endbr64 instruction in amd64_analyze_prologue
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.linespec / cp-completion-aliases.exp
CommitLineData
19a2740f
AB
1# Copyright 2019-2020 Free Software Foundation, Inc.
2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16# This file tests GDB's ability to remove symbol aliases from the
17# completion list in C++.
18
19load_lib completion-support.exp
20
21standard_testfile .cc
22
23if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
24 return -1
25}
26
27# Tests below are about tab-completion, which doesn't work if readline
28# library isn't used. Check it first.
29
30if { ![readline_is_used] } {
31 untested "no tab completion support without readline"
32 return -1
33}
34
35# Disable the completion limit for the whole testcase.
36gdb_test_no_output "set max-completions unlimited"
37
38test_gdb_complete_tab_unique "break get_v" \
39 "break get_value\\(object_p\\)" " "
40
41test_gdb_complete_cmd_unique "break get_v" \
42 "break get_value\\(object_p\\)"
43
44test_gdb_complete_tab_unique "break gr" \
45 "break grab_it\\(int_magic_t\\*\\)" " "
46
47test_gdb_complete_cmd_unique "break gr" \
48 "break grab_it\\(int_magic_t\\*\\)"
49
50test_gdb_complete_tab_multiple "break get_som" "ething(" \
51 { "get_something(my_string_t)" "get_something(object_p)" }
52
53test_gdb_complete_cmd_multiple "break " "get_som" \
54 { "get_something(my_string_t)" "get_something(object_p)" }
This page took 0.044644 seconds and 4 git commands to generate.