mongodb-decoration pretty printer appears to not work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL
    • SP Prioritized List
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The mongodb-decoration pretty printer fails on the example provided in the help message.

      mongodb-decoration -
          Search for a decoration on an object by typename and print it e.g.    (gdb) mongodb-decoration opCtx ReadConcernArgs    would print out a decoration on opCtx whose type name contains the string "ReadConcernArgs".
      (gdb) mongodb-decoration opCtx ReadConcernArgs
      Traceback (most recent call last):
        File "buildscripts/gdb/mongo.py", line 409, in invoke
          dec = get_decoration(gdb.parse_and_eval(expr), type_name_substr)
        File "buildscripts/gdb/mongo.py", line 318, in get_decoration
          for dec_type_name, dec in get_decorations(obj):
        File "buildscripts/gdb/mongo.py", line 267, in get_decorations
          decorable = obj.cast(lookup_type("mongo::Decorable<{}>".format(type_name)))
        File "buildscripts/gdb/mongo.py", line 194, in lookup_type
          raise gdb.error("Failed to get type, tried:\n%s" % "\n".join([str(exc) for exc in exceptions]))
      gdb.error: Failed to get type, tried:
      No type named mongo::Decorable<mongo::OperationContext*>.
      No type named mongo::Decorable<mongo::OperationContext*>.
      Error occurred in Python: Failed to get type, tried:
      No type named mongo::Decorable<mongo::OperationContext*>.
      No type named mongo::Decorable<mongo::OperationContext*>.

            Assignee:
            Unassigned
            Reporter:
            James Bronsted
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: