]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/Mainwindow.cxx
Fill BasicBlockWidgets with actual assembly instructions
[frida/frida.git] / src / gui / Mainwindow.cxx
index 5e47b25871227bc791e9354021f49d2e5d0a7466..1c8ae0bb2225b49e2132b8cb9dcc188c2c2fcb25 100644 (file)
@@ -78,6 +78,11 @@ namespace {
                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());
+                                                                 });
+
                if (block->getNextBlock(0) != 0)
                        local__add_basic_block(dis->getBasicBlock(block->getNextBlock(0)), dis, scene, starty, startx+1);
                if (block->getNextBlock(1) != 0)