]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: remove some dead code from completer.c
authorAndrew Burgess <aburgess@redhat.com>
Tue, 16 Jan 2024 16:08:12 +0000 (16:08 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 25 Mar 2024 17:47:43 +0000 (17:47 +0000)
commitc8adaf3dd31e154afc6577d93ea3db675c11eb97
tree57836670aad845bf1cc4ac7f49dbdc62ef635d0a
parent4f440ff33d1cf8812d4f652f6fddbfa3d117268e
gdb: remove some dead code from completer.c

In completer.c there is some code that is surrounded with '#if 0',
this code:

  #if 0
    /* There is no way to do this just long enough to affect quote
       inserting without also affecting the next completion.  This
       should be fixed in readline.  FIXME.  */
    /* Ensure that readline does the right thing
       with respect to inserting quotes.  */
    rl_completer_word_break_characters = "";
  #endif

This code, in some form, and always defined out, has been around since
the original import of GDB.  Though the comment hints at what the
problem might be, it's not really clear what the issue is.  And
completion within GDB has moved on a long way since this code was
written ... but not used.

I'm proposing that we just remove this code.

If/when a problem comes up then we can look at how to solve it.  Maybe
this code would be the answer ... but also, I suspect, given all the
changes ... maybe not.  I'm not sure carrying around this code for
another 20+ years adds much value.

There should be no user visible changes after this commit.
gdb/completer.c