3 ms·
gdb /Applications/iTunes.app/Contents/MacOS/iTunes (gdb) fb ptrace (gdb) run [ breaks at ptrace ] (gdb) return [ type 'y' to return to the parent, skipping
by salgernon 15y ago
gdb /Applications/iTunes.app/Contents/MacOS/iTunes
(gdb) fb ptrace
(gdb) run
[ breaks at ptrace ]
(gdb) return
[ type 'y' to return to the parent, skipping the call ]
pirate your music or whatever you wanted to do.
I'm not sure who this was supposed to prevent from doing what, although I'm sure that it wouldn't be in there if there wasn't a contractual obligation to do something for the people providing them with content.
- jrockway 15y agoIf you skip the ptrace call, you can't "pirate your music or whatever you wanted to do". The whole point of running GDB is to call ptrace.
- Xuzz 15y agoYou're not skipping gdb's ptrace, you're skipping when iTunes calls it. iTunes calls ptrace() with PT_DENY_ATTACH to disallow gdb from attaching to it, which this method easily skips to let you attach to iTunes without any issues.