aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/c-lang.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1786f7e..c5f7527 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,8 @@
2009-03-20 Tom Tromey <tromey@redhat.com>
+
+ * c-lang.c (evaluate_subexp_c): Call check_typedef.
+
+2009-03-20 Tom Tromey <tromey@redhat.com>
Julian Brown <julian@codesourcery.com>
PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index deab3f4..0c9e4f8 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -917,6 +917,10 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp,
default:
internal_error (__FILE__, __LINE__, "unhandled c_string_type");
}
+
+ /* Ensure TYPE_LENGTH is valid for TYPE. */
+ check_typedef (type);
+
dest_charset = charset_for_string_type (dest_type);
++*pos;