https://github.com/ipfans/lldbinit-arm
Add arm support to lldbinit
https://github.com/ipfans/lldbinit-arm
Last synced: 12 months ago
JSON representation
Add arm support to lldbinit
- Host: GitHub
- URL: https://github.com/ipfans/lldbinit-arm
- Owner: ipfans
- License: lgpl-3.0
- Created: 2014-03-04T06:00:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-29T12:19:28.000Z (about 12 years ago)
- Last Synced: 2024-11-29T16:37:42.896Z (over 1 year ago)
- Language: Python
- Size: 184 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.SC.md
- License: LICENSE
Awesome Lists containing this project
README
lldbinit-arm
===
实现类似gdbinit的功能,基于lldbinit的修改,主要是原来的项目...太不爽。
[English](https://github.com/ipfans/lldbinit-arm/blob/master/README.md)
x86_64:

ARM:

如何安装
---
下载zip文件,并且将py文件复制到:
```
cp lldbinit.py /Library/Python/2.7/site-packages
```
在用户$HOME/.lldbinit文件中添加(没有就创建):
```
command script import lldbinit
```
帮助
---
实现的命令如下
```
stepo - 步过指令 (call/movs/stos/cmps/loop)
dd - 显示指定地址的内存
ctx/context - 现实当前寄存器和反汇编内容(一般不需要要,中断时会自动显示)
lb - 从文件中加载断点并应用
u - 反汇编指定地址
ddword - dump data as dword
dq - dump data as qword
dw - dump data as word
iphone - 连接到iPhone
```
像获取单一命令帮助,请使用如下命令
```
(lldb) script help(lldbinit.dd)
Help on function dd in module lldbinit:
dd(debugger, command, result, dict)
dump hex data at certain address.
Example:
dd 0x100000ef0
```