Re: [webkit-dev] Debugging Webkit?

2010-07-13 Thread Chang.Shu
I once also had issues setting break points inside WebCore. Gdb claimed the 
break points have been set but the source code showing up after hitting the 
break point always messed up. The problem was resolved by updating my ubuntu to 
latest version (10.4LTS). I am not sure if this is the same problem you have.

Another tip is to check the size of your webcore.dll. It should be huge.

Hopefully it helps.

Chang

From: webkit-dev-boun...@lists.webkit.org 
[mailto:webkit-dev-boun...@lists.webkit.org] On Behalf Of ext Chinmaya Sn
Sent: Tuesday, July 13, 2010 10:09 PM
To: Yuchen Zhou
Cc: webkit-dev
Subject: Re: [webkit-dev] Debugging Webkit?

Try This
1. As you already did run ./buid-webkit --debug --qt
2. cd WEBKIT_DIR/WebKitBuild/Debug/bin
3. Assuming you have WEBKIT_DIR/WebCore , WEBKIT_DIR/WebKit source directories
try
$ gdb -cd . -d ../../../ --args ./QtLauncher args-to-QtLauncher
4. Now at gdb prompt
(gdb) break main # to add breakpoint to main function
(gdb) break WebCore::FrameLoader::init # make sure you use fully-qualified 
namespace

Alternatively
1. same as above
2. same as above
3. Create a text file with gdb commands
$ cat EOF  commands.txt
start
break main
break WebCore::FrameLoader::init
continue
EOF

4. run gdb as
$ gdb -x comands.txt -d ../../../ -cd . --args ./QtLauncher


Qt comes with (std distribution) with gdb 6.8 or something, if you gdb 7.01 or 
above
you will be able to leverage some of the python gdb scripts distributed with 
WebKit

See this WEBKIT_DIR/WebKitTools/gdb/webcore.py

--
Chinmaya

On Tue, Jul 13, 2010 at 8:22 PM, Yuchen Zhou 
yz...@virginia.edumailto:yz...@virginia.edu wrote:
Hi all-

I am newbie to webkit dev and I am trying to debug Webkit with gdb. I tried to 
build the Qtwebkit with ./build-webkit --debug --qt, and then gdb 
WebKitBuild/Debug/bin/QtTestBrowser, however seems gdb was not able to add 
breakpoints for class::functions. It cannot find them. I wonder what is the 
debugging process for Qtwebkit.

Thanks all,

2010-07-13

Yuchen

___
webkit-dev mailing list
webkit-dev@lists.webkit.orgmailto:webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



--
--
chinmaya sn
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Tagging bug names with a platform name: limit to platform-specific patches

2010-01-21 Thread Chang.Shu
Just want to add my two cents.
Based on my own experience, I think a patch that targets to fix a 
platform-specific problem but ends up making changes in platform-independent 
code, often means either the fix is problematic or a new bug/test case needs to 
be created for the independent part only.

Chang

-Original Message-
From: webkit-dev-boun...@lists.webkit.org 
[mailto:webkit-dev-boun...@lists.webkit.org] On Behalf Of ext Darin Adler
Sent: Wednesday, January 20, 2010 11:19 AM
To: WebKit Development
Subject: [webkit-dev] Tagging bug names with a platform name: limit to 
platform-specific patches

Hi folks.

We've never formalized this, but I believe that patches tagged with a 
particular platform name such as

 [Qt] Add new API for fluffy bunnies

should be limited to one particular platform's code. If the patch changes more 
than a trivial bit of platform-independent code, even if the change is only for 
the benefit of a signle platform, I suggest we not use the platform name prefix.

-- Darin

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] About debug of webkit

2010-01-18 Thread Chang.Shu
My machine has 3GB usable. It's 32-bit system.

-Original Message-
From: webkit-dev-boun...@lists.webkit.org 
[mailto:webkit-dev-boun...@lists.webkit.org] On Behalf Of ext Ariya Hidayat
Sent: Wednesday, January 06, 2010 10:00 AM
To: webkit-dev@lists.webkit.org
Subject: Re: [webkit-dev] About debug of webkit

 I just want to confirm that I got exactly the same problem and have no clue
 how to resolve it. The Chinese below basically says Failed to initialize
 application (0xc0150002). Click ok to terminate.

Do you guys have enough RAM? Say 4 GB or more?
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Support DOM 3 feature isId and setIdattribute in WebKit

2010-01-18 Thread Chang.Shu
Hi, all,

In https://bugs.webkit.org/show_bug.cgi?id=5578, Maciej Stachowiak recently 
brought up a question on whether we should support DOM 3 feature isId and 
setIdattribute in WebKit. Maciej thought it brought complication for allowing 
multiple ID attributes (Maybe Maciej meant to say alternate names for the ID 
attribute. Can you confirm, Maciej?). On the other hand, as my personal 
opinion, the feature gives web developer the ability to customize Id attribute 
names. I think it's pretty useful as in real world, the identification field of 
a data entry is not necessarily named id.

I hope people can join this discussion and let's decide whether we want this in 
or not together.

FYI, related specification can be found in:
http://www.w3.org/TR/DOM-Level-3-Core/core.html

Thanks very much!

Chang Shu



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] About debug of webkit

2010-01-06 Thread Chang.Shu
I just want to confirm that I got exactly the same problem and have no clue how 
to resolve it. The Chinese below basically says “Failed to initialize 
application (0xc0150002). Click ok to terminate.”
Thanks!

Chang

From: webkit-dev-boun...@lists.webkit.org 
[mailto:webkit-dev-boun...@lists.webkit.org] On Behalf Of ext changjiang fu 
fcjjcf
Sent: Wednesday, January 06, 2010 4:55 AM
To: webkit-dev@lists.webkit.org
Subject: [webkit-dev] About debug of webkit

Hi, I want to get some help from you about running webkit.

I want to build and run webkit on windows. Now I have successfully builded 
webkit src code by following the step of 
www.webkit.orghttp://www.webkit.org/. Now all the .exe and .dll exist in the 
output directory.
For I want to run it on windows, so I
(1)  Download a safari(4.0.4(531.21.10), maybe the latest) for windows and 
install it use default configuration.
(2)  Copy all the dll from C:\Program Files\Common Files\Apple\Apple 
Application Support to my webkit output directory(E:\webkit\WebKitBuild\bin).
(3)  Run WinLauncher_debug.exe.

The step (3) failed and an error message box show 
应用程序初始化(0xc0150002)失败。请单击确定,终止应用程序.,(I am from China, sorry for use chinese)
So I am confused of this error.

If I follow the step of the www.webkit.orghttp://www.webkit.org/ to first 
execute 'run-safari --debug', after execution, the proc ess Safari.exe is not 
exist in the windows task manager, I can not find it, So I can not do the next 
step to attach the webkit to the Safari.exe.

I really wish you can help me to solve this issue cause I spend much time to 
build this huge project and now it is actuall builded successfully, I am 
looking forward to run webkit and debug with it.
Thanks a lot for your help!

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev