Bug 8058

Summary: Need an MI command to autocomplete a cli command string
Product: gdb Reporter: James Ingham <jingham>
Component: miAssignee: Not yet assigned to anyone <unassigned>
Status: ASSIGNED ---    
Severity: enhancement CC: gdb-prs
Priority: P3    
Version: 5.3   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description James Ingham 2003-01-22 19:58:00 UTC
[Converted from Gnats 953]

The interpreter-exec command allows a way to emulate a CLI interface through the MI interpreter.  However, to get <TAB> and <TAB><TAB> working in the emulated CLI, we need a way to take the string the user has typed up to the <TAB> character, and get the gdb CLI completer to complete it either to the longest unique match (for <TAB>) or the list of all matches (for <TAB><TAB>).

Something like:

-interpreter-complete console all? string

which returns

completion="longest match"

if all? is NO, and

completions={"first match", "second match", ...}

if all? is YES would do the job.

Release:
gdb-5.3

Environment:
Any