gdbgui icon indicating copy to clipboard operation
gdbgui copied to clipboard

Add option to display array of chars as string

Open ogabbay opened this issue 6 years ago • 1 comments

Hi, First of all, great project. I love it :) I would like to request a small feature of displaying variables, which are defined as array of chars, as strings. Please see the attached image: The variable entry->d_name is defined as array of chars. The only way I could show it as string was to add it to the expressions with a cast to (char *). Can you add the option to show the string in the "local variables" window ?

Thanks

image

ogabbay avatar Apr 02 '19 19:04 ogabbay

This would be very useful. I'm quite surprised that there's kinda advanced features like changing the number base of ints and pointers or showing graphs of variable's values (neat!), but it seems impossible to view a string without falling back to print in the gdb shell or looking at the memory dump? (Or am I just doing something wrong?)

DanielGibson avatar Sep 05 '21 04:09 DanielGibson