]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix deprecation text
authorTom Tromey <tromey@adacore.com>
Fri, 31 May 2024 15:44:14 +0000 (09:44 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 3 Jun 2024 16:47:15 +0000 (10:47 -0600)
I noticed one spot where deprecate_cmd is called with a second
argument that is not a command name.  This patch fixes the problem.

Regression tested on x86-64 Fedora 38.

gdb/symtab.c

index 58648a8779d2fbac54de79d9ef31f46d12ea6e60..0464b6d1479e79d5bc80e3a6cfd7ed05179f231a 100644 (file)
@@ -7248,7 +7248,7 @@ the use of prologue scanners."),
               &maintenanceflushlist);
   c = add_alias_cmd ("flush-symbol-cache", maintenance_flush_symbol_cache_cmd,
                     class_maintenance, 0, &maintenancelist);
-  deprecate_cmd (c, "maintenancelist flush symbol-cache");
+  deprecate_cmd (c, "maintenance flush symbol-cache");
 
   gdb::observers::new_objfile.attach (symtab_new_objfile_observer, "symtab");
   gdb::observers::all_objfiles_removed.attach (symtab_all_objfiles_removed,