[Webkit-unassigned] [Bug 47601] New: [gdb] Add pretty-print supports for UString, Identifier and JSString
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 13 10:47:14 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=47601
Summary: [gdb] Add pretty-print supports for UString,Identifier
and JSString
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Tools / Tests
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: yi.4.shen at nokia.com
To make gdb debugging easy, I add three pretty-print supports for UString,Identifier and JSString.
e.g.
Breakpoint 1, callDefaultValueFunction (exec=0xb68674f8, object=0xb6815400,
propertyName="toString")
at ../../../JavaScriptCore/runtime/JSObject.cpp:249
249 CallType callType = getCallData(function, callData);
(gdb) l
244
245 static ALWAYS_INLINE JSValue callDefaultValueFunction(ExecState* exec, const JSObject* object, const Identifier& propertyName)
246 {
247 JSValue function = object->get(exec, propertyName);
(gdb) d 1
(gdb) p function.toString(exec)
$1 = "function toString() {\n [native code]\n}"
(gdb) p propertyName
$2 = "toString"
(gdb) l
295 EncodedJSValue JSC_HOST_CALL stringProtoFuncReplace(ExecState* exec)
296 {
297 JSValue thisValue = exec->hostThisValue();
298 JSString* sourceVal = thisValue.toThisJSString(exec);
299 JSValue pattern = exec->argument(0);
300 JSValue replacement = exec->argument(1);
(gdb) p *sourceVal
$2 = "abs round ceil floor"
(gdb) p pattern.toString(exec)
$3 = "/\\s+$/"
(gdb) p replacement.toString(exec)
[Thread 0xb74ffb70 (LWP 5092) exited]
$4 = "-1.9918709106886894"
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list