Name Blocks according to start *and* end address
authorChristoph Egger <siccegge@cs.fau.de>
Tue, 3 Jun 2014 14:49:46 +0000 (16:49 +0200)
committerChristoph Egger <siccegge@cs.fau.de>
Tue, 3 Jun 2014 14:49:46 +0000 (16:49 +0200)
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;
        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);
                BasicBlockWidget * widget = new BasicBlockWidget(s.str().c_str());
                scene->addItem(widget);
                widget->setFlag(QGraphicsItem::ItemIsMovable, true);