[Mono-bugs] [Bug 464122] New: Impossible to set a breakpoint to throw
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 7 08:45:10 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=464122
Summary: Impossible to set a breakpoint to throw
Product: Mono: Debugger
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: gui
AssignedTo: martin at novell.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
I have not found a way how to set a breakpoint at throw in following code
(extracted from MethodBuilder.cs)
internal void fixup ()
{
if (((attrs & (MethodAttributes.Abstract |
MethodAttributes.PinvokeImpl)) == 0) && ((iattrs &
(MethodImplAttributes.Runtime | MethodImplAttributes.InternalCall)) == 0)) {
#if NET_2_0
// do not allow zero length method body on
MS.NET 2.0 (and higher)
if (((ilgen == null) ||
(ILGenerator.Mono_GetCurrentOffset (ilgen) == 0)) && (code == null ||
code.Length == 0))
#else
if (((ilgen == null) ||
(ILGenerator.Mono_GetCurrentOffset (ilgen) == 0)) && (code == null))
#endif
throw new InvalidOperationException (
String.Format ("Method '{0}.{1}' does not have a method body.",
DeclaringType.FullName, Name));
}
if (ilgen != null)
ilgen.label_fixup ();
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list