forked from Imagelibrary/binutils-gdb
Fix selfcheck regression due to new maint command
Simon points out that the new maint command, intended to fix a regression, also introduces a new regression in "maint selftest". This patch fixes the error. I did a full regression test on x86-64 Fedora 36.
This commit is contained in:
@@ -659,8 +659,8 @@ _initialize_cooked_index ()
|
|||||||
|
|
||||||
add_cmd ("wait-for-index-cache", class_maintenance,
|
add_cmd ("wait-for-index-cache", class_maintenance,
|
||||||
maintenance_wait_for_index_cache, _("\
|
maintenance_wait_for_index_cache, _("\
|
||||||
Usage: maintenance wait-for-index-cache\n\
|
Wait until all pending writes to the index cache have completed.\n\
|
||||||
Wait until all pending writes to the index cache have completed."),
|
Usage: maintenance wait-for-index-cache"),
|
||||||
&maintenancelist);
|
&maintenancelist);
|
||||||
|
|
||||||
gdb::observers::gdb_exiting.attach (wait_for_index_cache, "cooked-index");
|
gdb::observers::gdb_exiting.attach (wait_for_index_cache, "cooked-index");
|
||||||
|
|||||||
Reference in New Issue
Block a user