mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 15:17:13 +08:00
* gdbtypes.c (append_composite_type_field): Correct the location of
appended fields.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* gdbtypes.c (append_composite_type_field): Correct the location of
|
||||||
|
appended fields.
|
||||||
|
|
||||||
2009-01-09 Pedro Alves <pedro@codesourcery.com>
|
2009-01-09 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* defs.h (deprecated_error_hook): Delete declaration.
|
* defs.h (deprecated_error_hook): Delete declaration.
|
||||||
|
@ -1856,10 +1856,9 @@ append_composite_type_field (struct type *t, char *name,
|
|||||||
{
|
{
|
||||||
TYPE_LENGTH (t) = TYPE_LENGTH (t) + TYPE_LENGTH (field);
|
TYPE_LENGTH (t) = TYPE_LENGTH (t) + TYPE_LENGTH (field);
|
||||||
if (TYPE_NFIELDS (t) > 1)
|
if (TYPE_NFIELDS (t) > 1)
|
||||||
{
|
FIELD_BITPOS (f[0]) = (FIELD_BITPOS (f[-1])
|
||||||
FIELD_BITPOS (f[0]) = (FIELD_BITPOS (f[-1])
|
+ (TYPE_LENGTH (FIELD_TYPE (f[-1]))
|
||||||
+ TYPE_LENGTH (field) * TARGET_CHAR_BIT);
|
* TARGET_CHAR_BIT));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user