lldb
2016-04-04 21:28
411 查看
所有命令选择与input 值用 —- 区分
1 p/x 16 转16进制 https://sourceware.org/gdb/onlinedocs/gdb/Output-Formats.html
/t 二进制 /s 字符串 /c char /d 十进制
2 c/s/n/f continume/ step into /next /finish
3 frame info
4 thread return //返回调用处,比如 加 符号断点 -[__NSArray0 objectAtIndex:] 找到数组越界调用处
5 p/e
6 b main.m:23
breakpoint set -F "-[NSArray objectAtIndex:]"
7 x
'x' is an abbreviation for 'memory read'
e char *$str = (char *)malloc(8)
e (void)strcpy($str, "anjun")
x/4 $str
e (void)free($str)
8 LLDB has full, built-in Python support. If you type script in LLDB, it will open a Python REPL.
1 p/x 16 转16进制 https://sourceware.org/gdb/onlinedocs/gdb/Output-Formats.html
/t 二进制 /s 字符串 /c char /d 十进制
2 c/s/n/f continume/ step into /next /finish
3 frame info
4 thread return //返回调用处,比如 加 符号断点 -[__NSArray0 objectAtIndex:] 找到数组越界调用处
5 p/e
6 b main.m:23
breakpoint set -F "-[NSArray objectAtIndex:]"
7 x
'x' is an abbreviation for 'memory read'
e char *$str = (char *)malloc(8)
e (void)strcpy($str, "anjun")
x/4 $str
e (void)free($str)
8 LLDB has full, built-in Python support. If you type script in LLDB, it will open a Python REPL.
相关文章推荐
- 构建之法阅读笔记04
- leetcode020 Valid Parentheses
- Light OJ 1230 Placing Lampposts(简单树形DP)
- WPF MVVM中在ViewModel中关闭或者打开Window
- 合作成功案例
- 为textview中的字符串着色
- 使用Xutils(HttpUtils)请求网络数据
- codeforces_598A. Tricky Sum
- nginx gzip压缩提升网站速度
- jquery css快捷方法
- 【NOIP 2004】 虫食算
- Leetcode之Basic Calculator & Basic Calculator II
- 断言
- jvm参数在哪里设置
- poj_1007
- Java 导入包正确依旧报错的处理方法
- linux 下redis php扩展安装、redis服务安装
- hdu1418(欧拉公式)
- jquery 设置元素内容html(),text(),val()
- 第五周 项目一 三角形类雏形(3)