]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove "enabled" output from show_index_cache_command
authorTom Tromey <tom@tromey.com>
Sat, 11 Jan 2025 21:34:06 +0000 (14:34 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 29 Jan 2025 17:21:49 +0000 (10:21 -0700)
commit59d2fac1004a9d6b75ebb52b8faacffed1704021
treee148d22d967badf1039c21c3a4eb952ef1d03e4b
parent652e09d5c6da96dd987509a44eeb3d02d57fc2f5
Remove "enabled" output from show_index_cache_command

show_index_cache_command prints whether the index-cache is enabled.
This text was added back in 2018 in commit 87d6a7aa (Add DWARF index
cache).  Then in 2021, the enabling option was changed via commit
7bc5c369 (gdb: introduce "set index-cache enabled", deprecate "set
index-cache on/off").

This latter change made this output, IMO, redundant.  That is,
currently gdb will show:

    (gdb) show index-cache
    ...
    index-cache enabled:  The index cache is off.
    ...
    The index cache is currently disabled.

This patch removes the redundant output.
gdb/dwarf2/index-cache.c