]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR gdb/10884
authorJoel Brobecker <brobecker@gnat.com>
Mon, 21 Dec 2009 13:18:20 +0000 (13:18 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 21 Dec 2009 13:18:20 +0000 (13:18 +0000)
       * value.c (value_primitive_field): Call check_typedef
       on the type.

gdb/ChangeLog
gdb/value.c

index b19a3a89354c5f79fdfa30429da44a3bc08b006b..29b684177a8b4bb1c25bd6dd2399d0ba0a028436 100644 (file)
@@ -1,3 +1,10 @@
+2009-12-21  Vladimir Prus  <vladimir@codesourcery.com>
+
+       PR gdb/10884
+
+       * value.c (value_primitive_field): Call check_typedef
+       on the type.
+
 2009-12-21  Joel Brobecker  <brobecker@adacore.com>
 
        * COPYING: Update to GPL version 3.
index 589e03b14964df01e5387c090316b9c819067f0b..e240c7add07977b5a3e6b983f02ccf6aec632433 100644 (file)
@@ -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 */