eclipse-cdt-cloud / cdt-gdb-adapter

CDT GDB Debug Adapter
Eclipse Public License 2.0
27 stars 40 forks source link

Handle evaluate request for complex variables #304

Closed WyoTwT closed 9 months ago

WyoTwT commented 9 months ago

For simple variables, evaluateRequest() returns the value.

For complex variables such as arrays and structures, a different representation is returned (arrays = [sizeof(array)]; structs = {...}). This PR adds the ability to evaluate a complex variable (at least 1 level deep) which is helpful for the variables context menu -> Copy Value command.

Adds some tests as well.

jonahgraham commented 9 months ago

I will submit shortly by squashing commits and using the OP comment as the commit message. Let me know if you have other thoughts.

WyoTwT commented 9 months ago

Thank you!