aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/tracepoint.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2a35477..848fa3d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 9a80aa3..a212227 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -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);