From: Michael Snyder Date: Thu, 2 Aug 2007 21:01:37 +0000 (+0000) Subject: 2007-08-02 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=423c0af83c5383e984317f8f05e35ed70737f484;p=binutils-gdb.git 2007-08-02 Michael Snyder * gdbtypes.c (check_typedef): Guard NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7dba67cffdb..d462a310cd6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-08-02 Michael Snyder + + * gdbtypes.c (check_typedef): Guard NULL. + 2007-08-01 Michael Snyder * cli/cli-decode.c (lookup_cmd): Check for null earlier, to diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index c45dfd44e6b..994178d5179 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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))