예제 #1
0
 def __init__(self, value, cache):
     baseshape_flags = gdb.lookup_type('js::BaseShape::Flag')
     self.flag_DELEGATE = prettyprinters.enum_value(baseshape_flags, 'js::BaseShape::DELEGATE')
     self.func_ptr_type = gdb.lookup_type('JSFunction').pointer()
     self.class_NON_NATIVE = gdb.parse_and_eval('js::Class::NON_NATIVE')
     self.NativeObject_ptr_t = gdb.lookup_type('js::NativeObject').pointer()
     self.Shape_ptr_t = gdb.lookup_type('js::Shape').pointer()
예제 #2
0
파일: JSObject.py 프로젝트: snorp/gecko-1
 def __init__(self, value, cache):
     baseshape_flags = gdb.lookup_type('js::BaseShape::Flag')
     self.flag_DELEGATE = prettyprinters.enum_value(
         baseshape_flags, 'js::BaseShape::DELEGATE')
     self.func_ptr_type = gdb.lookup_type('JSFunction').pointer()
     self.class_NON_NATIVE = gdb.parse_and_eval('js::Class::NON_NATIVE')
     self.NativeObject_ptr_t = gdb.lookup_type('js::NativeObject').pointer()
예제 #3
0
 def __init__(self, value, cache):
     # In GDB 7.4.50, with some programs, this first dummy gdb.lookup_type
     # call is required to make the second lookup_type call succeed. A GDB
     # built from the public sources as of 2012-12-12 did not require the
     # dummy lookup.
     gdb.lookup_type('js::BaseShape')
     baseshape_flags = gdb.lookup_type('js::BaseShape::Flag')
     self.flag_DELEGATE = prettyprinters.enum_value(baseshape_flags, 'js::BaseShape::DELEGATE')
     self.func_ptr_type = gdb.lookup_type('JSFunction').pointer()
예제 #4
0
 def __init__(self, value, cache):
     object_flag = gdb.lookup_type("js::ObjectFlag")
     self.objectflag_IsUsedAsPrototype = prettyprinters.enum_value(
         object_flag, "js::ObjectFlag::IsUsedAsPrototype")
     self.func_ptr_type = gdb.lookup_type("JSFunction").pointer()
     self.class_NON_NATIVE = gdb.parse_and_eval("JSClass::NON_NATIVE")
     self.BaseShape_ptr_t = gdb.lookup_type("js::BaseShape").pointer()
     self.Shape_ptr_t = gdb.lookup_type("js::Shape").pointer()
     self.JSClass_ptr_t = gdb.lookup_type("JSClass").pointer()
예제 #5
0
 def __init__(self, value, cache):
     # In GDB 7.4.50, with some programs, this first dummy gdb.lookup_type
     # call is required to make the second lookup_type call succeed. A GDB
     # built from the public sources as of 2012-12-12 did not require the
     # dummy lookup.
     gdb.lookup_type('js::BaseShape')
     baseshape_flags = gdb.lookup_type('js::BaseShape::Flag')
     self.flag_DELEGATE = prettyprinters.enum_value(
         baseshape_flags, 'js::BaseShape::DELEGATE')
     self.func_ptr_type = gdb.lookup_type('JSFunction').pointer()
예제 #6
0
 def __init__(self, value, cache):
     baseshape_flags = gdb.lookup_type("js::BaseShape::Flag")
     self.flag_DELEGATE = prettyprinters.enum_value(
         baseshape_flags, "js::BaseShape::DELEGATE"
     )
     self.func_ptr_type = gdb.lookup_type("JSFunction").pointer()
     self.class_NON_NATIVE = gdb.parse_and_eval("JSClass::NON_NATIVE")
     self.NativeObject_ptr_t = gdb.lookup_type("js::NativeObject").pointer()
     self.BaseShape_ptr_t = gdb.lookup_type("js::BaseShape").pointer()
     self.Shape_ptr_t = gdb.lookup_type("js::Shape").pointer()
     self.ObjectGroup_ptr_t = gdb.lookup_type("js::ObjectGroup").pointer()
     self.JSClass_ptr_t = gdb.lookup_type("JSClass").pointer()
예제 #7
0
 def __init__(self):
     object_flag = gdb.lookup_type("js::ObjectFlag")
     self.objectflag_IsUsedAsPrototype = prettyprinters.enum_value(
         object_flag, "js::ObjectFlag::IsUsedAsPrototype"
     )
     self.value_ptr_t = gdb.lookup_type("JS::Value").pointer()
     self.func_ptr_t = gdb.lookup_type("JSFunction").pointer()
     self.class_NON_NATIVE = gdb.parse_and_eval("JSClass::NON_NATIVE")
     self.BaseShape_ptr_t = gdb.lookup_type("js::BaseShape").pointer()
     self.Shape_ptr_t = gdb.lookup_type("js::Shape").pointer()
     self.JSClass_ptr_t = gdb.lookup_type("JSClass").pointer()
     self.JSScript_ptr_t = gdb.lookup_type("JSScript").pointer()
     self.JSFunction_AtomSlot = gdb.parse_and_eval("JSFunction::AtomSlot")
     self.JSFunction_NativeJitInfoOrInterpretedScriptSlot = gdb.parse_and_eval(
         "JSFunction::NativeJitInfoOrInterpretedScriptSlot"
     )
예제 #8
0
 def __init__(self, value, cache):
     baseshape_flags = gdb.lookup_type('js::BaseShape::Flag')
     self.flag_DELEGATE = prettyprinters.enum_value(baseshape_flags, 'js::BaseShape::DELEGATE')
     self.func_ptr_type = gdb.lookup_type('JSFunction').pointer()