gdb/python: remove stray white space in error message

Spotted a stray white space at the end of an error message.  Removed,
and updated the py-breakpoint.exp test to check this case.
This commit is contained in:
Andrew Burgess
2025-04-19 22:03:15 +01:00
parent 4183b1e3a2
commit 5fd3d58ee9
2 changed files with 2 additions and 2 deletions

View File

@@ -948,7 +948,7 @@ bppy_init (PyObject *self, PyObject *args, PyObject *kwargs)
else
{
PyErr_SetString (PyExc_RuntimeError,
_("Line keyword should be an integer or a string. "));
_("Line keyword should be an integer or a string."));
return -1;
}
}

View File

@@ -707,7 +707,7 @@ proc_with_prefix test_bkpt_explicit_loc {} {
delete_breakpoints
gdb_test "python bp1 = gdb.Breakpoint (line=bp1)" \
"RuntimeError.*: Line keyword should be an integer or a string.*" \
"RuntimeError.*: Line keyword should be an integer or a string\\.\r\n.*" \
"set explicit breakpoint by invalid line type"
delete_breakpoints