]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/Function.hxx
Add support for deserializing functions
[frida/frida.git] / src / core / Function.hxx
index 5497800969e57b8f12a2a2c8e24bdaf20688c675..75b38c2cd34877fe0349b80eae21b5dc57976fbb 100644 (file)
@@ -5,10 +5,10 @@
 #include "BasicBlock.hxx"
 
 class InformationManager;
+class QXmlStreamWriter;
 
 class Function {
 public:
-
        uint64_t getStartAddress() const {
                return start_address;
        }
@@ -28,6 +28,10 @@ public:
        const std::map<uint64_t, BasicBlock*>& blocks() {
                return _blocks;
        }
+
+       void serialize(QXmlStreamWriter& stream);
+       static Function* deserialize(QXmlStreamReader& stream, InformationManager* manager);
+
 private:
        Function(uint64_t start_address, InformationManager* manager);