From 11a693b04f8bc94e72bf7974ea7ed9338efe43e0 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 20 Mar 2015 16:25:08 +0100 Subject: [PATCH] Save dynamic attribute of functions --- src/core/Function.cxx | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5