This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# gdbGetStrippedSymbols.sh | |
# @author Dominik Hadl (@dominikhadl) | |
# @description This script automates the setup of gdb on a stripped applicaiton adds symbols. It uses objc-symbols to get the symbols, | |
# then SymTabCreator and finally creates a command that is automatically loaded into gdb on start. | |
# @license Licensed under WTFPL license (see http://www.wtfpl.net/txt/copying/ for full license). | |
# @dependencies | |
# 1. objc-symbols | |
# 2. SymTabCreator | |
# 3. gdb (really non-obvious) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#------------------------- | |
# Import the dependencies | |
#------------------------- | |
import json, sys | |
#------------------------- | |
#------------------------------------- | |
# Get the file names from the argument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @function Singleton GCD Macro | |
*/ | |
#ifndef SINGLETON_GCD | |
#define SINGLETON_GCD(classname) \ | |
\ | |
+ (classname *)shared##classname { \ | |
\ | |
static dispatch_once_t pred; \ |
NewerOlder