gpt4 book ai didi

lldb - LLDB 是否有方便变量 ($var)?

转载 作者:行者123 更新时间:2023-12-03 06:35:45 26 4
gpt4 key购买 nike

LLDB 有 convenience variables ?如果是这样,我该如何使用它们?如果没有,我可以使用类似的东西吗?

引用:http://software.intel.com/sites/products/documentation/hpc/atom/application/debugger/commands143.html

最佳答案

我终于自己弄清楚了。在 LLDB 中运行 help expr 你会看到:

User defined variables: You can define your own variables for convenience or to be used in subsequent expressions. You define them the same way you would define variables in C. If the first character of your user defined variable is a $, then the variable's value will be available in future expressions, otherwise it will just be available in the current expression.

所以 expr int $foo = 5 就是我想要的。

关于lldb - LLDB 是否有方便变量 ($var)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11192511/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com