From: Christoph Egger Date: Fri, 20 Mar 2015 15:25:08 +0000 (+0100) Subject: Save dynamic attribute of functions X-Git-Tag: v0.1~23 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=11a693b04f8bc94e72bf7974ea7ed9338efe43e0;p=frida%2Ffrida.git Save dynamic attribute of functions --- diff --git a/src/core/Function.cxx b/src/core/Function.cxx index 1560e2a..4f8efe1 100644 --- a/src/core/Function.cxx +++ b/src/core/Function.cxx @@ -20,6 +20,7 @@ void Function::serialize(QXmlStreamWriter& stream) { 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); @@ -32,6 +33,7 @@ Function* Function::deserialize(QXmlStreamReader& stream, InformationManager* ma 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); @@ -51,6 +53,7 @@ Function* Function::deserialize(QXmlStreamReader& stream, InformationManager* ma } fun->name = name.toStdString(); + fun->dynamic = dynamic; manager->finishFunction(fun); return fun;