Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I print or change a GNAT Ada string value in my probe?

ADA gnat print probe String value
0
Posted

How do I print or change a GNAT Ada string value in my probe?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.