Does anyone know how to do instruction by instruction tracing under IRIX? I.e. I want to run an application on my Tezro and generate an execution trace of every instruction executed including program counter, the raw instruction, and if a load or store the memory reference.
On my PowerPC box I would set the single step bit in MSR which causes a SIGTRAP on every instruction, so I just catch the handler, look at the context, save what I want, and then return. I have been mining the web for someone doing something equivalent on SGI but haven't been able to find anything.
Anyone have any pointers? I don't want to have to go find an emulator running Linux/MIPS and hack the sh** out of it to get a simple instruction trace lol.
Thanks,
--E
On my PowerPC box I would set the single step bit in MSR which causes a SIGTRAP on every instruction, so I just catch the handler, look at the context, save what I want, and then return. I have been mining the web for someone doing something equivalent on SGI but haven't been able to find anything.
Anyone have any pointers? I don't want to have to go find an emulator running Linux/MIPS and hack the sh** out of it to get a simple instruction trace lol.
Thanks,
--E