[v3,2/5] Fix formatting buglet in python.c

Message ID 20240220-py-simple-exc-v3-2-a2825caa4b74@adacore.com
State New
Headers
Series Fix DAP pause bug |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed

Commit Message

Tom Tromey Feb. 20, 2024, 7:46 p.m. UTC
  python.c has a split string that is missing a space.  There's also a
stray backslash in this code.
---
 gdb/python/python.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tom de Vries Feb. 27, 2024, 9:35 a.m. UTC | #1
On 2/20/24 20:46, Tom Tromey wrote:
> python.c has a split string that is missing a space.  There's also a
> stray backslash in this code.

LGTM.

Reviewed-By: Tom de Vries <tdevries@suse.de>

Thanks,
- Tom

> ---
>   gdb/python/python.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gdb/python/python.c b/gdb/python/python.c
> index 7b0997c8d52..b2e8f244f85 100644
> --- a/gdb/python/python.c
> +++ b/gdb/python/python.c
> @@ -1601,7 +1601,7 @@ gdbpy_print_stack (void)
>   	      /* An error occurred computing the string representation of the
>   		 error message.  */
>   	      gdb_printf (gdb_stderr,
> -			  _("Error occurred computing Python error" \
> +			  _("Error occurred computing Python error "
>   			    "message.\n"));
>   	      PyErr_Clear ();
>   	    }
>
  

Patch

diff --git a/gdb/python/python.c b/gdb/python/python.c
index 7b0997c8d52..b2e8f244f85 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1601,7 +1601,7 @@  gdbpy_print_stack (void)
 	      /* An error occurred computing the string representation of the
 		 error message.  */
 	      gdb_printf (gdb_stderr,
-			  _("Error occurred computing Python error" \
+			  _("Error occurred computing Python error "
 			    "message.\n"));
 	      PyErr_Clear ();
 	    }