提交 783f2c87 编写于 作者: B Bin Meng 提交者: Heinrich Schuchardt

doc: sandbox: Add a note of disabling LTO when using gdb

Image created by LTO is not friendly to debugger, let's document this.
Signed-off-by: NBin Meng <bmeng.cn@gmail.com>

Mention CONFIG_CC_OPTIMIZE_FOR_DEBUG and LLDB.
Reviewed-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
上级 27267c61
......@@ -477,6 +477,9 @@ board_init_f() and board_init_r().
This approach can be used on normal boards as well as sandbox.
For debugging with GDB or LLDB, it is preferable to reduce the compiler
optimization level (CONFIG_CC_OPTIMIZE_FOR_DEBUG=y) and to disable Link Time
Optimization (CONFIG_LTO=n).
SDL_CONFIG
----------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册