[insight-vmi] r1993 committed - Bugfix: read/write section information also for Function types.

0 views
Skip to first unread message

insig...@googlecode.com

unread,
Jun 24, 2013, 5:53:50 AM6/24/13
to insight-v...@googlegroups.com
Revision: 1993
Author: chrsc...@googlemail.com
Date: Mon Jun 24 02:53:38 2013
Log: Bugfix: read/write section information also for Function types.

http://code.google.com/p/insight-vmi/source/detail?r=1993

Modified:
/trunk/libinsight/function.cpp
/trunk/libinsight/include/insight/kernelsymbolconsts.h

=======================================
--- /trunk/libinsight/function.cpp Tue Feb 12 09:35:31 2013
+++ /trunk/libinsight/function.cpp Mon Jun 24 02:53:38 2013
@@ -78,6 +78,9 @@
void Function::readFrom(KernelSymbolStream& in)
{
FuncPointer::readFrom(in);
+ // This bugfix was introduced in symbol verison 22
+ if (in.kSymVersion() >= kSym::VERSION_22)
+ MemorySection::readFrom(in);

quint64 l, h;
in >> _inlined >> l >> h;
@@ -89,6 +92,9 @@
void Function::writeTo(KernelSymbolStream& out) const
{
FuncPointer::writeTo(out);
+ // This bugfix was introduced in symbol verison 22
+ if (out.kSymVersion() >= kSym::VERSION_22)
+ MemorySection::writeTo(out);

out << _inlined << (quint64)_pcLow << (quint64)_pcHigh;
}
=======================================
--- /trunk/libinsight/include/insight/kernelsymbolconsts.h Tue Mar 26
10:06:59 2013
+++ /trunk/libinsight/include/insight/kernelsymbolconsts.h Mon Jun 24
02:53:38 2013
@@ -29,7 +29,8 @@
VERSION_19 = 19,
VERSION_20 = 20,
VERSION_21 = 21,
- VERSION_MAX = 21
+ VERSION_22 = 22,
+ VERSION_MAX = 22
};
static const qint32 fileMagic = 0x4B53594D; // "KSYM"
static const qint16 fileVersion = VERSION_MAX;
Reply all
Reply to author
Forward
0 new messages