Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
CDT/Archive/EnhancedExpressions
Introduction
Currently, the Registers view for CDT/GDB shows all registers in a flat list. For targets with a large number of registers this is not very user-friendly.
Proposal
Add support pattern-matching within the Expressions view to allow users to easily create groups of registers. For example:
$* would display all registers $st[0-5] would show $st0, $st1 , ... $st5 $*mm[0-1] would show any registers ending with mm0 or mm1
Note that CDT's Expressions view already allows the user to examine individual registers, so this feature would only introduce the pattern matching support.
Regular Expressions are very powerful but not always easy to quickly use. I suggest we instead support glob-patterns. Glob-patterns are simpler than full regular experssions, and are the patterns used in command-shell pattern matching ( * ? [] ). They are more user-friendly that regex and would provide enough flexibility for what we are trying to achieve. Details can be found here:
Glob man page
Glob on wikipedia
Below are screenshots of a prototype I have implemented. It would need some cleanup, but it shows how the feature would be used.