Re (2): [Oberon] Identify Calling Command

Felix Friedrich friedrich at gsf.de
Fri Aug 23 10:02:14 CEST 2002


>
>Reading the following description, it seems you'll also need the procedure
>name, not just the module PC offset.
>
>It seems that your calling procedure is always going to be a command,
>so you could run through the mod.cmds (in Kernel.ModuleDesc) array to
>look for the matching command in the module descriptor, based on its
>.adr field.  The .adr field stores the entry point of the command
>procedure, so you'll have to search for the next lower address in the
>array, based on the return address from the procedure.  Hope you follow
>what I'm trying to say, otherwise I could be more explicit :-)
Thank you Pieter,
I have done it exactly like that and it worked perfectly.

Felix.
--

Felix Friedrich

Institut für Biomathematik und Biometrie
GSF - Forschungszentrum für Umwelt und Gesundheit, GmbH
Ingolstädter Landstraße 1, D-85764 Neuherberg

Tel:      ++49 89 3187 2436
email:  friedrich at gsf.de

--




More information about the Oberon mailing list