From 20b8019ab691ab6c327f157626a1f67a65ac9094 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 14 Jul 2016 14:52:55 -0700 Subject: [PATCH] Fix test_block for 64-bit targets. --- debug/gdbserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug/gdbserver.py b/debug/gdbserver.py index d2ee5f5..0310a5b 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -123,7 +123,7 @@ class SimpleMemoryTest(DeleteServer): self.gdb.command("restore write.ihex 0x%x" % target.ram) for offset in range(0, length, 19*4) + [length-4]: - value = self.gdb.p("*((long*)0x%x)" % (target.ram + offset)) + value = self.gdb.p("*((int*)0x%x)" % (target.ram + offset)) written = ord(data[offset]) | \ (ord(data[offset+1]) << 8) | \ (ord(data[offset+2]) << 16) | \ -- 2.30.2