A working GNU Debugger on iOS >= 4.3
People know that the gdb package coming from Cydia is broken since 4.3.
com.apple.springboard.debugapplications
get-task-allow
task_for_pid-allow
But here is a simple way to have a working gdb running on your iOS device : use the one from the Apple SDK !
Prerequisites :
- a jailbroken iOS >= 4.3 device
- OpenSSH should be installed on the iOS device and should listen for connections
- an OSX machine with the iOS SDK >= 4.3 installed
How to :
- remove the gdb package from Cydia
- do the following in the OSX terminal :
cd /tmp
cp /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin .
lipo -thin armv7 gdb-arm-apple-darwin -output gdb
nano entitlements.xml
- paste the following to the OSX terminal :
- save the file by doing CTRL + X, then 'Y', then 'ENTER'
- now do the following in the OSX terminal :
ldid -Sentitlements.xml gdb
scp gdb root@ :/usr/bin/
- GDB is now installed to your iOS device.
Happy debugging !
No comments:
Post a Comment