• Home
  • Apple News
  • Jailbreak News
  • Android News
  • Wallpapers
  • Deals

iJailbreak | Jailbreak And iOS News

iJailbreak is an online resource for jailbreak and unlock iPhone, iPad, iPod Touch, Apple TV and iOS news.

  • How To Jailbreak
    • Cydia Installer: Everything You Need To Know
    • What Is Jailbreaking? Why Should I Jailbreak?
    • Untethered vs Tethered vs SemiTethered Jailbreak
  • Jailbreak Software Tools
    • PP Jailbreak
    • TaiG
    • Pangu
    • Evasi0n (Evasi0n7)
    • Absinthe
    • JailbreakMe.com
    • RedSn0w
    • GreenPois0n
    • Sn0wBreeze
    • PwnageTool
    • LimeRa1n
    • Spirit
    • BlackRa1n
    • Seas0nPass
    • Developers
  • How To Unlock
  • How To Downgrade
    • How To Save SHSH Blobs
    • TinyUmbrella
    • iFaith
    • F0recast
  • Cydia Tweaks
    • Top / Best Cydia Tweaks
    • Best Cydia Sources
    • Siri Cydia Tweaks, Hacks, Mods
    • Spire Proxy Host List
  • How To Root
    • Top / Best Custom ROMs
  • Downloads

How To: Install GNU Debugger (GDB) On The iOS 5 Firmware Generation [Developers Only]

February 24, 2012 by Jaden Easton-Ellett 2 Comments

Hacker Pod2G has recently tweeted that he has written instructions on how to get GNU Debugger (GDB) working on the iOS 5 firmware generation. In case you do not know what GNU Debugger is, it essentially  allows you to see what is going on ‘inside’ another program while it executes — or what another program was doing at the moment it crashed. This is obvious only useful to developers and is not for the public.

GNU Debugger (GDB) iOS 5

Although GNU Debugger is actually on Cydia, it has not been updated to support iOS devices running iOS 4.3 and above. Thus, if you are a developer and would like to get GNU Debugger on the iOS 5 firmware generation or any firmware past iOS 4.3, then you will be glad to know in this how to you will find the instructions necessary to do just this thanks to @Pod2G.

How To Get GNU Debugger On iOS 5

Step 1) – The first thing you will need to do is make sure you have a Jailbroken iOS device running a firmware that is >= to iOS 4.3. Next you will need to have OpenSSH installed on your iOS device and have access to a Mac computer with the iOS SDK installed.

Step 2) – Next you will need to remove the GDB Cydia package from Cydia.

Step 3) – With the GDB package removed from Cydia you can fire up the Mac OS X terminal and type in the following list of commands:

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

Step 4) – Now you will now need to paste the following into the Mac OS X 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>

Step 5) – Save the file by doing CTRL + X, then ‘Y’, then ‘ENTER’.

Step 6) – Finally you will need to enter the commands shown below into the Mac OS X terminal.

ldid -Sentitlements.xml gdb
scp gdb root@<iOS Device IP Address>:/usr/bin/

Congratulations! You have just installed GNU Debugger (GDB) on your iPhone, iPod Touch or iPad running the iOS 4.3 firmware and above. Let us know if you have any further questions in the comments section below…

Comments

  1. Fdffd says

    March 14, 2012 at 11:38 am

    ldid command does not exist on mac, can only be downloaded to a device via Cydia.. Im stuck..

  2. skyg says

    November 8, 2012 at 3:43 am

    lipo -thin armv7 gdb-arm-apple-darwin -output gdb

    util/ldid.cpp(249): _assert(78:Swap(mach_header_->magic) == MH_MAGIC)

    why?

Leave a Reply

Your email address will not be published. Required fields are marked *

Read Our Most Recent Articles

Untethered iOS 12 Jailbreak Demoed by Ali Security
Untethered iOS 12 Jailbreak Demoed by Ali Security
iOS 12 Now Available for Download: Compatible Devices
iOS 12 Now Available for Download: Compatible Devices
iPhone X Discontinued, iPhone 8 and iPhone 7 Prices Slashed
iPhone X Discontinued, iPhone 8 and iPhone 7 Prices Slashed
Apple iPhone Xs, iPhone Xs Max, and iPhone Xr Announced
Apple iPhone Xs, iPhone Xs Max, and iPhone Xr Announced
Apple Watch Series 4 Announced With Larger Display, Louder Speaker, and More
Apple Watch Series 4 Announced With Larger Display, Louder Speaker, and More

Follow Our How To Guides

How To Jailbreak iOS 8.2 Beta 1 And 2 Using TaiG 1.3.0 For Windows
How To Jailbreak iOS 8.2 Beta 1 And 2 Using TaiG 1.3.0 For Windows
How To: Jailbreak iPhone 3G/3GS/4, iPod Touch and iPad on iOS 4.1/3.2.2 with Sn0wbreeze v2.1 [Windows]
How To: Jailbreak iPhone 3G/3GS/4, iPod Touch and iPad on iOS 4.1/3.2.2 with Sn0wbreeze v2.1 [Windows]
How To: Add Custom SBSettings-Like Shortcuts To Your iPhone, iPod Touch, iPad [No Jailbreak Required]
How To: Add Custom SBSettings-Like Shortcuts To Your iPhone, iPod Touch, iPad [No Jailbreak Required]
How To Update To iOS 7 Final On iPhone, iPod Touch And iPad OTA Or Via iTunes
How To Update To iOS 7 Final On iPhone, iPod Touch And iPad OTA Or Via iTunes
How To: Jailbreak iPhone, iPod Touch, iPad On OS X 10.8 Mountain Lion With RedSn0w
How To: Jailbreak iPhone, iPod Touch, iPad On OS X 10.8 Mountain Lion With RedSn0w
About | Contact | Advertise | RSS Feed | Sitemap | TOS | Privacy Policy

© Copyright 2010 - 2021 iJailbreak. All Rights Reserved.