Open NanShanJi opened 7 months ago
Hi, you can evaluate and show pointers as array.
Open a new evaluator (𝑓𝑥 button on the top bar) and cast your pointer into an array like this:
*argv@2
The syntax is *ptr@NUM_OF_ITEMS
.
(The first evaluator window is a pointer evaluated and you can't see it as an array but the second one it is casted into an array.)
GDB doesn't know that how many items there are on the memory from the address your pointer is pointing; so you must convert it into an array like this with a length.
Hello, it seems that it does not support the display of pointer array values