projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced4bf0
)
* c-lang.c (evaluate_subexp_c): Call check_typedef.
author
Tom Tromey
<tromey@redhat.com>
Sat, 21 Mar 2009 00:46:17 +0000
(
00:46
+0000)
committer
Tom Tromey
<tromey@redhat.com>
Sat, 21 Mar 2009 00:46:17 +0000
(
00:46
+0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/c-lang.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 1786f7ed870dd7bdfe574e5310f69385f5a76435..c5f7527bc474c1f76367967537178a1f958e4e17 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+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>
diff --git
a/gdb/c-lang.c
b/gdb/c-lang.c
index deab3f4fa0b3bfc2bbd5ed6511d317d0835886a0..0c9e4f8059e9b2dddef0e7c6256e48fe04bece0e 100644
(file)
--- 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;