From e83b17baa42121e7bf76f83ce9b895c51c711108 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Mon, 4 Mar 2013 13:52:46 +0000 Subject: [PATCH] 2013-03-04 Luis Machado * tracepoint.c (build_traceframe_info): Add code for byte order. --- gdb/ChangeLog | 4 ++++ gdb/tracepoint.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2a354777fdd..848fa3d02cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-03-04 Luis Machado + + * tracepoint.c (build_traceframe_info): Add code for byte order. + 2013-03-02 Kevin Buettner * v850-tdep.c: (v850e2_register_name): Revise system register diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 9a80aa333a9..a2122279d34 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); -- 2.30.2