【问题标题】:LLDB source command fileLLDB 源命令文件
【发布时间】:2014-01-09 20:05:06
【问题描述】:

我有一个带有以下文本的 lldb 命令文件:

    settings set -- auto-confirm true 
    breakpoint set --name main
    process launch
    continue
    quit

我正在尝试使用以下命令获取命令文件:

    lldb --source lldb_start_single_step program

但是,我得到了这个输出:

    Executing commands in 'lldb_start_single_step'.
    (lldb)  settings set -- auto-confirm true 
    ' failed with error: invalid boolean string value: 'true ttings set -- auto-confirm true 
    Current executable set to 'program' (x86_64).

我已尝试寻找解决方案,但似乎找不到任何东西,因为 lldb 似乎还没有太多文档。

【问题讨论】:

  • 我应该注意,我可以手动运行“设置集--自动确认为真”命令就好了。

标签: osx-mavericks lldb


【解决方案1】:

我想通了。我使用的是 vim,它被设置为给 dos 行结尾,它们需要转换为 unix。

有相同问题的朋友可以参考http://vim.wikia.com/wiki/File_format

【讨论】:

    猜你喜欢
    • 2014-07-20
    • 2016-05-27
    • 2021-02-14
    • 2017-10-17
    • 1970-01-01
    • 1970-01-01
    • 2018-01-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多