Skip to content

Commit

Permalink
2013-03-04 Luis Machado <[email protected]>
Browse files Browse the repository at this point in the history
	* tracepoint.c (build_traceframe_info): Add code for byte order.
  • Loading branch information
teawater committed Mar 4, 2013
1 parent f75e0e3 commit e83b17b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gdb/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2013-03-04 Luis Machado <[email protected]>

* tracepoint.c (build_traceframe_info): Add code for byte order.

2013-03-02 Kevin Buettner <[email protected]>

* v850-tdep.c: (v850e2_register_name): Revise system register
Expand Down
7 changes: 7 additions & 0 deletions gdb/tracepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e83b17b

Please sign in to comment.