[rtems-tools commit] Fix Task and state printer bugs.

Chris Johns chrisj at rtems.org
Sun Aug 24 23:45:34 UTC 2014


Module:    rtems-tools
Branch:    master
Commit:    e60a5eec0b1e8b16d984e4baf7dccb3323b88928
Changeset: http://git.rtems.org/rtems-tools/commit/?id=e60a5eec0b1e8b16d984e4baf7dccb3323b88928

Author:    Dhananjay Balan <mb.dhananjay at gmail.com>
Date:      Tue Jul 30 09:12:35 2013 +0530

Fix Task and state printer bugs.

- Removed ITRON api objects in thread control
- fixes #1

---

 tools/gdb/python/classic.py           |    5 ++---
 tools/gdb/python/supercore_printer.py |    1 +
 tools/gdb/python/threads.py           |    6 ------
 3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/tools/gdb/python/classic.py b/tools/gdb/python/classic.py
index 617a0db..50514ff 100644
--- a/tools/gdb/python/classic.py
+++ b/tools/gdb/python/classic.py
@@ -153,17 +153,16 @@ class task:
         self.id = id;
         self.task = \
             threads.control(objects.information.object(self.id).dereference())
+        self.wait_info = self.task.wait_info()
 
     def show(self, from_tty):
         print '     Name:', self.task.name()
         print '    State:', self.task.current_state()
         print '  Current:', self.task.current_priority()
         print '     Real:', self.task.real_priority()
-        print ' Suspends:', self.task.suspends()
-        print ' Post Ext:', self.task.post_task_switch_ext()
         print '  Preempt:', self.task.preemptible()
         print ' T Budget:', self.task.cpu_time_budget()
-        wait_info = self.task.wait_info()
+
 
 class message_queue:
     "Print classic messege queue"
diff --git a/tools/gdb/python/supercore_printer.py b/tools/gdb/python/supercore_printer.py
index ec1d416..3ce8110 100644
--- a/tools/gdb/python/supercore_printer.py
+++ b/tools/gdb/python/supercore_printer.py
@@ -3,6 +3,7 @@
 #
 import objects
 import itertools
+import threads
 
 class id:
     """Print an object given the ID. Print using the struct display hint and an
diff --git a/tools/gdb/python/threads.py b/tools/gdb/python/threads.py
index b5ac3fb..77c7efa 100644
--- a/tools/gdb/python/threads.py
+++ b/tools/gdb/python/threads.py
@@ -145,12 +145,6 @@ class control:
     def real_priority(self):
         return self.ctrl['real_priority']
 
-    def suspends(self):
-        return self.ctrl['suspend_count']
-
-    def post_task_switch_ext(self):
-        return self.ctrl['do_post_task_switch_extension']
-
     def preemptible(self):
         return self.ctrl['is_preemptible']
 



More information about the vc mailing list