From: Tom Tromey Date: Sat, 21 Mar 2009 00:46:17 +0000 (+0000) Subject: * c-lang.c (evaluate_subexp_c): Call check_typedef. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=546e879ee8028adc2d6093cd15b2eb32fa4341ad;p=binutils-gdb.git * c-lang.c (evaluate_subexp_c): Call check_typedef. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1786f7ed870..c5f7527bc47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-03-20 Tom Tromey + + * c-lang.c (evaluate_subexp_c): Call check_typedef. + 2009-03-20 Tom Tromey Julian Brown diff --git a/gdb/c-lang.c b/gdb/c-lang.c index deab3f4fa0b..0c9e4f8059e 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;