Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c430510

Browse files
Merge branch 'master' of github.com:icsharpcode/SharpDevelop
2 parents 58f3464 + 6147f60 commit c430510

29 files changed

Lines changed: 111 additions & 196 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you want to contribute see ["Joining the team"](https://github.com/icsharpcod
2929
- [Microsoft Build Tools 2013](http://www.microsoft.com/en-us/download/details.aspx?id=40760)
3030
- [.NET 3.5 SP1](http://www.microsoft.com/en-au/download/details.aspx?id=22)
3131
- [.NET 4.5 SDK](http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx) (part of Windows SDK 8.0)
32-
- [Windows SDK 7.1](http://www.microsoft.com/downloads/details.aspx?familyid=6B6C21D2-2006-4AFA-9702-529FA782D63B) (?? not sure if this still is necessary...)
32+
- [Windows SDK 7.1](http://www.microsoft.com/downloads/details.aspx?familyid=6B6C21D2-2006-4AFA-9702-529FA782D63B)
3333
- [Windows SDK 7.0](http://www.microsoft.com/en-us/download/details.aspx?id=3138) (optional; C++ compiler needed for profiler)
3434
- [Windows PowerShell](http://www.microsoft.com/en-us/download/details.aspx?id=34595)
3535
- If you have cloned the SD git repository: git must be available on your PATH

doc/Dependencies.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<ul>
1212
<li>
13-
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=40772">Microsoft .NET Framework 4.5.1 Developer Pack</a> for .NET 4.5 code completion documentation
13+
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=42637">Microsoft .NET Framework 4.5.2 Developer Pack</a> for .NET 4.5 code completion documentation
1414
</li>
1515
<li>
1616
<a href="http://www.microsoft.com/downloads/details.aspx?familyid=6B6C21D2-2006-4AFA-9702-529FA782D63B&amp;displaylang=en">Microsoft Windows SDK for Windows 7 and .NET Framework 4</a> (strongly recommended!)
@@ -47,6 +47,10 @@
4747
<th>Target platform</th>
4848
<th>Reference Assemblies</th>
4949
<tr>
50+
<tr>
51+
<td>.NET Framework 4.5.2</td>
52+
<td><a href="http://www.microsoft.com/en-us/download/details.aspx?id=42637">Microsoft .NET Framework 4.5.2 Developer Pack</a></td>
53+
</tr>
5054
<tr>
5155
<td>.NET Framework 4.5.1</td>
5256
<td><a href="http://www.microsoft.com/en-us/download/details.aspx?id=40772">Microsoft .NET Framework 4.5.1 Developer Pack</a></td>

src/AddIns/Debugger/Debugger.AddIn/Service/DebuggeeExceptionForm.Designer.cs

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AddIns/Debugger/Debugger.Core/Eval.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public Value Result {
7878
case EvalState.Evaluating: throw new GetValueException("Evaluating...");
7979
case EvalState.EvaluatedSuccessfully: return result;
8080
case EvalState.EvaluatedException: return result;
81-
case EvalState.EvaluatedNoResult: throw new DebuggerException("Evaluation did not return any value.");
81+
case EvalState.EvaluatedNoResult: throw new GetValueException("no result");
8282
case EvalState.EvaluatedTimeOut: throw new GetValueException("Timeout");
8383
default: throw new DebuggerException("Unknown state");
8484
}

src/AddIns/Debugger/Debugger.Core/Process.cs

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using System.Collections.Generic;
2121
using System.Linq;
2222

23+
using System.Runtime.InteropServices;
2324
using ICSharpCode.NRefactory.TypeSystem;
2425
using Debugger.Interop.CorDebug;
2526
using Debugger.Interop.CorSym;
@@ -480,17 +481,26 @@ internal void AsyncContinue(DebuggeeStateAction action, Thread threadToRun = nul
480481
{
481482
AssertPaused();
482483

483-
if (threadToRun != null) {
484-
corProcess.SetAllThreadsDebugState(CorDebugThreadState.THREAD_SUSPEND, null);
485-
threadToRun.CorThread.SetDebugState(CorDebugThreadState.THREAD_RUN);
486-
} else {
487-
corProcess.SetAllThreadsDebugState(CorDebugThreadState.THREAD_RUN, null);
488-
}
489-
490-
NotifyResumed(action);
491-
corProcess.Continue(0);
492-
// this.TraceMessage("Continue");
484+
try {
485+
if (threadToRun != null) {
486+
corProcess.SetAllThreadsDebugState(CorDebugThreadState.THREAD_SUSPEND, null);
487+
threadToRun.CorThread.SetDebugState(CorDebugThreadState.THREAD_RUN);
488+
} else {
489+
corProcess.SetAllThreadsDebugState(CorDebugThreadState.THREAD_RUN, null);
490+
}
493491

492+
NotifyResumed(action);
493+
corProcess.Continue(0);
494+
// this.TraceMessage("Continue");
495+
} catch (COMException ex) {
496+
if (ex.HResult == unchecked((int)0x80131301)) {
497+
// Process was terminated. (Exception from HRESULT: 0x80131301)
498+
// This occurs if a process is killed (e.g. console window of console application closed)
499+
// while the application is doing something involving debugger callbacks (Debug.WriteLine calls, or throwing+handling exceptions).
500+
501+
// I think we can safely ignore this error.
502+
}
503+
}
494504
if (action == DebuggeeStateAction.Clear) {
495505
OnResumed();
496506
}

src/AddIns/Debugger/Debugger.Tests/Tests/ControlFlow_Stepping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ namespace Debugger.Tests {
129129

130130
public partial class DebuggerTests
131131
{
132-
[NUnit.Framework.Test]
132+
[NUnit.Framework.Test, NUnit.Framework.Ignore("Broken on .NET 4.5.2 due to #472")]
133133
public void ControlFlow_Stepping()
134134
{
135135
StartTest();

src/AddIns/DisplayBindings/HexEditor/Project/Src/Editor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ public Editor()
115115
selection = new SelectionManager(ref buffer);
116116
undoStack = new UndoManager();
117117
insertmode = true;
118-
underscorewidth = MeasureStringWidth(this.CreateGraphics(), "_", Settings.DataFont);
118+
using (var g = this.CreateGraphics()) {
119+
VScrollBar.Width = (int)(VScrollBar.Width * (g.DpiX / 96f));
120+
underscorewidth = MeasureStringWidth(g, "_", Settings.DataFont);
121+
}
119122
underscorewidth3 = underscorewidth * 3;
120123
fontheight = GetFontHeight(Settings.DataFont);
121124
selregion = new Rectangle[] {};

src/AddIns/DisplayBindings/ILSpyAddIn/ILSpySymbolSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public IEnumerable<ILLocalVariable> GetLocalVariables(IMethod method)
9696
var file = GetSymbols(method);
9797

9898
if (file == null || !file.DebugSymbols.ContainsKey(id))
99-
return null;
99+
return Enumerable.Empty<ILLocalVariable>();
100100

101101
var symbols = file.DebugSymbols[id];
102102

src/AddIns/DisplayBindings/IconEditor/EditorPanel.Designer.cs

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplaceDialog.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public static void ShowSingleInstance(SearchAndReplaceMode searchAndReplaceMode)
6464

6565
public SearchAndReplaceDialog(SearchAndReplaceMode searchAndReplaceMode)
6666
{
67+
SuspendLayout();
6768
this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
6869
this.ShowInTaskbar = false;
6970
this.TopMost = false;
@@ -94,6 +95,10 @@ public SearchAndReplaceDialog(SearchAndReplaceMode searchAndReplaceMode)
9495
Controls.Add(toolStrip);
9596
RightToLeftConverter.ConvertRecursive(this);
9697

98+
this.AutoScaleMode = AutoScaleMode.Dpi;
99+
this.AutoScaleDimensions = new SizeF(96, 96);
100+
ResumeLayout();
101+
97102
SetSearchAndReplaceMode();
98103
FormLocationHelper.Apply(this, "ICSharpCode.SharpDevelop.Gui.SearchAndReplaceDialog.Location", false);
99104

@@ -144,12 +149,16 @@ void EnableSearchMode(bool enable)
144149

145150
void SetSearchAndReplaceMode()
146151
{
152+
SuspendLayout();
147153
searchAndReplacePanel.SearchAndReplaceMode = searchButton.Checked ? SearchAndReplaceMode.Search : SearchAndReplaceMode.Replace;
154+
this.AutoScaleMode = AutoScaleMode.Dpi;
155+
this.AutoScaleDimensions = new SizeF(96, 96);
148156
if (searchButton.Checked) {
149157
this.ClientSize = new Size(430, 335);
150158
} else {
151159
this.ClientSize = new Size(430, 385);
152160
}
161+
ResumeLayout();
153162
}
154163

155164
/// <summary>

0 commit comments

Comments
 (0)