aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-12-21 09:50:31 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-12-21 09:50:31 +0000
commit9e19b45e2ed724759be1034349274f006d5a8653 (patch)
tree62bd82a3b96fd9f0853d7f4508b4e18cec52ce88 /gdb/value.c
parentdd0cd0d0e0a068d801cf813873e3b0acae5bfec7 (diff)
downloadgdb-9e19b45e2ed724759be1034349274f006d5a8653.zip
gdb-9e19b45e2ed724759be1034349274f006d5a8653.tar.gz
gdb-9e19b45e2ed724759be1034349274f006d5a8653.tar.bz2
PR gdb/10884
* value.c (value_primitive_field): Call check_typedef on the type.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 589e03b..e240c7a 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1873,6 +1873,7 @@ value_primitive_field (struct value *arg1, int offset,
CHECK_TYPEDEF (arg_type);
type = TYPE_FIELD_TYPE (arg_type, fieldno);
+ type = check_typedef (type);
/* Handle packed fields */