CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnetlib
Changes by: Klaus Treichel <ktreichel> 06/10/13 07:41:33
Modified files:
. : ChangeLog
runtime/System/Diagnostics: DebuggableAttribute.cs
Log message:
2006-10-13 Klaus Treichel <[EMAIL PROTECTED]>
* runtime/System/Diagnostics/DebuggableAttribute.cs: Add 2.0
features.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2439&r2=1.2440
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Diagnostics/DebuggableAttribute.cs?cvsroot=dotgnu-pnet&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2439
retrieving revision 1.2440
diff -u -b -r1.2439 -r1.2440
--- ChangeLog 5 Oct 2006 12:37:58 -0000 1.2439
+++ ChangeLog 13 Oct 2006 07:41:33 -0000 1.2440
@@ -1,3 +1,7 @@
+2006-10-13 Klaus Treichel <[EMAIL PROTECTED]>
+
+ * runtime/System/Diagnostics/DebuggableAttribute.cs: Add 2.0 features.
+
2006-10-05 Heiko Weiss <[EMAIL PROTECTED]>
* System.Windows.Forms/Control.cs: handle exception in
Index: runtime/System/Diagnostics/DebuggableAttribute.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Diagnostics/DebuggableAttribute.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- runtime/System/Diagnostics/DebuggableAttribute.cs 23 Apr 2003 05:39:49
-0000 1.4
+++ runtime/System/Diagnostics/DebuggableAttribute.cs 13 Oct 2006 07:41:33
-0000 1.5
@@ -24,15 +24,78 @@
#if !ECMA_COMPAT
+#if CONFIG_FRAMEWORK_2_0
+using System.Runtime.InteropServices;
+#endif
+
[AttributeUsage(AttributeTargets.Assembly |
AttributeTargets.Module,
AllowMultiple=false)]
public sealed class DebuggableAttribute : Attribute
{
+#if CONFIG_FRAMEWORK_2_0
+ [Flags]
+ [ComVisible(true)]
+ public enum DebuggingModes
+ {
+ None = 0,
+ Default = 1,
+ IgnoreSymbolStoreSequencePoints = 2,
+ EnableEditAndContinue = 4,
+ DisableOptimizations = 256
+ }
+
+ DebuggingModes debuggingFlags;
+#else
// Internal state.
private bool jitTracking;
private bool disableOpt;
+#endif
+
+#if CONFIG_FRAMEWORK_2_0
+ // Constructors.
+ public DebuggableAttribute(DebuggingModes modes)
+ {
+ debuggingFlags = modes;
+ }
+
+ public DebuggableAttribute(bool enableJITTracking,
+ bool
disableJITOptimizer)
+ {
+ debuggingFlags = DebuggingModes.None;
+ if(enableJITTracking)
+ {
+ debuggingFlags |=
DebuggingModes.Default;
+ }
+ if(disableJITOptimizer)
+ {
+ debuggingFlags |=
DebuggingModes.DisableOptimizations;
+ }
+ }
+ // Properties.
+ public bool IsJITTrackingEnabled
+ {
+ get
+ {
+ return (debuggingFlags &
DebuggingModes.Default) != DebuggingModes.None;
+ }
+ }
+ public bool IsJITOptimizerDisabled
+ {
+ get
+ {
+ return (debuggingFlags &
DebuggingModes.DisableOptimizations) != DebuggingModes.None;
+ }
+ }
+ public DebuggingModes DebuggingFlags
+ {
+ get
+ {
+ return debuggingFlags;
+ }
+ }
+#else
// Constructors.
public DebuggableAttribute(bool enableJITTracking,
bool
disableJITOptimizer)
@@ -56,7 +119,7 @@
return disableOpt;
}
}
-
+#endif
}; // class DebuggableAttribute
#endif // !ECMA_COMPAT
_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits