Module: xenomai-forge
Branch: master
Commit: 4b4001c7aa21f412be81d21ac701d9a96f0d4069
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=4b4001c7aa21f412be81d21ac701d9a96f0d4069

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jun 13 17:05:42 2013 +0200

nucleus: fix build issues

---

 kernel/cobalt/nucleus/debug.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/kernel/cobalt/nucleus/debug.c b/kernel/cobalt/nucleus/debug.c
index b7c3c3c..d8c5642 100644
--- a/kernel/cobalt/nucleus/debug.c
+++ b/kernel/cobalt/nucleus/debug.c
@@ -240,8 +240,7 @@ void xndebug_trace_relax(int nr, unsigned long __user 
*u_backtrace,
         * executable mappings we find in the backtrace, which makes
         * it possible for the slackspot utility to match the
         * corresponding source code locations from unrelocated file
-        * offsets. Note that we don't translate PC values within pure
-        * executable vmas.
+        * offsets.
         */
 
        tmp = (char *)__get_free_page(GFP_TEMPORARY);
@@ -263,10 +262,7 @@ void xndebug_trace_relax(int nr, unsigned long __user 
*u_backtrace,
                if (vma == NULL)
                        continue;
 
-               if (!(vma->vm_flags & VM_EXECUTABLE))
-                       pc -= vma->vm_start;
-
-               spot.backtrace[depth].pc = pc;
+               spot.backtrace[depth].pc = pc - vma->vm_start;
 
                /*
                 * Even in case we can't fetch the map name, we still


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to