Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C cbl-gdb
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • COBOLworx
  • cbl-gdb
  • Issues
  • #56

Closed
Open
Created Apr 03, 2021 by Simon Sobisch@ssobischReporter

Add completion to cobcd's function arguments

Unexpectedly my proof-of-concept for completion of the variables for cprint found its way into 4.23. I don't complain :-)

One thing to remember: GDB has no support for a language that allows hyphenated words, therefore if completion "stops" there this is no issue of cobcd.py but of GDB. I'll likely get in contact with the GDB folks about that "relative soon".

Completion should work with any words that don't contain hyphens already. The missing bits are:

  • make it available to every function
    • move the poc-code out of cprint to a new function varComplete in a static object, which is then called by cprint, passing the current variable and return the possible completions
    • this can then be used in cwatch directly
    • for cbreak the complete() would have to take the context into account, if the current word on the first place is "se" complete to "section", after a possible "if" trigger the variable completion
  • either directly or later: add completion of section names - this likely need adjustments in cobc to include the section (and as preparation the paragraph) names in a new string table; maybe it is possible to "query" them from the symbol list already (somewhere the generated labels should be visible)?
Assignee
Assign to
Time tracking