Skip to content

Instantly share code, notes, and snippets.

@hdon
Created May 14, 2009 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdon/111929 to your computer and use it in GitHub Desktop.
Save hdon/111929 to your computer and use it in GitHub Desktop.
2169 if (!OBJ_DEFINE_PROPERTY(cx, obj, ATOM_TO_JSID(atom),
(gdb) print *((JSObject*)fun)->map->ops
$63 = {newObjectMap = 0xb7f140a6 <js_NewObjectMap>,
destroyObjectMap = 0xb7f14080 <js_DestroyObjectMap>,
lookupProperty = 0xb7f11364 <js_LookupProperty>,
defineProperty = 0xb7f1274c <js_DefineProperty>,
getProperty = 0xb7f110b2 <js_GetProperty>,
setProperty = 0xb7f1092a <js_SetProperty>,
getAttributes = 0xb7f115f8 <js_GetAttributes>,
setAttributes = 0xb7f127f8 <js_SetAttributes>,
deleteProperty = 0xb7f1138c <js_DeleteProperty>,
defaultValue = 0xb7f10ed8 <js_DefaultValue>,
enumerate = 0xb7f0e7ae <js_Enumerate>,
checkAccess = 0xb7f0e3d4 <js_CheckAccess>, thisObject = 0,
dropProperty = 0xb7f0d97a <js_DropProperty(JSContext*, JSObject*, JSProperty*)>, call = 0xb7f0e362 <js_Call>, construct = 0xb7f0e302 <js_Construct>,
xdrObject = 0, hasInstance = 0xb7f0e2aa <js_HasInstance>,
setProto = 0xb7f16d78 <js_SetProtoOrParent>,
setParent = 0xb7f16d78 <js_SetProtoOrParent>,
trace = 0xb7f0daba <js_TraceObject>, clear = 0xb7f0d9aa <js_Clear>,
getRequiredSlot = 0xb7f0d8d6 <js_GetRequiredSlot>,
setRequiredSlot = 0xb7f12da8 <js_SetRequiredSlot>}
(gdb) next
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) disass $pc
No function contains specified address.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment