[PATCH] score: Disable RTEMS_NO_RETURN for RTEMS_DEBUG

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jul 22 09:45:16 UTC 2016


Do not use RTEMS_NO_RETURN hints for debug configurations to ease use of
stack traces in case of fatal errors.
---
 cpukit/score/include/rtems/score/basedefs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index 7e691b5..c378635 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -99,7 +99,7 @@
  */
 #if defined(RTEMS_SCHEDSIM)
   #define RTEMS_NO_RETURN
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && !defined(RTEMS_DEBUG)
   #define RTEMS_NO_RETURN __attribute__((__noreturn__))
 #else
   #define RTEMS_NO_RETURN
-- 
1.8.4.5



More information about the devel mailing list