MI: extract command completion logic from complete_command()
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 17 May 2019 09:58:23 +0000 (10:58 +0100)
committerJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 17 May 2019 09:58:23 +0000 (10:58 +0100)
commit6e035501e15e72398fcd9db88c97dd30e585a9ae
tree6613a2f7386b73461c6887ae1b9dd28b57229a6d
parent7d0e2ecedef69de0a242ac49a475f6a3968d4476
MI: extract command completion logic from complete_command()

Extract completion logic from CLI complete_command() into a new
helper function complete().

gdb/Changelog:

* completer.h (complete): New function.
* completer.c (complete): Likewise.
* cli/cli-cmds.c: (complete_command): Update to use new complete()
function defined in completer.h.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/completer.c
gdb/completer.h