【发布时间】:2019-04-01 16:24:45
【问题描述】:
我想使用 lldb 输出一个传递给函数调用的参数。
使用 AndroidStudio lldb NDK
int aaaaaa(int a, int b) {
int rrr = a + b;
return rrr;
}
int x = 111;
int y = 222;
int eee = aaaaaa(x,y);
// I know that print x can output the correct result, but I want to
// output the result of x through the register, what should I do?
我使用上面的第二个代码来调用该函数。我想使用 lldb 打印 x 和 y 值。当我使用 print $ebp+8 时,结果不正确。
如何使用 lldb 命令打印出 111?
什么是正确的 lldb 命令?
这是一个显示我的手段的图片链接http://note.youdao.com/noteshare?id=7adb0c6fd965d26553c6bbb05896721c
【问题讨论】:
标签: printing parameters lldb