From: Andrew Burgess Date: Sat, 19 Apr 2025 21:03:15 +0000 (+0100) Subject: gdb/python: remove stray white space in error message X-Git-Tag: binutils-2_45~846 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fd3d58ee9109b7a86b25504dc0cbd1739e6be01;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 861e9a3d1bb..58998f5e465 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -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; } } diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp index 1b9c05f3dae..9a901a342d3 100644 --- a/gdb/testsuite/gdb.python/py-breakpoint.exp +++ b/gdb/testsuite/gdb.python/py-breakpoint.exp @@ -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