I'm writing some specialized gdb scripting in python, and I have some questions about the gdb.Type class. I see a lot of methods for producing related types, like Type.const and Type.volatile, but how do I examine a Type instance, and ask "is this type const?", and "is this type volatile?"
More generally, I've got two types that are not ==. But their strings are identical. How should I be comparing two types, and how should I be programmatically determining their differences?