How do I print or change a GNAT Ada string value in my probe?
An unconstrained string is represented as a record with two components. The first is a pointer to the string (which is not null-terminated) and the second is a pointer to another record which contains the bounds of the string. The “apc” tool recognizes this special type and displays it appropriately, if debug information is available. Since it’s length is known, ap_StringValue is not used.