diff --git a/gdb/testsuite/gdb.linespec/explicit.c b/gdb/testsuite/gdb.linespec/explicit.c index 4e1c635..5b65311 100644 --- a/gdb/testsuite/gdb.linespec/explicit.c +++ b/gdb/testsuite/gdb.linespec/explicit.c @@ -1,6 +1,6 @@ /* This testcase is part of GDB, the GNU debugger. - Copyright 2012-2013 Free Software Foundation, Inc. + Copyright 2012-2015 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,6 +42,12 @@ myfunction (int arg) return r; } +static int +explicit_exp_really_unique_function_name (int arg) +{ + return arg; +} + int main (void) { @@ -52,5 +58,5 @@ main (void) for (i = 0, j = 0; i < 1000; ++i) j += myfunction (0); - return myfunction2 (j); + return explicit_exp_really_unique_function_name (myfunction2 (j)); } diff --git a/gdb/testsuite/gdb.linespec/explicit.exp b/gdb/testsuite/gdb.linespec/explicit.exp index a0851cd..6b9c8e0 100644 --- a/gdb/testsuite/gdb.linespec/explicit.exp +++ b/gdb/testsuite/gdb.linespec/explicit.exp @@ -181,9 +181,9 @@ namespace eval $testfile { } set tst "complete unique function name" - send_gdb "break -function mai\t" + send_gdb "break -function explicit_exp_really_unique_f\t" gdb_test_multiple "" $tst { - "break -function mai\\\x07n" { + "break -function explicit_exp_really_unique_function_name " { send_gdb "\n" gdb_test "" ".*Breakpoint \[0-9\]+.*" $tst gdb_test_no_output "delete \$bpnum" "delete $tst breakpoint"