The PC is replaced with the return address when null.
---
 kernel/ipipe/tracer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/ipipe/tracer.c b/kernel/ipipe/tracer.c
index c8c1b97..e726444 100644
--- a/kernel/ipipe/tracer.c
+++ b/kernel/ipipe/tracer.c
@@ -458,6 +458,8 @@ ipipe_trace_asm(enum ipipe_trace_type type, unsigned long 
eip,
 {
        if (!ipipe_trace_enable)
                return;
+       if (eip == 0)
+               eip = __BUILTIN_RETURN_ADDRESS0;
        __ipipe_trace(type, eip, parent_eip, v);
 }
 
-- 
1.8.4


_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai

Reply via email to