along with this program. If not, see <http://www.gnu.org/licenses/>. */
static int
-add (int a, int b)
+a_very_unique_name (int a, int b)
{
return a + b;
}
static double
-add (double a, double b)
+a_very_unique_name (double a, double b)
{
return a + b;
}
int
main (void)
{
- int i = add (3, 4);
- double d = add (3.0, 4.0);
+ int i = a_very_unique_name (3, 4);
+ double d = a_very_unique_name (3.0, 4.0);
return 1;
}
# Check the breakpoint-created event.
set pattern [make_breakpoints_pattern $expect_fixed_output 2 y y]
- mi_gdb_test "break add" \
- [multi_line "&\"break add\\\\n\"" \
+ mi_gdb_test "break a_very_unique_name" \
+ [multi_line "&\"break a_very_unique_name\\\\n\"" \
"~\"Breakpoint ${decimal} at.*\\(2 locations\\)\\\\n\"" \
"=breakpoint-created,${pattern}" \
"\\^done" ] \
- "break add"
+ "break a_very_unique_name"
# Check the -break-info output.
mi_gdb_test "-break-info" \
# Check the -break-insert response.
set pattern [make_breakpoints_pattern $expect_fixed_output 3 y y]
- mi_gdb_test "-break-insert add" "\\^done,${pattern}" "insert breakpoint with MI command"
+ mi_gdb_test "-break-insert a_very_unique_name" "\\^done,${pattern}" "insert breakpoint with MI command"
# Modify enableness through MI commands shouldn't trigger MI
# notification.