From: Bin Meng Date: Tue, 17 May 2022 16:21:29 +0000 (+0800) Subject: doc: sandbox: Add a note of disabling LTO when using gdb X-Git-Tag: v2022.07-rc4~5^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=783f2c879dd28b9c4f2ed7b259cc82d530862f30;p=pandora-u-boot.git 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 Mention CONFIG_CC_OPTIMIZE_FOR_DEBUG and LLDB. Reviewed-by: Heinrich Schuchardt --- diff --git a/doc/arch/sandbox.rst b/doc/arch/sandbox.rst index 246ab5b380a..bfc9cc6a139 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 ----------