diff options
author | Dhananjay Balan <mb.dhananjay@gmail.com> | 2013-08-20 21:47:22 +0530 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-25 09:52:41 +1000 |
commit | 8d035f8556f5c121b709c1cd6ed223fa2b70b66c (patch) | |
tree | ca3e2b22695b12651f26cf63407c92f10adf0264 /tools/gdb/python/main.py | |
parent | Add message_queue subcommand. (diff) | |
download | rtems-tools-8d035f8556f5c121b709c1cd6ed223fa2b70b66c.tar.bz2 |
Refactor
- pretty printers moved to pretty module
- command and subcommands get own module
Diffstat (limited to 'tools/gdb/python/main.py')
-rw-r--r-- | tools/gdb/python/main.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/gdb/python/main.py b/tools/gdb/python/main.py new file mode 100644 index 0000000..2ef475a --- /dev/null +++ b/tools/gdb/python/main.py @@ -0,0 +1,19 @@ +# +# RTEMS GDB Extensions +# +# main + +import gdb +import pretty +import rtems + +gdb.pretty_printers = [] +gdb.pretty_printers.append(pretty.lookup_function) + +# Register commands +# rtems and subcommands +rtems.rtems() +rtems.rtems_object() +rtems.rtems_semaphore() +rtems.rtems_task() +rtems.rtems_message_queue()
\ No newline at end of file |