[Mono-bugs] [Bug 387507] New: Debugger can not display arrays.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue May 6 23:50:56 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=387507
Summary: Debugger can not display arrays.
Product: Mono: Debugger
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: cli
AssignedTo: martin at novell.com
ReportedBy: miguel at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
I was debugging a small sample using `smcs' to build it and trying to debug:
(mdb) p match
(System.Reflection.MethodBase[]) [ <cannot display object>
(mdb) p match [0]
ERROR: Caught exception while executing command
Mono.Debugger.Frontend.DebuggerEngine: System.InvalidOperationException:
Nullable object must have a value.
at System.Nullable`1[System.Int32].get_Value () [0x00016] in
/second/home/cvs/mcs/class/corlib/System/Nullable.cs:101
at Mono.Debugger.Languages.TargetArrayBounds.get_Length () [0x0001c] in
/second/home/cvs/debugger/languages/TargetArrayType.cs:29
at Mono.Debugger.Languages.TargetArrayObject.GetArrayOffset
(Mono.Debugger.TargetMemoryAccess target, System.Int32[] indices) [0x00088] in
/second/home/cvs/debugger/languages/TargetArrayObject.cs:59
at Mono.Debugger.Languages.Mono.MonoArrayObject.GetElement
(Mono.Debugger.TargetMemoryAccess target, System.Int32[] indices) [0x00000] in
/second/home/cvs/debugger/languages/mono/MonoArrayObject.cs:45
at
Mono.Debugger.Languages.TargetArrayObject+<>c__CompilerGenerated38.<GetElement>c__110
(Mono.Debugger.TargetMemoryAccess target) [0x00000] in
/second/home/cvs/debugger/languages/TargetArrayObject.cs:96
at
Mono.Debugger.Backend.SingleSteppingEngine+<>c__CompilerGenerated7.<DoTargetAccess>c__79
(Mono.Debugger.Thread +11, System.Object +12) [0x00000] in
/second/home/cvs/debugger/backend/SingleSteppingEngine.cs:791
at
Mono.Debugger.Backend.SingleSteppingEngine+<>c__CompilerGenerated33.<Invoke>c__105
(Mono.Debugger.Thread +115, System.Object +116) [0x00000] in
/second/home/cvs/debugger/backend/SingleSteppingEngine.cs:1908
at Mono.Debugger.Backend.SingleSteppingEngine.SendCommand
(Mono.Debugger.TargetAccessDelegate target) [0x00022] in
/second/home/cvs/debugger/backend/SingleSteppingEngine.cs:613
at Mono.Debugger.Backend.SingleSteppingEngine.Invoke
(Mono.Debugger.TargetAccessDelegate func, System.Object data) [0x0001d] in
/second/home/cvs/debugger/backend/SingleSteppingEngine.cs:1907
at Mono.Debugger.Backend.ThreadManager.engine_thread_main () [0x0014e] in
/second/home/cvs/debugger/backend/ThreadManager.cs:338
(mdb)
The sample is:
using System;
using System.IO;
using System.Resources;
using System.Reflection;
class T {
static void Main ()
{
Assembly a = Assembly.LoadFrom ("/tmp/a.dll");
ResourceManager m = new ResourceManager
("SilverlightApplication2.g", a);
Stream s = m.GetStream ("Page.xaml");
}
}
Important, this must be compiled with `smcs', not sure why I get different
behavior from gmcs (it aborts early).
--
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