People know that the gdb package coming from Cydia is broken since 4.3.
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 shoshould be installed on the iOS device and shoshould listen for connections-an OSX machine with the iOS SDK> = 4.3 installed
How:-Remove the gdb package from Cydia-do the following in the OSX terminal:
Cd/tmpcp/Developer/Platforms/iPhoneOS. platform/Developer/usr/libexec/gdb-arm-apple-darwin. lipo-thin armv7 gdb-arm-apple-darwin-output gdbnano entitlements. xml
-Paste the following to the OSX terminal:
<! DOCTYPE plist PUBLIC "-// Apple // dtd plist 1.0 // EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version = "1.0"> <dict> <key> com. apple. springboard. debugapplications </key> <true/> <key> get-task-allow </key> <true/> <key> task_for_pid-allow </key> <true/> </dict> </plist>
-Save the file by doing CTRL + X, then 'y', then 'enter'-now do the following in the OSX terminal: ldid-Sentitlements. xml gdbscp gdb root @
<IOS Device IP Address>:/Usr/bin/-GDB is now installed to your iOS device. Happy debugging!