Browse Source

Fixed Forum-3288: Exception when Threads pad opened for running application

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1281 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
65b636ca71
  1. 4
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Pads/RunningThreadsPad.cs

4
src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Pads/RunningThreadsPad.cs

@ -115,11 +115,13 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
item.Text = thread.ID.ToString(); item.Text = thread.ID.ToString();
item.Tag = thread; item.Tag = thread;
item.SubItems.Add(thread.Name); item.SubItems.Add(thread.Name);
Function location; Function location = null;
if (thread.Process.IsPaused) {
location = thread.LastFunctionWithLoadedSymbols; location = thread.LastFunctionWithLoadedSymbols;
if (location == null) { if (location == null) {
location = thread.LastFunction; location = thread.LastFunction;
} }
}
if (location != null) { if (location != null) {
item.SubItems.Add(location.Name); item.SubItems.Add(location.Name);
} else { } else {

Loading…
Cancel
Save