RTEMS_GDB clarification

Joel Sherrill Joel.Sherrill at OARcorp.com
Sat Jun 29 11:30:40 UTC 2013


Reading the code for the first time.. It descends when searching. It can only find a match when never greater than or equal to one. If the descent doesn't find anything.. Then you return to the top level and have an error.

Dhananjay Balan <mb.dhananjay at gmail.com> wrote:



Hi,

Need help with a code snippet. I cannot understand the need for "nesting" in the following.


rtems.py line 33-47
def lookup_function (val):
    "Look-up and return a pretty-printer that can print val."

    global nesting

    typename = str(type_from_value(val))

    for function in pp_dict:
        if function.search (typename):
            nesting += 1
            result = pp_dict[function] (val)
            nesting -= 1
            if nesting == 0:
                objects.information.invalidate()
            return result

Thanks,
Dhananjay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130629/d8e678b2/attachment-0001.html>


More information about the devel mailing list