Search code examples
macosdebuggingassemblypowerpc

PPC breakpoints


How is a breakpoint implemented on PPC (On OS X, to be specific)?

For example, on x86 it's typically done with the INT 3 instruction (0xCC) -- is there an instruction comparable to this for ppc? Or is there some other way they're set/implemented?


Solution

  • I'm told by a reliable (but currently inebriated, so take it with a grain of salt) source that it's a zero instruction which is illegal and causes some sort of system trap.

    EDIT: Made into community wiki in case my friend is so drunk that he's talking absolute rubbish :-)