[Mono-bugs] [Bug 411948] New: MDB can't examine arrays of structs
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Jul 24 13:38:52 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=411948
Summary: MDB can't examine arrays of structs
Product: Mono: Debugger
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: backend
AssignedTo: martin at novell.com
ReportedBy: lluis at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
See this use case:
using System;
namespace Test
{
public struct SomeStruct
{
}
class MainClass
{
public static void Main(string[] args)
{
SomeStruct[] arr = new SomeStruct [10];
Console.WriteLine ("Instance Ready");
}
}
}
MDB fails when trying to examine the value of an element of the array:
lluis at portador:~/temp> mdb kk.exe
Mono Debugger
(mdb) r
Starting program: kk.exe
Thread @1 stopped at #0: 0xb794a23e in Test.MainClass.Main(string[])+0x6 at
/home/lluis/temp/kk.cs:13.
13 SomeStruct[] arr = new SomeStruct [10];
(mdb) n
Thread @1 stopped at #0: 0xb794a25d in Test.MainClass.Main(string[])+0x25 at
/home/lluis/temp/kk.cs:14.
14 Console.WriteLine ("Instance Ready");
(mdb) p arr[0]
ERROR: Caught exception while executing command
Mono.Debugger.Frontend.DebuggerEngine: System.InvalidOperationException:
Operation is not valid due to the current state of the object
at Mono.Debugger.Languages.TargetArrayObject.GetArrayOffset
(Mono.Debugger.TargetMemoryAccess target, System.Int32[] indices) [0x00146] in
/home/lluis/nowork/debugger/languages/TargetArrayObject.cs:75
at Mono.Debugger.Languages.Mono.MonoArrayObject.GetElement
(Mono.Debugger.TargetMemoryAccess target, System.Int32[] indices) [0x00000] in
/home/lluis/nowork/debugger/languages/mono/MonoArrayObject.cs:45
at
Mono.Debugger.Languages.TargetArrayObject+<>c__CompilerGenerated38.<GetElement>c__110
(Mono.Debugger.TargetMemoryAccess target) [0x00000] in
/home/lluis/nowork/debugger/languages/TargetArrayObject.cs:96
at
Mono.Debugger.Backend.SingleSteppingEngine+<>c__CompilerGenerated7.<DoTargetAccess>c__79
(Mono.Debugger.Thread +11, System.Object +12) [0x00000] in
/home/lluis/nowork/debugger/backend/SingleSteppingEngine.cs:787
at
Mono.Debugger.Backend.SingleSteppingEngine+<>c__CompilerGenerated33.<Invoke>c__105
(Mono.Debugger.Thread +115, System.Object +116) [0x00000] in
/home/lluis/nowork/debugger/backend/SingleSteppingEngine.cs:1908
at Mono.Debugger.Backend.SingleSteppingEngine.SendCommand
(Mono.Debugger.TargetAccessDelegate target) [0x00022] in
/home/lluis/nowork/debugger/backend/SingleSteppingEngine.cs:609
at Mono.Debugger.Backend.SingleSteppingEngine.Invoke
(Mono.Debugger.TargetAccessDelegate func, System.Object data) [0x0001d] in
/home/lluis/nowork/debugger/backend/SingleSteppingEngine.cs:1907
at Mono.Debugger.Backend.ThreadManager.engine_thread_main () [0x0014e] in
/home/lluis/nowork/debugger/backend/ThreadManager.cs:338
(mdb)
--
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