]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/python: remove stray white space in error message
authorAndrew Burgess <aburgess@redhat.com>
Sat, 19 Apr 2025 21:03:15 +0000 (22:03 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 22 Apr 2025 16:50:55 +0000 (17:50 +0100)
Spotted a stray white space at the end of an error message.  Removed,
and updated the py-breakpoint.exp test to check this case.

gdb/python/py-breakpoint.c
gdb/testsuite/gdb.python/py-breakpoint.exp

index 861e9a3d1bbe2164d284c62bc6d8ffc370e22462..58998f5e465d06d619af2ca478fb24fd7a077318 100644 (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;
        }
     }
index 1b9c05f3daeb79d5aca6846dac5e4d78149f30a4..9a901a342d3c623906bec99466beb94d3bf144b9 100644 (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