From: Christoph Egger Date: Tue, 3 Jun 2014 14:49:46 +0000 (+0200) Subject: Name Blocks according to start *and* end address X-Git-Tag: v0.1~179 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=c641f9904bb1c96e173117142122bc636f446297;p=frida%2Ffrida.git Name Blocks according to start *and* end address --- 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);