From c641f9904bb1c96e173117142122bc636f446297 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 3 Jun 2014 16:49:46 +0200 Subject: [PATCH] Name Blocks according to start *and* end address --- src/gui/Mainwindow.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 7d90820..745fd3e 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -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); -- 2.39.5