2007-08-02 Michael Snyder <msnyder@access-company.com>
* gdbtypes.c (check_typedef): Guard NULL.
This commit is contained in:
parent
bd33be6e27
commit
423c0af83c
@ -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>
|
2007-08-01 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
||||||
* cli/cli-decode.c (lookup_cmd): Check for null earlier, to
|
* cli/cli-decode.c (lookup_cmd): Check for null earlier, to
|
||||||
|
@ -1318,6 +1318,8 @@ check_typedef (struct type *type)
|
|||||||
struct type *orig_type = type;
|
struct type *orig_type = type;
|
||||||
int is_const, is_volatile;
|
int is_const, is_volatile;
|
||||||
|
|
||||||
|
gdb_assert (type);
|
||||||
|
|
||||||
while (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
|
while (TYPE_CODE (type) == TYPE_CODE_TYPEDEF)
|
||||||
{
|
{
|
||||||
if (!TYPE_TARGET_TYPE (type))
|
if (!TYPE_TARGET_TYPE (type))
|
||||||
|
Loading…
Reference in New Issue
Block a user