public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Stan Cox <scox@redhat.com>
To: Frysk List <frysk@sourceware.org>
Subject: tab completion
Date: Wed, 08 Aug 2007 19:59:00 -0000	[thread overview]
Message-ID: <1186603143.6921.45.camel@multics.rdu.redhat.com> (raw)

Tab completion is a feature of jline.  fhpd.java sets it up by
defining a class FhpdCompletor which defines CLI.complete as the
completor.  This method uses heuristics to determine what is being
completed.  If the fhpd request line doesn't contain spaces then it is
assumed that request names are being completed.  This is done by
calling candidates.add to add each request names that match the
input thus far.  Then complete returns the position in the input line
where completion will continue to jline.  If request names are not being
completed then debugInfo.complete is called as the completor.  This
method interrogates the debuginfo to find candidate names.
DwarfDie.getScopeVarNames does most of the work of finding candidate
names.  candidates.add is called to add matching names.  Structure
members are handled specially by getScopeVarNames by returning the
structure members.   



                 reply	other threads:[~2007-08-08 19:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1186603143.6921.45.camel@multics.rdu.redhat.com \
    --to=scox@redhat.com \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).