aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2013-03-04 13:52:46 +0000
committerHui Zhu <teawater@gmail.com>2013-03-04 13:52:46 +0000
commite83b17baa42121e7bf76f83ce9b895c51c711108 (patch)
tree2b5ca68f4d6922cd83b28dbb103bfb792fe4285f /gdb
parentf75e0e336f4dc82dfcd05c87d59d0723cbb147de (diff)
downloadgdb-e83b17baa42121e7bf76f83ce9b895c51c711108.zip
gdb-e83b17baa42121e7bf76f83ce9b895c51c711108.tar.gz
gdb-e83b17baa42121e7bf76f83ce9b895c51c711108.tar.bz2
2013-03-04 Luis Machado <lgustavo@codesourcery.com>
* tracepoint.c (build_traceframe_info): Add code for byte order.
Diffstat (limited to 'gdb')
-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);