2007-08-02 Michael Snyder <msnyder@access-company.com>

* gdbtypes.c (check_typedef): Guard NULL.
This commit is contained in:
Michael Snyder 2007-08-02 21:01:37 +00:00
parent bd33be6e27
commit 423c0af83c
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (check_typedef): Guard NULL.
2007-08-01 Michael Snyder <msnyder@access-company.com>
* cli/cli-decode.c (lookup_cmd): Check for null earlier, to

View File

@ -1318,6 +1318,8 @@ check_typedef (struct type *type)
struct type *orig_type = type;
int is_const, is_volatile;
gdb_assert (type);
while (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
{
if (!TYPE_TARGET_TYPE (type))