1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
# Oolite gdb conveniences
# To use, copy into ~/.gdbinit.
define pjsv
call (char *)JSValueToStrSafeDbg($arg0)
end
document psjv
pjsv <value>
Oolite
Print a description of the specified JavaScript value (jsval).
See also: pjso, pjss, pjsid, pjsvfull
end
define pjso
call (char *)JSObjectToStrSafeDbg($arg0)
end
document pjso
pjso <value>
Oolite
Print a description of the specified JavaScript object (JSObject *).
See also: pjsv, pjss, pjsid, pjsofull
end
define pjss
call (char *)JSStringToStrSafeDbg($arg0)
end
document pjss
pjss <value>
Oolite
Print a description of the specified JavaScript string (JSString *).
See also: pjsv, pjso, pjsid, pjssfull
end
define pjsvfull
call (char *)JSValueToStrDbg($arg0)
end
document pjsvfull
pjsvfull <value>
Oolite
Print a description of the specified JavaScript value (jsval), even if this
involves calling into SpiderMonkey and possibly invoking JS toString() methods.
See also: pjsofull, pjssfull, pjsv
end
define pjso
call (char *)JSObjectToStrSafeDbg($arg0)
end
document pjsofull
pjsofull <value>
Oolite
Print a description of the specified JavaScript object (JSObject *), even if
this involves calling into SpiderMonkey and possibly invoking JS toString()
methods.
See also: pjsvfull, pjssfull, pjso
end
define pjss
call (char *)JSStringToStrSafeDbg($arg0)
end
document pjssfull
pjssfull <value>
Oolite
Print a description of the specified JavaScript string (JSString *), even if
this involves calling into SpiderMonkey and possibly invoking JS toString()
methods.
See also: pjsvfull, pjsofull, pjss
end
define pjsid
call (char *)JSIDToStrSafeDbg($arg0)
end
document
pjsid <value>
Oolite
Print a description of the specified JavaScript identifier (jsid).
See also: pjsv, pjso, pjss
end
define jsstack
call OOJSDumpStack(context)
end
document jsstack
jsstack
Oolite
Dump the current JavaScript call stack to the log.
end
|