Author: martin
Date: 2007-10-09 12:25:24 -0400 (Tue, 09 Oct 2007)
New Revision: 87192
Modified:
branches/martin/debugger-terrania/backend/MonoThreadManager.cs
branches/martin/debugger-terrania/languages/mono/MonoClassInfo.cs
Log:
Merged from HEAD.
Modified: branches/martin/debugger-terrania/backend/MonoThreadManager.cs
===================================================================
--- branches/martin/debugger-terrania/backend/MonoThreadManager.cs
2007-10-09 16:23:59 UTC (rev 87191)
+++ branches/martin/debugger-terrania/backend/MonoThreadManager.cs
2007-10-09 16:25:24 UTC (rev 87192)
@@ -258,8 +258,8 @@
internal class MonoDebuggerInfo
{
// These constants must match up with those in
mono/mono/metadata/mono-debug.h
- public const int MinDynamicVersion = 61;
- public const int MaxDynamicVersion = 61;
+ public const int MinDynamicVersion = 62;
+ public const int MaxDynamicVersion = 62;
public const long DynamicMagic = 0x7aff65af4253d427;
public readonly TargetAddress NotificationAddress;
@@ -376,6 +376,8 @@
public readonly int KlassGenericClassOffset;
public readonly int KlassGenericContainerOffset;
public readonly int FieldInfoSize;
+ public readonly int FieldInfoTypeOffset;
+ public readonly int FieldInfoOffsetOffset;
public readonly int MonoDefaultsCorlibOffset;
public readonly int MonoDefaultsObjectOffset;
@@ -436,6 +438,8 @@
KlassGenericClassOffset = reader.ReadInt32 ();
KlassGenericContainerOffset = reader.ReadInt32 ();
FieldInfoSize = reader.ReadInt32 ();
+ FieldInfoTypeOffset = reader.ReadInt32 ();
+ FieldInfoOffsetOffset = reader.ReadInt32 ();
KlassFieldCountOffset = KlassMethodCountOffset - 8;
Modified: branches/martin/debugger-terrania/languages/mono/MonoClassInfo.cs
===================================================================
--- branches/martin/debugger-terrania/languages/mono/MonoClassInfo.cs
2007-10-09 16:23:59 UTC (rev 87191)
+++ branches/martin/debugger-terrania/languages/mono/MonoClassInfo.cs
2007-10-09 16:25:24 UTC (rev 87192)
@@ -117,10 +117,12 @@
for (int i = 0; i < field_count; i++) {
int offset = i * metadata.FieldInfoSize;
- TargetAddress type_addr =
field_blob.PeekAddress (offset);
+ TargetAddress type_addr =
field_blob.PeekAddress (
+ offset + metadata.FieldInfoTypeOffset);
field_types [i] = MonoRuntime.ReadType (
SymbolFile.MonoLanguage, target,
type_addr);
- field_offsets [i] = field_blob.PeekInteger
(offset + 2 * address_size);
+ field_offsets [i] = field_blob.PeekInteger (
+ offset +
metadata.FieldInfoOffsetOffset);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches