Changeset b061a67 in rtems-tools for tools/gdb/python/rtems.py


Ignore:
Timestamp:
Jul 12, 2013, 1:34:37 PM (6 years ago)
Author:
Dhananjay Balan <mb.dhananjay@…>
Branches:
4.10, 4.11, master
Children:
a785e25
Parents:
6e75f4e
git-author:
Dhananjay Balan <mb.dhananjay@…> (07/12/13 13:34:37)
git-committer:
Chris Johns <chrisj@…> (08/24/14 23:52:40)
Message:

Heavy refactoring + Improved mesege queu printing.

  • pretty printers moved to the corresponding api_printer module
  • object abstractions moved to
    • their own name for core modules
    • supercore for other supercore objects
    • classic for classic api objects
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gdb/python/rtems.py

    r6e75f4e rb061a67  
    1212import threads
    1313import classic
     14
     15# ToDo: Move every printing out
     16import supercore_printer
     17import classic_printer
    1418
    1519nesting = 0
     
    5155
    5256def build_rtems_dict():
    53     pp_dict[re.compile('^rtems_id$')]   = lambda val: objects.id_printer(val)
    54     pp_dict[re.compile('^Objects_Id$')] = lambda val: objects.id_printer(val)
    55     pp_dict[re.compile('^Objects_Name$')] = lambda val: objects.name_printer(val)
    56     pp_dict[re.compile('^Objects_Control$')] = lambda val: objects.control_printer(val)
    57     pp_dict[re.compile('^States_Control$')] = lambda val: threads.state_printer(val)
    58     pp_dict[re.compile('^rtems_attribute$')] = lambda val: classic.attribute_printer(val)
    59     pp_dict[re.compile('^Semaphore_Control$')] = lambda val: classic.semaphore_printer(val)
     57    pp_dict[re.compile('^rtems_id$')]   = lambda val: supercore_printer.id_printer(val)
     58    pp_dict[re.compile('^Objects_Id$')] = lambda val: supercore_printer.id_printer(val)
     59    pp_dict[re.compile('^Objects_Name$')] = lambda val: supercore_printer.name_printer(val)
     60    pp_dict[re.compile('^Objects_Control$')] = lambda val: supercore_printer.control_printer(val)
     61    pp_dict[re.compile('^States_Control$')] = lambda val: supercore_printer.state_printer(val)
     62    pp_dict[re.compile('^rtems_attribute$')] = lambda val: classic_printer.attribute_printer(val)
     63    pp_dict[re.compile('^Semaphore_Control$')] = lambda val: classic_printer.semaphore_printer(val)
    6064
    6165class rtems(gdb.Command):
Note: See TracChangeset for help on using the changeset viewer.