[Mono-list] Help required with Mono Debugger

Harald Krapfenbauer krapfenbauer at ict.tuwien.ac.at
Mon May 14 03:52:38 EDT 2007


Hello!
 
I want to test mdb with the simple program from
http://www.mono-project.com/Guide:Debugger under Linux.
I'm using mono-1.2.3.1 which includes the mdb.
The problem is, when I start mdb with this little test program, the
debugger does not stop in the Main() method but much earlier.

Compiling:

mcs -debug test.cs (succeeds)

Start the debugger:

$ mdb test.exe
Mono Debugger
(mdb) run
Starting program: test.exe
Thread @1 stopped at #0: 0xb7c47029.
0xb7c47029      ret
(mdb) show procs
(*) Process #1 (19428:/home/hkrapfenbauer/mono-1.2.3.1/bin/mono
--inside-mdb test.exe)
(mdb) thread
Thread @1 (19428:0) Stopped
(mdb) frame
#0: 0xb7c47029
0xb7c47029      ret
(mdb) next
Thread @1 stopped at #0: 0x080707ab in mono_debugger_init+0x5b.
0x080707ab      mov    %ebp,%esp
(mdb)
Thread @1 stopped at #0: 0x080707ad in mono_debugger_init+0x5d.
0x080707ad      pop    %ebp
(mdb)
Thread @1 stopped at #0: 0x080707ae in mono_debugger_init+0x5e.
0x080707ae      ret
(mdb)
Thread @1 stopped at #0: 0x0805940b in mono_main+0x9bb.
0x0805940b      jmp    0x8058c03:mono_main+0x1b3
(mdb)
...

Why am I in mono_main and not in the test program?



Any help appreciated!
Harald


More information about the Mono-list mailing list