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. 10
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Pads/RunningThreadsPad.cs

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

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

Loading…
Cancel
Save