I need to attach GDB to a process and extract a few information after the execuatble has run.
Everything works fine but I have a problem in this situation:
typedef float myFloat
typedef std::pair myPair
and then somewhere in the code i declare a variable like so
myPair<myFloat, myFloat> customPair
With GDB how do I examine the myFloat type?
whatis customPair
just gives me myPair
and ptypegives
me the underlying types so std::pair<float, float>
In my program I actually need GDB to output the custom type myFloat
but can’t seem to be able to do so, does anyone know how?