RESOLVED FIXED Bug 85839
[Qt] Unbreak debugging of WebKit2.
https://bugs.webkit.org/show_bug.cgi?id=85839
Summary [Qt] Unbreak debugging of WebKit2.
Alexis Menard (darktears)
Reported 2012-05-07 15:57:42 PDT
[Qt] Unbreak debugging of WebKit2.
Attachments
Patch (4.89 KB, patch)
2012-05-07 16:10 PDT, Alexis Menard (darktears)
no flags
Patch (5.33 KB, patch)
2012-05-07 16:34 PDT, Alexis Menard (darktears)
no flags
Alexis Menard (darktears)
Comment 1 2012-05-07 16:10:52 PDT
Simon Hausmann
Comment 2 2012-05-07 16:17:37 PDT
Comment on attachment 140614 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140614&action=review > Tools/WebKitTestRunner/qt/main.cpp:71 > +void sigcontHandler(int signal) missing static > Tools/WebKitTestRunner/qt/main.cpp:90 > + signal(SIGCONT, sigcontHandler); sigaction should be used instead of signal.
Simon Hausmann
Comment 3 2012-05-07 16:18:35 PDT
Comment on attachment 140614 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140614&action=review >> Tools/WebKitTestRunner/qt/main.cpp:71 >> +void sigcontHandler(int signal) > > missing static I forgot: unused parameter signal :)
Kenneth Rohde Christiansen
Comment 4 2012-05-07 16:20:16 PDT
(In reply to comment #3) > (From update of attachment 140614 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=140614&action=review > > >> Tools/WebKitTestRunner/qt/main.cpp:71 > >> +void sigcontHandler(int signal) > > > > missing static > > I forgot: unused parameter signal :) Wow, you are up late Simon :-) I guess we should be sleeping.
Kenneth Rohde Christiansen
Comment 5 2012-05-07 16:22:19 PDT
Comment on attachment 140614 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140614&action=review Looks pretty ok > Source/WebKit2/ChangeLog:8 > + When you attach GDB to a running process it stops it. I would add a , before 'it' > Source/WebKit2/ChangeLog:14 > + state when the debugger send the signal SIGCONT. The old code sent*
Alexis Menard (darktears)
Comment 6 2012-05-07 16:34:10 PDT
Alexis Menard (darktears)
Comment 7 2012-05-07 16:34:34 PDT
I'm very unfamiliar with the sigaction stuff so I hope I did right.
Simon Hausmann
Comment 8 2012-05-08 06:29:22 PDT
Comment on attachment 140619 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140619&action=review > Source/WebKit2/qt/MainQt.cpp:68 > + sigaction(SIGCONT, 0, &oldAction); > + sigaction(SIGCONT, &newAction, 0); I think you should combine these into one call, i.e. sigaction(SIGCONT, &newAction, &oldAction);
Alexis Menard (darktears)
Comment 9 2012-05-08 07:00:24 PDT
Note You need to log in before you can comment on or make changes to this bug.