From efabfaba3004f9fb454dca0c27205ea3c8a45297 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 14 Jul 2016 14:49:23 -0700 Subject: [PATCH] Fix test_32 on 64-bit targets. --- debug/gdbserver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debug/gdbserver.py b/debug/gdbserver.py index f042e48..d2ee5f5 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -89,6 +89,8 @@ class SimpleMemoryTest(DeleteServer): self.gdb.command("target extended-remote localhost:%d" % self.server.port) def access_test(self, size, data_type): + self.assertEqual(self.gdb.p("sizeof(%s)" % data_type), + size) a = 0x86753095555aaaa & ((1<<(size*8))-1) b = 0xdeadbeef12345678 & ((1<<(size*8))-1) self.gdb.p("*((%s*)0x%x) = 0x%x" % (data_type, target.ram, a)) @@ -103,7 +105,7 @@ class SimpleMemoryTest(DeleteServer): self.access_test(2, 'short') def test_32(self): - self.access_test(4, 'long') + self.access_test(4, 'int') def test_64(self): self.access_test(8, 'long long') -- 2.30.2