]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/solib: fix formatting of "info linker-namespaces" error message
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 16 Jun 2025 19:33:00 +0000 (15:33 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 26 Jun 2025 18:08:31 +0000 (14:08 -0400)
Add spaces after the first period and add a period at the end, resulting
in:

    (gdb) info linker-namespaces
    ❌️ Current inferior does not support linker namespaces.  Use "info sharedlibrary" instead.

Change-Id: Ib3f1647cedcdb68852a3c63df26ea3e6f791b1b1
Approved-By: Pedro Alves <pedro@palves.net>
gdb/solib.c

index 4acabd9308df8d784afbae9f8a49bb9f6e25f0f0..396fd181e00fff4c46f9874859a4afd2b8b506de 100644 (file)
@@ -1163,8 +1163,8 @@ info_linker_namespace_command (const char *pattern, int from_tty)
   /* This command only really makes sense for inferiors that support
      linker namespaces, so we can leave early.  */
   if (ops->num_active_namespaces == nullptr)
-    error (_("Current inferior does not support linker namespaces." \
-            "Use \"info sharedlibrary\" instead"));
+    error (_("Current inferior does not support linker namespaces.  "
+            "Use \"info sharedlibrary\" instead."));
 
   struct ui_out *uiout = current_uiout;
   std::vector<std::pair<int, std::vector<const solib *>>> all_solibs_to_print;