<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Improve GDB backtrace generation for GTK/EFL"
href="https://bugs.webkit.org/show_bug.cgi?id=128928#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Improve GDB backtrace generation for GTK/EFL"
href="https://bugs.webkit.org/show_bug.cgi?id=128928">bug 128928</a>
from <span class="vcard"><a class="email" href="mailto:cgarcia@igalia.com" title="Carlos Garcia Campos <cgarcia@igalia.com>"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
<pre>Comment on <span class=""><a href="attachment.cgi?id=283647&action=diff" name="attach_283647" title="patch">attachment 283647</a> <a href="attachment.cgi?id=283647&action=edit" title="patch">[details]</a></span>
patch
View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=283647&action=review">https://bugs.webkit.org/attachment.cgi?id=283647&action=review</a>
<span class="quote">> Source/WebKit2/UIProcess/API/C/gtk/WKContextPrivateGtk.cpp:41
> +pid_t WKContextGetNetworkProcessIdentifier(WKContextRef contextRef)
> +{
> + return toImpl(contextRef)->networkProcessIdentifier();
> +}
> +
> +pid_t WKContextGetDatabaseProcessIdentifier(WKContextRef contextRef)
> +{
> + return toImpl(contextRef)->databaseProcessIdentifier();</span >
Why is this specific to GTK+? Why don't we add this to WKContext.cpp and WKContextPrivate.h?
<span class="quote">> Source/WebKit2/UIProcess/API/C/gtk/WKPagePrivateGtk.cpp:37
> +pid_t WKPageGetProcessIdentifier(WKPageRef pageRef)
> +{
> + return toImpl(pageRef)->processIdentifier();
> +}</span >
Ditto, this could be added to WKPage.cpp and WKPagePrivate.h, since this is exposing cross-platform API
<span class="quote">> Tools/Scripts/process-linux-coredump:26
> + full_path = os.path.join(destination_directory, 'core-pid_%d.dump' % int(pid))</span >
Why do you need to convert the pid to int? Why not just use %s instead? Or the script could receive the path already built no?
<span class="quote">> Tools/Scripts/webkitpy/port/linux_get_crash_log_unittest.py:49
> core_pattern = os.path.join(core_directory, "core-pid_%p-_-process_%E")
> + core_pattern = "|%s %%p /path/to/coredumps" % process_coredump_script_path</span >
Shouldn't you remove the previous core_pattern assignation?
<span class="quote">> Tools/WebKitTestRunner/TestController.cpp:1487
> pid_t pid = WKContextGetNetworkProcessIdentifier(m_context.get());</span >
Ah, mac already has an impl of this. In that case it should be moved to the cross-platform files, I think, instead of duplicating it in GTK specific files.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>