Re: __ASSERT - transfer to error handler
Paul Sokolovsky
Hello Kristoffer,
As a quick reply, definitely ack on the problem statement. I can say more, I'm patiently waiting for a paradise times when on CPU exception, assert, etc., we'll be ending up in debugger, point to the instruction where the problem happened (or it can be seen in backtrace). (To be exact, I'm talking about running in QEMU first of all, I actually don't remember how that works on real hw.) As for specific implementation, perhaps more knowledgeable people can comment. I would just point that an obvious override point is __ASSERT_POST macro itself. I.e. instead of defining it unconditionally, we can have #ifdef around it, and let a user override it before inclusion of Zephyr headers. That's the simplest, but perhaps not the most scalable solution. On Fri, 09 Nov 2018 01:39:34 -0800 kristoffer.skoien@... wrote: Current implementation: -- Best Regards, Paul Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog |
|