forked from Imagelibrary/binutils-gdb
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user