[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Enhancement proposal for register handling

Hi,

Cool feature! I am wondering what was the final decision about using glob-patterns for variables? Will they be supported or not (as I can see in N&N they are not supported yet)?


Thanks,
Anton

-------- Original message --------
Hi,
 
FYI, the proposal below has been implemented and pushed to master.  You are welcomed to
try it and give feedback.
 
Note that the solution went a bit further than the proposal, where the Expressions view
not only supports glob-patterns but also comma-separated lists of expressions e.g., $eax, myvar, $$s*
 
See the New&Noteworthy for the short description:
 
BR,
 
Marc


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Marc Khouzam
Sent: Tuesday, June 05, 2012 2:39 PM
To: 'CDT General developers list.'
Subject: [cdt-dev] Enhancement proposal for register handling

Hello,
 
I would like to propose an enhancement to the Expressions view for CDT Debug.  We are focusing on the
Juno release right now, but since we discussed the idea in the CDT monthly call, I'm sending this proposal now.
 
I created a wiki page with more details and screenshots (http://wiki.eclipse.org/CDT/EnhancedExpressions), as well as
a bug (https://bugs.eclipse.org/381754).  Below is a summary.
 
==
 
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.
 
I propose to 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 
 
The user would simply type the _expression_ in the "Add new _expression_" box as she would for
any other _expression_.
 
 
Although this feature is focusing on registers (only _expression_s starting with $  will allow patterns)
it may be a nice enhancement to extend this to other expressions.  If that was also supported, a user
could do such things as create an _expression_ 'myArray[20-120] to only show a subset of an array; many
other examples can be imagined as well.
 
With such possibilities in mind, the prototype does allow for the _expression_: *   which will automatically
show all local variables and arguments of the selected stack frame.
 
Comments and suggestions are very welcomed.
 
Thanks
 
Marc
 


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


PNG image