X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=745fd3ed7c0dfb9f4d10046724a34f7d9b0597a6;hp=1c8ae0bb2225b49e2132b8cb9dcc188c2c2fcb25;hb=c641f9904bb1c96e173117142122bc636f446297;hpb=f66c54319d23de4c4905ad11a8f552917d2dfba9 diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 1c8ae0b..745fd3e 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -72,15 +72,16 @@ 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); widget->moveBy(100*startx, 10*(block->getStartAddress() - starty)); dis->printEachInstruction(block->getStartAddress(), block->getEndAddress(), - [&](const std::string& line) { - widget->addItem(line.c_str()); + [&](uint8_t* bytes, size_t byte_count, const std::string& line) { + widget->addItem(bytes, byte_count, line.c_str() + 1); }); if (block->getNextBlock(0) != 0)