Debugging 如何在GDB中打印类型属性?

Debugging 如何在GDB中打印类型属性?,debugging,gdb,ada,Debugging,Gdb,Ada,有没有从GDB内部打印类型属性的方法 例如,整数的大小 是: (gdb)p事物属性 一些属性可以识别,而其他属性则无法识别。(在下面列出的内容中,find是一个布尔变量。) 以下是使用gdb进行调试的列表: Only a subset of the attributes are supported: * 'First, 'Last, and 'Length on array objects (not on types and subtypes). * 'Min and '

有没有从GDB内部打印类型属性的方法
例如,整数的大小

是:

(gdb)p事物属性

一些属性可以识别,而其他属性则无法识别。(在下面列出的内容中,find是一个布尔变量。)

以下是使用gdb进行调试的列表:

Only a subset of the attributes are supported:
 
     * 'First, 'Last, and 'Length on array objects (not on types and subtypes).
     * 'Min and 'Max.
     * 'Pos and 'Val.
     * 'Tag.
     * 'Range on array objects (not subtypes), but only as the right operand of the membership (in) operator.
     * 'Access, 'Unchecked_Access, and 'Unrestricted_Access (a GNAT extension).
     * 'Address.

(嗯,这个列表可能是有日期的,因为我可以做最后一个整数,尽管第一个项目符号说它在类型上无效。)

你认为在gdb命令行上键入“print sizeof(int)”可以解决你的问题吗?这个问题用ada标记,所以我解释这个类型属性是一些我不知道的ada特定的东西,我不认为sizeof是答案。sizeof()是C/C++。。。这个问题是明确的。
Only a subset of the attributes are supported:
 
     * 'First, 'Last, and 'Length on array objects (not on types and subtypes).
     * 'Min and 'Max.
     * 'Pos and 'Val.
     * 'Tag.
     * 'Range on array objects (not subtypes), but only as the right operand of the membership (in) operator.
     * 'Access, 'Unchecked_Access, and 'Unrestricted_Access (a GNAT extension).
     * 'Address.