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
查看全文
相关阅读:
MySql的事务表和非事务表
java邮件发送测试
类加载
浅谈java放射机制
js创建对象的几种方法
多线程
快捷键
vue 显示网页图标
SQL 数据库,一张表打开设计,或者查询报错,a severe error occurred on the current command,the results,if any,should be discarded
SQL server 主键自增ID 错乱
原文地址:https://www.cnblogs.com/cnsec/p/11515781.html
最新文章
论文阅读:Face Recognition: From Traditional to Deep Learning Methods 《人脸识别综述:从传统方法到深度学习》
yolo3 车辆检测
【Python基础】lpthw
【Python基础】lpthw
【机器学习】聚类分析的模型评估
【Python基础】lpthw
【Python基础】lpthw
nothing-2
Anything-1
javascript实现ajax,回调获取相应结果
热门文章
学习:网络知识
复习:CSS
神奇的知识点增加了【一些笔记】-javascript
复习:JS
复习:HTTPS和http2.0的改进
前端性能:回流与重绘的学习
哈夫曼树+带权路径长度计算
网站发布
centos防火墙关闭
安装python出现的问题
Copyright © 2011-2022 走看看