diff options
author | Andrew Burgess <aburgess@redhat.com> | 2025-04-19 22:03:15 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2025-04-22 17:50:55 +0100 |
commit | 5fd3d58ee9109b7a86b25504dc0cbd1739e6be01 (patch) | |
tree | b62a1cc731e660d044609712a1acae72580e08b1 | |
parent | 4183b1e3a2f36dd67e25dff4be642c48bf214d64 (diff) | |
download | binutils-5fd3d58ee9109b7a86b25504dc0cbd1739e6be01.zip binutils-5fd3d58ee9109b7a86b25504dc0cbd1739e6be01.tar.gz binutils-5fd3d58ee9109b7a86b25504dc0cbd1739e6be01.tar.bz2 |
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.
-rw-r--r-- | gdb/python/py-breakpoint.c | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-breakpoint.exp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 861e9a3..58998f5 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 1b9c05f..9a901a3 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 |