diff options
author | Hui Zhu <teawater@gmail.com> | 2013-03-04 13:52:46 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2013-03-04 13:52:46 +0000 |
commit | e83b17baa42121e7bf76f83ce9b895c51c711108 (patch) | |
tree | 2b5ca68f4d6922cd83b28dbb103bfb792fe4285f /gdb/tracepoint.c | |
parent | f75e0e336f4dc82dfcd05c87d59d0723cbb147de (diff) | |
download | gdb-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/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |