This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
mi/953: Need an MI command to autocomplete a cli command string
- From: jingham at apple dot com
- To: gdb-gnats at sources dot redhat dot com
- Cc: jingham at apple dot com
- Date: 22 Jan 2003 19:56:49 -0000
- Subject: mi/953: Need an MI command to autocomplete a cli command string
- Reply-to: jingham at apple dot com
>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: