|
|
|
@ -58,12 +58,11 @@ namespace ICSharpCode.ILSpy.ReadyToRun
@@ -58,12 +58,11 @@ namespace ICSharpCode.ILSpy.ReadyToRun
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void SetDisassemblyOptions(XElement root, string disassemblyFormat, bool IsShowUnwindInfo, bool IsShowDebugInfo) |
|
|
|
|
public static void SetDisassemblyOptions(XElement root, string disassemblyFormat, bool IsShowUnwindInfo) |
|
|
|
|
{ |
|
|
|
|
XElement section = new XElement(ns + "ReadyToRunOptions"); |
|
|
|
|
section.SetAttributeValue("DisassemblyFormat", disassemblyFormat); |
|
|
|
|
section.SetAttributeValue("IsShowUnwindInfo", IsShowUnwindInfo); |
|
|
|
|
section.SetAttributeValue("IsShowDebugInfo", IsShowDebugInfo); |
|
|
|
|
XElement existingElement = root.Element(ns + "ReadyToRunOptions"); |
|
|
|
|
if (existingElement != null) { |
|
|
|
|
existingElement.ReplaceWith(section); |
|
|
|
@ -72,19 +71,6 @@ namespace ICSharpCode.ILSpy.ReadyToRun
@@ -72,19 +71,6 @@ namespace ICSharpCode.ILSpy.ReadyToRun
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static bool GetIsShowDebugInfo(ILSpySettings settings) |
|
|
|
|
{ |
|
|
|
|
if (settings == null) { |
|
|
|
|
settings = ILSpySettings.Load(); |
|
|
|
|
} |
|
|
|
|
XElement e = settings[ns + "ReadyToRunOptions"]; |
|
|
|
|
XAttribute a = e.Attribute("IsShowDebugInfo"); |
|
|
|
|
if (a == null) { |
|
|
|
|
return false; |
|
|
|
|
} else { |
|
|
|
|
return (bool)a; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|