diff options
author | Tom Tromey <tromey@redhat.com> | 2009-03-21 00:46:17 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2009-03-21 00:46:17 +0000 |
commit | 546e879ee8028adc2d6093cd15b2eb32fa4341ad (patch) | |
tree | 3fa47c73c6e2ebc5c60c053922976f0cac2c8f8d /gdb/c-lang.c | |
parent | ced4bf0cb41565f654385391040dc1952b0b2efb (diff) | |
download | gdb-546e879ee8028adc2d6093cd15b2eb32fa4341ad.zip gdb-546e879ee8028adc2d6093cd15b2eb32fa4341ad.tar.gz gdb-546e879ee8028adc2d6093cd15b2eb32fa4341ad.tar.bz2 |
* c-lang.c (evaluate_subexp_c): Call check_typedef.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |