[Mono-dev] Debugging Busted CIL

Jim Purbrick jimpurbrick at yahoo.co.uk
Tue Oct 4 05:01:56 EDT 2005


> > Did you verify the assembly?
> > 
> > Mono: pedump --verify code  <assembly>

I'm now getting an interesting error from pedump:

Error: Incompatible type Managed Pointer in store at
0x029a

What I'm trying to do is store the result of a ldflda
instruction.

The StackBehaviourPush of the ldflda instruction
returns pushi, so I try to store the result in an
int32, but MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemreflectionemitopcodesclassldfldatopic.asp)
and the ECMA specs
(http://dotnet.di.unipi.it/EcmaSpec/PartitionIII/cont4.html#_Toc526908960)
both state that ldflda pushes a Managed Pointer on to
the stack (which is presumably why pedump is
complaining when I try to store the result in an
Int32).

Is is possible to store and load Managed Pointers in
CIL? How?

Cheers,

Jim.


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com



More information about the Mono-devel-list mailing list