X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=7d90820a9869436323f5236be1891843642affe5;hp=1c8ae0bb2225b49e2132b8cb9dcc188c2c2fcb25;hb=f47dd6b106b9ba1d6363277b47cdec2ac0448f6c;hpb=cd5fda05c80a6cd3c31a7884559d985ef79473f7 diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 1c8ae0b..7d90820 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -79,8 +79,8 @@ namespace { 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)