summaryrefslogtreecommitdiffstats
path: root/tests/auto/addresscache/tst_addresscache.cpp
diff options
context:
space:
mode:
authorDarya Knysh <d.knysh@nips.ru>2020-12-15 12:19:30 +0700
committerDarya Knysh <d.knysh@nips.ru>2020-12-15 08:31:01 +0000
commitb261afd93e4784920982935276b277a42d2e31b8 (patch)
treef18f693224d58adc7dee65444987433113a8f7a5 /tests/auto/addresscache/tst_addresscache.cpp
parent254b3d3190ee3f264a083f32704748c24c6f3a94 (diff)
Add Disassembler functionality
Added start address and size into Symbol and their stream output. A disassembler can then use the relative address and size of a symbol to find the instructions that belong to a function. Change-Id: I96709ca380d0e58cd5cf5a8cc87116147b2754d6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/addresscache/tst_addresscache.cpp')
-rw-r--r--tests/auto/addresscache/tst_addresscache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/addresscache/tst_addresscache.cpp b/tests/auto/addresscache/tst_addresscache.cpp
index 6387a4e..de5684a 100644
--- a/tests/auto/addresscache/tst_addresscache.cpp
+++ b/tests/auto/addresscache/tst_addresscache.cpp
@@ -72,7 +72,7 @@ private slots:
QVERIFY(!cache.findSymbol(libfoo_a, 0).isValid());
QVERIFY(!cache.findSymbol(libfoo_b, 0).isValid());
- cache.setSymbolCache(libfoo_a, {{0x100, 10, "Foo"}, {0x11a, 0, "FooZ"}, {0x12a, 10, "FooN"}});
+ cache.setSymbolCache(libfoo_a, {{0x100, 0x100, 10, "Foo"}, {0x11a, 0x11a, 0, "FooZ"}, {0x12a, 0x12a, 10, "FooN"}});
for (auto addr : {0x100, 0x100 + 9}) {
const auto cached = cache.findSymbol(libfoo_a, addr);
QVERIFY(cached.isValid());