zoukankan
html css js c++ java
debugserver + lldb代替gdb进行动态调试
一、定制lldb(将下述所需的文件全部放于同一个文件夹下【假设为abc】,便于操作)
1.
下载
一个能用的
ldid
(http://joedj.net/ldid)
做后面的签名之用
2.
获取原生
debugserver(建议直接从手机目录中拷贝出来,
/Developer/usr/bin/debugserver,当此手机在Xcode中标记为开发设备后便会出来这些目录
)
3.
瘦身debugserver
命令行
cd到abc文件下
输入
lipo -thin armv7s /abc/fat/debugserver(原路径) -output /abc/thin/debugserver(重新生成的新路径)
以上根据自己手机支持的armv7、armv7s、arm64提取,我这边以iphone5为例,是armv7
4.
签名瘦身之后的
debugserver
将下面的内容另存为一个名为ent.xml的文件
com.apple.springboard.debugapplications
get-task-allow
task_for_pid-allow
run-unsigned-code
命令行中输入:abc$ ldid -Sent.xml thin/debugserver
5.
将定制好的
debugserver
拷贝回iOS
,放在/usr/bin/
debugserver
下,然后在iOS的命令行运行:
chmod +x /usr/bin/debugserver
6.
假如是IOS7下还要另外再加签名:
http://www.iphonedevwiki.net/index.php/Debugging_on_iOS_7
http://www.iphonedevwiki.net/index.php/Debugserver (里面的2、3点)
http://lldb.llvm.org/lldb-gdb.html
参考:http://bbs.iosre.com/forum.php?mod=viewthread&tid=52&extra=page=1&filter=typeid&typeid=11&typeid=11
http://www.kanxue.com/bbs/showthread.php?t=190126
查看全文
相关阅读:
P1486 [NOI2004]郁闷的出纳员
P1966 火柴排队
P2627 修剪草坪
P1621 集合
P1025 数的划分
中国剩余定理
P2043 质因子分解
P1075 质因数分解
C#之引用类型参数
C#之方法的定义及调用学习案例
原文地址:https://www.cnblogs.com/cnsec/p/11515781.html
最新文章
表单验证收获
Request的getParameter和getAttribute方法的区别
jdk&tomcat环境变量配置及同时运行多个tomcat方法
FreeMarker(XML模板)导出word
关于ActionContext.getContext()的用法心得
html超链接返回上一页面
JAVA字节流(读写文件)
form的onsubmit事件--表单提交前的验证最佳实现方式
Python动态地声明变量赋值
使用Python执行dos命令并获取输出的结果
热门文章
CentOS7+Python3.6利用web.py库进行微信公众平台服务器简易配置,token验证
警告 libpng warning: iCCP: known incorrect sRGB profile
python常用关键字
P4394 [BOI2008]Elect 选举
P1077 摆花
P2261 [CQOI2007]余数求和
P4711 「化学」相对分子质量
P2292 [HNOI2004]L语言
P1108 低价购买
P3224 [HNOI2012]永无乡
Copyright © 2011-2022 走看看