From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Fri, 6 Jun 2008 08:07:22 +0200 Subject: [U-Boot-Users] How to debug u-boot? In-Reply-To: <200806060213.m562DaPR002810@mail.corelis.com> References: <200806060213.m562DaPR002810@mail.corelis.com> Message-ID: <20080606060722.GA9830@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > I need help with debugging u-boot. If I comple u-Boot without -Os > optimization, I get bunch of errors about missing functions. gcc docs say: GCC does not inline any functions when not optimizing unless you specify the `always_inline' attribute for the function, like this: [...] I'm sorry you can't strip the "-Os", and you should debug the final binary, despite all the reordering that takes place. /alessandro