2013-03-04 Luis Machado <lgustavo@codesourcery.com>

* tracepoint.c (build_traceframe_info): Add code for byte order.
This commit is contained in:
Hui Zhu 2013-03-04 13:52:46 +00:00
parent f75e0e336f
commit e83b17baa4
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-03-04 Luis Machado <lgustavo@codesourcery.com>
* tracepoint.c (build_traceframe_info): Add code for byte order.
2013-03-02 Kevin Buettner <kevinb@redhat.com>
* v850-tdep.c: (v850e2_register_name): Revise system register

View File

@ -4716,7 +4716,14 @@ build_traceframe_info (char blocktype, void *data)
unsigned short mlen;
tfile_read ((gdb_byte *) &maddr, 8);
maddr = extract_unsigned_integer ((gdb_byte *) &maddr, 8,
gdbarch_byte_order
(target_gdbarch ()));
tfile_read ((gdb_byte *) &mlen, 2);
mlen = (unsigned short)
extract_unsigned_integer ((gdb_byte *) &mlen,
2, gdbarch_byte_order
(target_gdbarch ()));
r = VEC_safe_push (mem_range_s, info->memory, NULL);