<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&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=283647&amp;action=diff" name="attach_283647" title="patch">attachment 283647</a> <a href="attachment.cgi?id=283647&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=283647&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=283647&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/UIProcess/API/C/gtk/WKContextPrivateGtk.cpp:41
&gt; +pid_t WKContextGetNetworkProcessIdentifier(WKContextRef contextRef)
&gt; +{
&gt; +    return toImpl(contextRef)-&gt;networkProcessIdentifier();
&gt; +}
&gt; +
&gt; +pid_t WKContextGetDatabaseProcessIdentifier(WKContextRef contextRef)
&gt; +{
&gt; +    return toImpl(contextRef)-&gt;databaseProcessIdentifier();</span >

Why is this specific to GTK+? Why don't we add this to WKContext.cpp and WKContextPrivate.h?

<span class="quote">&gt; Source/WebKit2/UIProcess/API/C/gtk/WKPagePrivateGtk.cpp:37
&gt; +pid_t WKPageGetProcessIdentifier(WKPageRef pageRef)
&gt; +{
&gt; +    return toImpl(pageRef)-&gt;processIdentifier();
&gt; +}</span >

Ditto, this could be added to WKPage.cpp and WKPagePrivate.h, since this is exposing cross-platform API

<span class="quote">&gt; Tools/Scripts/process-linux-coredump:26
&gt; +    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">&gt; Tools/Scripts/webkitpy/port/linux_get_crash_log_unittest.py:49
&gt;          core_pattern = os.path.join(core_directory, &quot;core-pid_%p-_-process_%E&quot;)
&gt; +        core_pattern = &quot;|%s %%p /path/to/coredumps&quot; % process_coredump_script_path</span >

Shouldn't you remove the previous core_pattern assignation?

<span class="quote">&gt; Tools/WebKitTestRunner/TestController.cpp:1487
&gt;      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>