From 553a06827b3fdf3d6df1c6da681655ac132897c7 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 11 Jul 2025 13:22:23 -0400 Subject: [PATCH] gdb: use skip_spaces in info_linker_namespace_command Change-Id: I02c7daed3740e319ee27d3512a2b941f666b103b Approved-By: Andrew Burgess --- gdb/solib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gdb/solib.c b/gdb/solib.c index 82217856517..bd9f3cb4dff 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1167,9 +1167,7 @@ info_linker_namespace_command (const char *pattern, int from_tty) struct ui_out *uiout = current_uiout; std::vector>> all_solibs_to_print; - if (pattern != nullptr) - while (*pattern == ' ') - pattern++; + pattern = skip_spaces (pattern); if (pattern == nullptr || pattern[0] == '\0') { -- 2.47.2