Author: martin
Date: 2007-10-05 09:08:53 -0400 (Fri, 05 Oct 2007)
New Revision: 86973
Modified:
trunk/debugger/ChangeLog
trunk/debugger/languages/BitfieldTargetLocation.cs
trunk/debugger/languages/ClientSuppliedTargetLocation.cs
trunk/debugger/languages/TargetArrayObject.cs
trunk/debugger/languages/TargetEnumObject.cs
trunk/debugger/languages/TargetFundamentalObject.cs
trunk/debugger/languages/TargetLocation.cs
trunk/debugger/languages/TargetObject.cs
trunk/debugger/languages/TargetObjectObject.cs
trunk/debugger/languages/mono/MonoArrayObject.cs
trunk/debugger/languages/mono/MonoClassObject.cs
trunk/debugger/languages/mono/MonoNullObject.cs
trunk/debugger/languages/mono/MonoPointerObject.cs
trunk/debugger/languages/mono/MonoStringObject.cs
trunk/debugger/languages/mono/MonoVariableLocation.cs
trunk/debugger/languages/native/NativeArrayObject.cs
trunk/debugger/languages/native/NativeOpaqueObject.cs
trunk/debugger/languages/native/NativePointerObject.cs
trunk/debugger/languages/native/NativeStructObject.cs
Log:
2007-10-05 Martin Baulig <[EMAIL PROTECTED]>
* languages/TargetObject.cs
(TargetObject.GetDynamicSize): `Thread' -> `TargetMemoryAccess'.
* languages/TargetLocation.cs
(TargetLocation.ReadMemory): `Thread' -> `TargetMemoryAccess'.
(TargetLocation.ReadBuffer): Likewise.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2007-10-05 12:59:42 UTC (rev 86972)
+++ trunk/debugger/ChangeLog 2007-10-05 13:08:53 UTC (rev 86973)
@@ -1,5 +1,14 @@
2007-10-05 Martin Baulig <[EMAIL PROTECTED]>
+ * languages/TargetObject.cs
+ (TargetObject.GetDynamicSize): `Thread' -> `TargetMemoryAccess'.
+
+ * languages/TargetLocation.cs
+ (TargetLocation.ReadMemory): `Thread' -> `TargetMemoryAccess'.
+ (TargetLocation.ReadBuffer): Likewise.
+
+2007-10-05 Martin Baulig <[EMAIL PROTECTED]>
+
* languages/TargetEnumType.cs
(TargetEnumType.Value): Replaced by a GetValue() method.
Modified: trunk/debugger/languages/BitfieldTargetLocation.cs
===================================================================
--- trunk/debugger/languages/BitfieldTargetLocation.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/BitfieldTargetLocation.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -36,7 +36,7 @@
return sb.ToString ();
}
- internal override TargetBlob ReadMemory (Thread target, int
size)
+ internal override TargetBlob ReadMemory (TargetMemoryAccess
target, int size)
{
byte[] data = relative_to.ReadBuffer (target, size);
Modified: trunk/debugger/languages/ClientSuppliedTargetLocation.cs
===================================================================
--- trunk/debugger/languages/ClientSuppliedTargetLocation.cs 2007-10-05
12:59:42 UTC (rev 86972)
+++ trunk/debugger/languages/ClientSuppliedTargetLocation.cs 2007-10-05
13:08:53 UTC (rev 86973)
@@ -23,7 +23,7 @@
throw new InvalidOperationException ();
}
- internal override TargetBlob ReadMemory (Thread target, int
size)
+ internal override TargetBlob ReadMemory (TargetMemoryAccess
target, int size)
{
if (size > blob.Size)
throw new ArgumentException ();
Modified: trunk/debugger/languages/TargetArrayObject.cs
===================================================================
--- trunk/debugger/languages/TargetArrayObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/TargetArrayObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -15,9 +15,9 @@
this.Rank = type.Rank;
}
- protected abstract void DoGetArrayBounds (Thread target);
+ protected abstract void DoGetArrayBounds (TargetMemoryAccess
target);
- protected bool GetArrayBounds (Thread target)
+ protected bool GetArrayBounds (TargetMemoryAccess target)
{
if (bounds != null)
return true;
@@ -32,7 +32,7 @@
}
}
- public int GetLowerBound (Thread target, int dimension)
+ public int GetLowerBound (TargetMemoryAccess target, int
dimension)
{
if (!GetArrayBounds (target))
throw new LocationInvalidException ();
@@ -43,7 +43,7 @@
return bounds [dimension].Lower;
}
- public int GetUpperBound (Thread target, int dimension)
+ public int GetUpperBound (TargetMemoryAccess target, int
dimension)
{
if (!GetArrayBounds (target))
throw new LocationInvalidException ();
@@ -54,7 +54,7 @@
return bounds [dimension].Lower + bounds
[dimension].Length;
}
- protected int GetArrayOffset (Thread target, int[] indices)
+ protected int GetArrayOffset (TargetMemoryAccess target, int[]
indices)
{
if (!GetArrayBounds (target))
throw new LocationInvalidException ();
@@ -87,7 +87,7 @@
throw new InvalidOperationException ();
}
- protected int GetLength (Thread target)
+ protected int GetLength (TargetMemoryAccess target)
{
if (!GetArrayBounds (target))
throw new LocationInvalidException ();
@@ -98,7 +98,7 @@
return length;
}
- public abstract TargetObject GetElement (Thread target, int[]
indices);
+ public abstract TargetObject GetElement (TargetMemoryAccess
target, int[] indices);
public abstract void SetElement (Thread target, int[] indices,
TargetObject obj);
@@ -107,7 +107,7 @@
get;
}
- public abstract TargetClassObject GetClassObject (Thread
target);
+ public abstract TargetClassObject GetClassObject
(TargetMemoryAccess target);
public override string ToString ()
{
Modified: trunk/debugger/languages/TargetEnumObject.cs
===================================================================
--- trunk/debugger/languages/TargetEnumObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/TargetEnumObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -17,7 +17,7 @@
return Type.GetValue (target, Location);
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/TargetFundamentalObject.cs
===================================================================
--- trunk/debugger/languages/TargetFundamentalObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/TargetFundamentalObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -12,7 +12,7 @@
this.Type = type;
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/TargetLocation.cs
===================================================================
--- trunk/debugger/languages/TargetLocation.cs 2007-10-05 12:59:42 UTC (rev
86972)
+++ trunk/debugger/languages/TargetLocation.cs 2007-10-05 13:08:53 UTC (rev
86973)
@@ -19,7 +19,7 @@
internal abstract TargetAddress GetAddress (TargetMemoryAccess
target);
- internal virtual TargetBlob ReadMemory (Thread target, int size)
+ internal virtual TargetBlob ReadMemory (TargetMemoryAccess
target, int size)
{
return target.ReadMemory (GetAddress (target), size);
}
@@ -27,7 +27,7 @@
// <summary>
// Same than ReadMemory(), but returns a byte[] array.
// </summary>
- internal byte[] ReadBuffer (Thread target, int size)
+ internal byte[] ReadBuffer (TargetMemoryAccess target, int size)
{
return ReadMemory (target, size).Contents;
}
Modified: trunk/debugger/languages/TargetObject.cs
===================================================================
--- trunk/debugger/languages/TargetObject.cs 2007-10-05 12:59:42 UTC (rev
86972)
+++ trunk/debugger/languages/TargetObject.cs 2007-10-05 13:08:53 UTC (rev
86973)
@@ -50,7 +50,7 @@
return Location.GetAddress (target);
}
- internal abstract long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal abstract long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location);
Modified: trunk/debugger/languages/TargetObjectObject.cs
===================================================================
--- trunk/debugger/languages/TargetObjectObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/TargetObjectObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -14,7 +14,7 @@
public abstract TargetClassObject GetClassObject (Thread
target);
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/mono/MonoArrayObject.cs
===================================================================
--- trunk/debugger/languages/mono/MonoArrayObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/mono/MonoArrayObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -8,7 +8,7 @@
: base (type, location)
{ }
- protected override void DoGetArrayBounds (Thread target)
+ protected override void DoGetArrayBounds (TargetMemoryAccess
target)
{
TargetBinaryReader reader = Location.ReadMemory
(target, type.Size).GetReader ();
@@ -23,7 +23,7 @@
reader.Position = 2 *
reader.TargetInfo.TargetAddressSize;
TargetAddress bounds_address = new TargetAddress (
- target.AddressDomain, reader.ReadAddress ());
+ target.TargetInfo.AddressDomain,
reader.ReadAddress ());
TargetBinaryReader breader = target.ReadMemory (
bounds_address, 8 * Rank).GetReader ();
@@ -36,7 +36,7 @@
}
}
- public override TargetObject GetElement (Thread target, int[]
indices)
+ public override TargetObject GetElement (TargetMemoryAccess
target, int[] indices)
{
int offset = GetArrayOffset (target, indices);
@@ -89,7 +89,7 @@
throw new InvalidOperationException ();
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
@@ -110,7 +110,7 @@
get { return true; }
}
- public override TargetClassObject GetClassObject (Thread target)
+ public override TargetClassObject GetClassObject
(TargetMemoryAccess target)
{
return (TargetClassObject)
Type.Language.ArrayType.GetObject (target, Location);
}
Modified: trunk/debugger/languages/mono/MonoClassObject.cs
===================================================================
--- trunk/debugger/languages/mono/MonoClassObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/mono/MonoClassObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -46,7 +46,7 @@
return info.KlassAddress;
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/mono/MonoNullObject.cs
===================================================================
--- trunk/debugger/languages/mono/MonoNullObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/mono/MonoNullObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -8,7 +8,7 @@
: base (type, location)
{ }
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/mono/MonoPointerObject.cs
===================================================================
--- trunk/debugger/languages/mono/MonoPointerObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/mono/MonoPointerObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -22,7 +22,7 @@
return Type.StaticType.GetObject (target, Location);
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/mono/MonoStringObject.cs
===================================================================
--- trunk/debugger/languages/mono/MonoStringObject.cs 2007-10-05 12:59:42 UTC
(rev 86972)
+++ trunk/debugger/languages/mono/MonoStringObject.cs 2007-10-05 13:08:53 UTC
(rev 86973)
@@ -12,7 +12,7 @@
this.Type = type;
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/mono/MonoVariableLocation.cs
===================================================================
--- trunk/debugger/languages/mono/MonoVariableLocation.cs 2007-10-05
12:59:42 UTC (rev 86972)
+++ trunk/debugger/languages/mono/MonoVariableLocation.cs 2007-10-05
13:08:53 UTC (rev 86973)
@@ -63,7 +63,7 @@
return address;
}
- internal override TargetBlob ReadMemory (Thread target, int
size)
+ internal override TargetBlob ReadMemory (TargetMemoryAccess
target, int size)
{
if (!is_valid)
throw new LocationInvalidException ();
Modified: trunk/debugger/languages/native/NativeArrayObject.cs
===================================================================
--- trunk/debugger/languages/native/NativeArrayObject.cs 2007-10-05
12:59:42 UTC (rev 86972)
+++ trunk/debugger/languages/native/NativeArrayObject.cs 2007-10-05
13:08:53 UTC (rev 86973)
@@ -12,10 +12,10 @@
bounds [0] = new ArrayBounds (lower_bound, upper_bound
- lower_bound);
}
- protected override void DoGetArrayBounds (Thread target)
+ protected override void DoGetArrayBounds (TargetMemoryAccess
target)
{ }
- public override TargetObject GetElement (Thread target, int[]
indices)
+ public override TargetObject GetElement (TargetMemoryAccess
target, int[] indices)
{
if (indices.Length != 1)
throw new ArgumentException ();
@@ -36,7 +36,7 @@
throw new NotSupportedException ();
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
@@ -55,7 +55,7 @@
get { return false; }
}
- public override TargetClassObject GetClassObject (Thread target)
+ public override TargetClassObject GetClassObject
(TargetMemoryAccess target)
{
throw new InvalidOperationException ();
}
Modified: trunk/debugger/languages/native/NativeOpaqueObject.cs
===================================================================
--- trunk/debugger/languages/native/NativeOpaqueObject.cs 2007-10-05
12:59:42 UTC (rev 86972)
+++ trunk/debugger/languages/native/NativeOpaqueObject.cs 2007-10-05
13:08:53 UTC (rev 86973)
@@ -8,7 +8,7 @@
: base (type, location)
{ }
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/native/NativePointerObject.cs
===================================================================
--- trunk/debugger/languages/native/NativePointerObject.cs 2007-10-05
12:59:42 UTC (rev 86972)
+++ trunk/debugger/languages/native/NativePointerObject.cs 2007-10-05
13:08:53 UTC (rev 86973)
@@ -25,7 +25,7 @@
return Type.StaticType.GetObject (target, new_location);
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
Modified: trunk/debugger/languages/native/NativeStructObject.cs
===================================================================
--- trunk/debugger/languages/native/NativeStructObject.cs 2007-10-05
12:59:42 UTC (rev 86972)
+++ trunk/debugger/languages/native/NativeStructObject.cs 2007-10-05
13:08:53 UTC (rev 86973)
@@ -33,7 +33,7 @@
type.SetField (target, Location, (NativeFieldInfo)
field, obj);
}
- internal override long GetDynamicSize (Thread target,
TargetBlob blob,
+ internal override long GetDynamicSize (TargetMemoryAccess
target, TargetBlob blob,
TargetLocation location,
out TargetLocation
dynamic_location)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches