A working GNU Debugger on iOS >= 4.3

來源:互聯網
上載者: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 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 /tmpcp /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/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 !
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.