comp.lang.ada
 help / color / mirror / Atom feed
* GPS DEbug problem with Unbounded_String
@ 2019-01-07 11:17 ldries46
  2019-01-07 15:08 ` Simon Wright
  0 siblings, 1 reply; 2+ messages in thread
From: ldries46 @ 2019-01-07 11:17 UTC (permalink / raw)


I am debugging a program with much Unbounded_String data. I do want to show 
the value of such a String. So i need to see **.reference.data. So far aso 
good that works, but the value I get is sometimes an incomplete string and 
sometimes a string with a lot of hexadecimal values. The last I can 
understand, but the first??? I know that the rest of the value is present 
because I can show the value of the length which is correct or can search 
for a character in the part thast is not presented and that also works, but 
it is annoying that the debugger works that way. Is there a setting of  GPS 
that can correct that behavior? 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GPS DEbug problem with Unbounded_String
  2019-01-07 11:17 GPS DEbug problem with Unbounded_String ldries46
@ 2019-01-07 15:08 ` Simon Wright
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Wright @ 2019-01-07 15:08 UTC (permalink / raw)


"ldries46" <bertus.dries@planet.nl> writes:

> I am debugging a program with much Unbounded_String data. I do want to
> show the value of such a String. So i need to see
> **.reference.data. So far aso good that works, but the value I get is
> sometimes an incomplete string and sometimes a string with a lot of
> hexadecimal values. The last I can understand, but the first??? I know
> that the rest of the value is present because I can show the value of
> the length which is correct or can search for a character in the part
> thast is not presented and that also works, but it is annoying that
> the debugger works that way. Is there a setting of  GPS that can
> correct that behavior? 

https://github.com/AdaCore/gnat-gdb-scripts/ includes gnatdbg/strings.py
which includes unbounded string support. I haven't tried it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-07 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-07 11:17 GPS DEbug problem with Unbounded_String ldries46
2019-01-07 15:08 ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox