diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2022-05-18 00:21:29 +0800 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-05-28 10:59:27 +0200 |
commit | 783f2c879dd28b9c4f2ed7b259cc82d530862f30 (patch) | |
tree | 56c36a1d545daf2fdfd7d0743ba205f602560760 /doc | |
parent | 27267c61b18cf3006674055139c330ae8e26eaf3 (diff) | |
download | u-boot-783f2c879dd28b9c4f2ed7b259cc82d530862f30.zip u-boot-783f2c879dd28b9c4f2ed7b259cc82d530862f30.tar.gz u-boot-783f2c879dd28b9c4f2ed7b259cc82d530862f30.tar.bz2 |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/arch/sandbox.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/arch/sandbox.rst b/doc/arch/sandbox.rst index 246ab5b..bfc9cc6 100644 --- a/doc/arch/sandbox.rst +++ b/doc/arch/sandbox.rst @@ -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 ---------- |