Skip to content

Commit ba95907

Browse files
committed
gnatdbg.utils.coerce_array: handle references
Change-Id: I69a386e71eb891807ddb4f4411bbd6325b78058c TN: RC14-025
1 parent cbe8fa8 commit ba95907

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gnatdbg/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def coerce_array(array_value):
8080
If it's anything else, raise a ValueError.
8181
"""
8282
array_value = strip_typedefs(array_value)
83+
if array_value.type.code == gdb.TYPE_CODE_REF:
84+
array_value = array_value.referenced_value()
85+
array_value = strip_typedefs(array_value)
8386

8487
if (
8588
array_value.type.code == gdb.TYPE_CODE_STRUCT

0 commit comments

Comments
 (0)