mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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: Bin Meng <bmeng.cn@gmail.com> Mention CONFIG_CC_OPTIMIZE_FOR_DEBUG and LLDB. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
27267c61b1
commit
783f2c879d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
----------
|
||||
|
|
Loading…
Reference in a new issue