I am currently working on a frontend for GDB using the MI interface. Everythings work great so far except one issue :

when I want to access the content of a variable I would like to determine whether it has been initialized already. Indeed if it is of a complex type (e.g QString) inspecting the contents of an uninitialized variable is likely to cause troubles.

Last time I tried to inspect the contents of a QString for instance the size (before initialization) was 1851162600 so my computer hung for a while, trying to read that amount of data, from an address that wasn't initialized either...

if anyone knows a trick that may help me solve this I'd be extremely grateful.