mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 05:42:42 +08:00
* gdbtypes.c (init_flags_type): Set all fields to zero instead of
just the first one.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2006-08-22 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* gdbtypes.c (init_flags_type): Set all fields to zero instead of
|
||||||
|
just the first one.
|
||||||
|
|
||||||
2006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
|
2006-08-22 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* Makefile.in (INTERNAL_CPPFLAGS): New.
|
* Makefile.in (INTERNAL_CPPFLAGS): New.
|
||||||
|
@ -878,7 +878,7 @@ init_flags_type (char *name, int length)
|
|||||||
type = init_type (TYPE_CODE_FLAGS, length, TYPE_FLAG_UNSIGNED, name, NULL);
|
type = init_type (TYPE_CODE_FLAGS, length, TYPE_FLAG_UNSIGNED, name, NULL);
|
||||||
TYPE_NFIELDS (type) = nfields;
|
TYPE_NFIELDS (type) = nfields;
|
||||||
TYPE_FIELDS (type) = TYPE_ALLOC (type, nfields * sizeof (struct field));
|
TYPE_FIELDS (type) = TYPE_ALLOC (type, nfields * sizeof (struct field));
|
||||||
memset (TYPE_FIELDS (type), 0, sizeof (struct field));
|
memset (TYPE_FIELDS (type), 0, nfields * sizeof (struct field));
|
||||||
|
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user