From deb70aa0322c4c43b68fa859b52a0ccf2d904b0f Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 7 Jun 2022 17:18:20 +0100 Subject: gdb: remove trailing '.' from perror_with_name calls I ran into this error while working on AArch64 GDB: Unable to fetch VFP registers.: Invalid argument. Notice the '.:' in the middle of this error message. This is because of this call in aarch64-linux-nat.c: perror_with_name (_("Unable to fetch VFP registers.")); The perror_with_name function take a string, and adds ': ' to the end the string, so I don't think the string that we pass to perror_with_name should end in '.'. This commit removes all of the trailing '.' characters from perror_with_name calls, which give more readable error messages. I don't believe that any of these errors are tested in the testsuite (after a little grepping). --- gdb/procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/procfs.c') diff --git a/gdb/procfs.c b/gdb/procfs.c index d290505..ffb4d18 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -2704,7 +2704,7 @@ procfs_set_exec_trap (void) pi = create_procinfo (getpid (), 0); if (pi == NULL) - perror_with_name (_("procfs: create_procinfo failed in child.")); + perror_with_name (_("procfs: create_procinfo failed in child")); if (open_procinfo_files (pi, FD_CTL) == 0) { -- cgit v1.1