Original Post
Dear all, This is a semi-technical question and I hope someone will have the answer. I want to put up a dynamic interpreter. It will take the form of a separate thread and will interpret the code of the first thread. I've been reading a little bit on the net but I still have one big problem: How do I know exactly where the instructions start and how do I get the PC (program counter). So basically, how do I get the instruction the program is executing. For example, it's easy to put to sleep the main thread but then to know where it's up to and exactly what instruction is it doing... I've checked out the structures in the /proc/ directory (yes I'm working under linux), but I haven't really discovered what I need... Thanx for your help and insight, Jc