<ul dir="auto">
<li>By the original design, the debugger allows thread context switching only<br>
interactively, while in the Call Stack pane (in Stopped mode). This is<br>
being handled directly through GtkTreeView::cursor-changed event.</li>
<li>However, this event was also getting triggered when clearing the latest<br>
thread's Call Stack after continuing the execution (Running mode).</li>
<li>This behavior does not seem to have being intended, and it lead to a<br>
number of issues: stepping hangs, corruption of GDB output processing,<br>
unnecessary attempts at opening of source files corresponding to thread's<br>
call-stack frames.</li>
<li>To avoid all of these issues, GtkTreeView::cursor-changed event is left<br>
unhandled while clearing the frames. Also the handler for thread-context<br>
switching is allowed processing only in debugger's Stopped mode to enforce<br>
the intended behavior.</li>
</ul>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1069.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="820709793" data-permission-text="Title is private" data-url="https://github.com/geany/geany-plugins/issues/1069" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/1069/hovercard" href="https://github.com/geany/geany-plugins/issues/1069">#1069</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/1170'>https://github.com/geany/geany-plugins/pull/1170</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/geany/geany-plugins/pull/1170/commits/40b78a6620e89a29b88045ec23ae9f1a60d30630" class="commit-link">40b78a6</a>  Debugger: Fix debugging of multi-threaded programs</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/geany/geany-plugins/pull/1170/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/1170/files#diff-0745f07588e00fd8471dc8534c1414584bf61a5875b8483fb1d95f2d7e85aa70">debugger/src/debug.c</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/1170/files#diff-094a31942685e67f573f0d9bc3b063cff6de5c34120887c3fdb226e93329bd96">debugger/src/stree.c</a>
    (14)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/1170.patch'>https://github.com/geany/geany-plugins/pull/1170.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/1170.diff'>https://github.com/geany/geany-plugins/pull/1170.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/1170">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ45VKO2X3HKRGEOWXDVDIIOPANCNFSM5SNY2OVA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJZ5WTQHJ2CJTOMEMELVDIIOPA5CNFSM5SNY2OVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RX6DPLQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany-plugins/pull/1170</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/1170",
"url": "https://github.com/geany/geany-plugins/pull/1170",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>