From 546e879ee8028adc2d6093cd15b2eb32fa4341ad Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 21 Mar 2009 00:46:17 +0000 Subject: [PATCH] * c-lang.c (evaluate_subexp_c): Call check_typedef. --- gdb/ChangeLog | 4 ++++ gdb/c-lang.c | 4 ++++ 2 files changed, 8 insertions(+) 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; -- 2.30.2