Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'The hard way to find hidden Finder preferences' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
The hard way to find hidden Finder preferences
Authored by: arcticmac on Sep 14, '09 12:27:29PM

First of all, to debug iTunes at all, you'll need to follow the instructions here to debug iTunes in gdb at all. I think they don't want you to be able to watch FairPlay code do its thing or something, since (gasp) that might allow you to steal music.

Furthermore, iTunes uses older calling conventions, so the commands listed in the hint (and on my site) won't work as written - or rather, they'll work, but they won't actually print out anything useful. Instead, you'll need to replace all occurrences of "$rdi" in the commands with "*(int *)($rbp+8)" and all occurances of "$rsi" with "*(int *)($rbp+12)".

The command that sets the logfile is "set logging file ~/Desktop/gdbFinder.txt" which causes gdb to save a logfile to the Desktop. if you omit telling gdb where to save things explicitly, it'll create the log file as "gdb.txt" in the current directory. Also, if you're having issues with things, it may be best to leave out the line (from the version on my site only) "set logging redirect" command so that you'll be able to see what's going on in gdb.
Hope this helps!



[ Reply to This | # ]