stream.writeStartElement("function");
stream.writeAttribute("name", getName().c_str());
stream.writeAttribute("entry", QString::number(getStartAddress(), 16));
+ stream.writeAttribute("dynamic", dynamic? "yes" : "no");
for (auto& blockentry : blocks()) {
blockentry.second->serialize(stream);
Q_ASSERT(stream.name() == "function");
QString name = stream.attributes().value("name").toString();
+ bool dynamic = stream.attributes().value("dynamic").toString() == "yes";
uint64_t entry = stream.attributes().value("entry").toULongLong(NULL, 16);
Function* fun = manager->newFunction(entry);
}
fun->name = name.toStdString();
+ fun->dynamic = dynamic;
manager->finishFunction(fun);
return fun;