]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/Mainwindow.cxx
Name Blocks according to start *and* end address
[frida/frida.git] / src / gui / Mainwindow.cxx
index 7d90820a9869436323f5236be1891843642affe5..745fd3ed7c0dfb9f4d10046724a34f7d9b0597a6 100644 (file)
@@ -72,7 +72,8 @@ namespace {
        void local__add_basic_block(BasicBlock * block, Disassembler * dis, QGraphicsScene * scene,
                                                                uint64_t starty, uint64_t startx) {
                std::stringstream s;
-               s << "BLOCK_" << std::hex << block->getStartAddress();
+               s << "BLOCK_" << std::hex << block->getStartAddress()
+                 << "_" << block->getEndAddress();
                BasicBlockWidget * widget = new BasicBlockWidget(s.str().c_str());
                scene->addItem(widget);
                widget->setFlag(QGraphicsItem::ItemIsMovable, true);