This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mi/953: Need an MI command to autocomplete a cli command string


>Number:         953
>Category:       mi
>Synopsis:       Need an MI command to autocomplete a cli command string
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 22 19:58:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jim Ingham
>Release:        gdb-5.3
>Organization:
>Environment:
Any
>Description:
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.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]