Bug 8058 - Need an MI command to autocomplete a cli command string
Summary: Need an MI command to autocomplete a cli command string
Status: ASSIGNED
Alias: None
Product: gdb
Classification: Unclassified
Component: mi (show other bugs)
Version: 5.3
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-22 19:58 UTC by James Ingham
Modified: 2008-12-19 19:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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