X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftarget-descriptions.c;h=29b80ddd79905e4d7689a92f75e9d6bbbe67c89a;hb=2365f8d70c50afbfd6be69a4076ea6e78fb5485d;hp=f4213bf5880661c7168e17e1ad11c085e1d9aac8;hpb=405feb71d4733a36cdc0629e9e4ccecd1a40dc39;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index f4213bf588..29b80ddd79 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -224,7 +224,7 @@ make_gdb_type (struct gdbarch *gdbarch, struct tdesc_type *ttype) the total size of the structure. */ bitsize = f.end - f.start + 1; total_size = e->size * TARGET_CHAR_BIT; - if (gdbarch_bits_big_endian (m_gdbarch)) + if (gdbarch_byte_order (m_gdbarch) == BFD_ENDIAN_BIG) SET_FIELD_BITPOS (fld[0], total_size - f.start - bitsize); else SET_FIELD_BITPOS (fld[0], f.start); @@ -1758,7 +1758,7 @@ record_xml_tdesc (const char *xml_file, const struct target_desc *tdesc) } -/* Test the convesion process of a target description to/from xml: Take a target +/* Test the conversion process of a target description to/from xml: Take a target description TDESC, convert to xml, back to a description, and confirm the new tdesc is identical to the original. */ static bool