[U-Boot-Users] How to debug u-boot?

Alessandro Rubini
2008-06-06T06:07:22Z

> 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