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=b111ca0e0961d2e5294d555a25e8f3cea7ff9785;hpb=f66c54319d23de4c4905ad11a8f552917d2dfba9 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)