A working GNU Debugger on iOS> = 4.3

Source: Internet
Author: User

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!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.