forked from Imagelibrary/binutils-gdb
* p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
|
||||
|
||||
2010-03-07 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* remote.c (remote_get_ada_task_ptid): New function.
|
||||
|
||||
@@ -101,7 +101,7 @@ is_pascal_string_type (struct type *type,int *length_pos,
|
||||
struct type **char_type,
|
||||
char **arrayname)
|
||||
{
|
||||
if (TYPE_CODE (type) == TYPE_CODE_STRUCT)
|
||||
if (type != NULL && TYPE_CODE (type) == TYPE_CODE_STRUCT)
|
||||
{
|
||||
/* Old Borland type pascal strings from Free Pascal Compiler. */
|
||||
/* Two fields: length and st. */
|
||||
|
||||
Reference in New Issue
Block a user