GSM-Forum  

Go Back   GSM-Forum > GSM Mobile Brands -Software Area- > Apple Inc. Products

Apple Inc. Products iPhone 2G , iPhone 3G , iPhone 3GS, iPhone 4 , iPhone 4s , iPod , iPad , Apple TV

Reply
 
LinkBack Thread Tools Display Modes
Old 02-24-2012, 00:32   #1 (permalink)
Freak Poster
 
Join Date: Feb 2011
Posts: 106
Member: 1520321
Status: Offline
Thanks: 8
Thanked 246 Times in 69 Posts
Talking Pod2g Explains How to Get a GNU Debugger on iOS 5

Pod2g has posted instructions on how to get a working dnu debugger on iOS versions greater than 4.3.

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 !


[A working GNU Debugger on iOS >= 4.3
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 /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 :

<!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 gdb
scp gdb root@<iOS Device IP Address>:/usr/bin/

- GDB is now installed to your iOS device.

Happy debugging !

~pod2g
If it is useful press Thanks
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookTwitterStumble this Post!
Reply With Quote
The Following 3 Users Say Thank You to comx For This Useful Post:
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
thread Thread Starter Forum Replies Last Post
6110 power does not stay on sc~micro Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 4 04-14-2012 14:48
How to upload a new firmware... Brand Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 16 03-21-2012 09:38
news headlines to gsm phone mos Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 6 12-18-2011 11:00
How to add a language in 51xx/61xx tati Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 4 12-03-2010 06:02


All times are GMT +1. The time now is 02:46.



Powered by Searchlight © 2012 Axivo Inc.
- GSM Hosting Ltd. - 1999-2011
Page generated in 0.19306 seconds with 10 queries

SEO by vBSEO