<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/121061/">https://git.reviewboard.kde.org/r/121061/</a>
     </td>
    </tr>
   </table>
   <br />









<table bgcolor="#f0f0f0" cellpadding="5" cellspacing="5" style="border: 1px solid #c0c0c0; margin-bottom: 10px">
 <tr>
  <td>
   <a href="https://git.reviewboard.kde.org/r/121061/file/1642/#source/line130" style="color: black; font-weight: bold; font-size: 9pt;">0001-Fix-launching-a-debugsession-in-a-path-containing-sp.patch</a>

   <p>patch with unit test</p>



    <div><table class="sidebyside text-review-ui-table text-review-ui-comment-thumbnail ">
 <colgroup>
  <col class="line" />
  <col class="right" />
 </colgroup>
 <tbody>

  <tr>
   <th>130</th>
   <td><pre><span class="gi">+</span></pre></td>
  </tr>

  <tr>
   <th>131</th>
   <td><pre><span class="gi">+int main()</span></pre></td>
  </tr>

  <tr>
   <th>132</th>
   <td><pre><span class="gi">+{</span></pre></td>
  </tr>

  <tr>
   <th>133</th>
   <td><pre><span class="gi">+    int i = 42;</span></pre></td>
  </tr>

  <tr>
   <th>134</th>
   <td><pre><span class="gi">+</span></pre></td>
  </tr>

  <tr>
   <th>135</th>
   <td><pre><span class="gi">+    return i - 42;</span></pre></td>
  </tr>

  <tr>
   <th>136</th>
   <td><pre><span class="gi">+}</span></pre></td>
  </tr>

 </tbody>
</table>
</div>


  </td>
 </tr>
</table>
<div style="margin-left: 2em;">

 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">The test program doesn't check it's current working directory, so if gdb fails to set it, the test wont catch it!</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I don't know, how you could check it in a crossplattform way, maybe using Qt?</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">'''C++
QString str = QDir::currentDirPath()
'''</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">And then check if equal</p></pre>
</div>
<br />





<p>- Nicolas Werner</p>


<br />
<p>On November 13th, 2014, 7:52 nachm. UTC, Nicolas Werner wrote:</p>









<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: 1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
 <tr>
  <td>

<div>Review request for KDevelop.</div>
<div>By Nicolas Werner.</div>


<p style="color: grey;"><i>Updated Nov. 13, 2014, 7:52 nachm.</i></p>







<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="http://bugs.kde.org/show_bug.cgi?id=339231">339231</a>


</div>



<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
kdevelop
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Problem: GDBMI only accepts paths containing spaces if they are in double quotes otherwise cd will fail.
Solution: Add prepend and append double quotes to the dir string instead of using KShell::quoteArg</p></pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I did a patch for 4.7, that fixed the problem, but I can't build master at the moment, so I don't know, if this compiles. It should fix the bug tough, as it is only a quoting issue.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Should I also attatch the patch for the 4.7 branch?</p></pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>debuggers/gdb/debugsession.cpp <span style="color: grey">(e37c5b7)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/121061/diff/" style="margin-left: 3em;">View Diff</a></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">File Attachments </h1>


 <li><a href="https://git.reviewboard.kde.org/media/uploaded/files/2014/11/13/57f573ca-fa7e-4478-9be4-8431bf5597e5__0001-Fix-launching-a-debugsession-in-a-path-containing-sp.patch">patch with unit test</a></li>

</ul>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>