diff options
author | Dhananjay Balan <mb.dhananjay@gmail.com> | 2013-08-26 22:12:25 +0530 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-25 09:52:42 +1000 |
commit | bd0b98d55e4bcb29ce0631e6c717f873739bf80b (patch) | |
tree | 2b951c1b1fa36f25edfb5109d638ba18e3ca007f /tools/gdb/python/classic.py | |
parent | Remove the header. (diff) | |
download | rtems-tools-bd0b98d55e4bcb29ce0631e6c717f873739bf80b.tar.bz2 |
Add cpu registers to task output.
Diffstat (limited to 'tools/gdb/python/classic.py')
-rw-r--r-- | tools/gdb/python/classic.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gdb/python/classic.py b/tools/gdb/python/classic.py index 261f648..e492657 100644 --- a/tools/gdb/python/classic.py +++ b/tools/gdb/python/classic.py @@ -16,6 +16,7 @@ import threads import watchdog import heaps import supercore +import sparc class attribute: """The Classic API attribute.""" @@ -155,6 +156,8 @@ class task: self.task = \ threads.control(self.object) self.wait_info = self.task.wait_info() + # ToDo: Insert platform dep. code here. + self.regs = sparc.register(self.object['Registers']) def show(self, from_tty): print ' Name:', self.task.name() @@ -163,6 +166,8 @@ class task: print ' Real:', self.task.real_priority() print ' Preempt:', self.task.preemptible() print ' T Budget:', self.task.cpu_time_budget() + print ' Regsters:' + self.regs.show() class message_queue: |