Code or info to find overridden, implemented, and overriding methods

2 views
Skip to first unread message

Harald M.

unread,
Nov 17, 2009, 10:48:04 AM11/17/09
to mono-cecil
Hello -

I'm writing a call graph detector. It will, in its first version, show
"potential calls" = calls to all overriding methods.
I'll have to write code to find those methods, also over assembly
boundaries.

I'd like to take a look at code that already does this, as it
obviously not that easy (e.g. the cases shown in
http://groups.google.com/group/mono-cecil/msg/5f69e80a2c7e7240 ).

If someone could give me a pointer to such code (e.g. in Gendarme?),
I'd be happy ... and of course willing to post back any knowledge I
might gain :-)

Thanks
Harald M.

Jb Evain

unread,
Nov 17, 2009, 12:08:30 PM11/17/09
to mono-...@googlegroups.com
Hey Harold,

On 11/17/09, Harald M. <harald_m...@gmx.de> wrote:
> If someone could give me a pointer to such code (e.g. in Gendarme?),
> I'd be happy ... and of course willing to post back any knowledge I
> might gain :-)

You can have a look at the code in the linker which creates a map of
all methods that are base method or that override methods:

http://anonsvn.mono-project.com/source/trunk/mcs/tools/linker/Mono.Linker.Steps/TypeMapStep.cs

--
Jb Evain <j...@nurv.fr>

Jb Evain

unread,
Nov 17, 2009, 12:09:02 PM11/17/09
to mono-...@googlegroups.com
On 11/17/09, Jb Evain <j...@nurv.fr> wrote:
> Hey Harold,

Sorry, Harald, I hit send too fast.

--
Jb Evain <j...@nurv.fr>

Harald Mueller

unread,
Nov 17, 2009, 3:27:33 PM11/17/09
to mono-...@googlegroups.com
No problem :-) !!!
-------- Original-Nachricht --------
> Datum: Tue, 17 Nov 2009 18:09:02 +0100
> Von: Jb Evain <j...@nurv.fr>
> An: mono-...@googlegroups.com
> Betreff: Re: [mono-cecil] Code or info to find overridden, implemented, and overriding methods
> --
> --
> mono-cecil

--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser

Harald Mueller

unread,
Nov 17, 2009, 3:28:04 PM11/17/09
to mono-...@googlegroups.com
Thanks - I'll dive into it ...
Regards
Harald

-------- Original-Nachricht --------
> Datum: Tue, 17 Nov 2009 18:08:30 +0100
> Von: Jb Evain <j...@nurv.fr>
> An: mono-...@googlegroups.com
> Betreff: Re: [mono-cecil] Code or info to find overridden, implemented, and overriding methods

> --
> --
> mono-cecil

--
GRATIS f�r alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Reply all
Reply to author
Forward
0 new messages