是:
(gdb)p thing'attribute
某些属性被识别,而其他属性则不被识别.(在下面列出的内容中,Found是一个布尔变量.)
gdb) p integer'size
Attempt to use a type name as an expression
(gdb) p found'size
$2 = 8
(gdb) p integer'first
$3 = -2147483648
(gdb) p integer'last
$4 = 2147483647
Run Code Online (Sandbox Code Playgroud)
以下是使用gdb进行调试的Ada部分中的列表:
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.
Run Code Online (Sandbox Code Playgroud)
(嗯,该列表可能已过时,因为我可以做Integer'Last,尽管第一个子弹说它在类型上无效.)
| 归档时间: |
|
| 查看次数: |
2343 次 |
| 最近记录: |