https://bugzilla.novell.com/show_bug.cgi?id=411719
Summary: MDB can't execute methods from structs
Product: Mono: Debugger
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: cli
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
using System;
namespace Test
{
struct SomeStruct
{
}
class MainClass
{
public static void Main(string[] args)
{
SomeStruct s = new SomeStruct ();
Console.WriteLine ("Instance Ready");
}
}
}
Set a breakpoint in the "Instance Ready" WriteLine, and run the app. Then try
to execute the method ToString() on that instance. It will print an error about
method not found. Notice that it works fine if the type is a class, not a
struct.
Here is the sequence:
[EMAIL PROTECTED]:~/temp> mdb kk.exe
Mono Debugger
(mdb) r
Starting program: kk.exe
Thread @1 stopped at #0: 0xb7a03233 in Test.MainClass.Main(string[])+0x3 at
/home/lluis/temp/kk.cs:14.
14 Console.WriteLine ("Instance Ready");
(mdb) p s.ToString ()
ERROR: Type `Test.SomeStruct' has no member `ToString'
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs