mono / sdb

A command line client for the Mono soft debugger.
https://www.mono-project.com
MIT License
116 stars 44 forks source link

Does not work on windows because of Mono.Posix dependency #30

Closed BitPuffin closed 8 years ago

BitPuffin commented 8 years ago

Hey I'm trying to use sdb on windows but it started screaming about that it couldn't load assembly Mono.Posix. So I tried installing gtksharp and copied its Mono.Posix.dll to the directory with sdb.exe. However this didn't work either and is now screaming at me like this:


Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at Mono.Debugger.Client.Program.Main(String[] args)
alexrp commented 8 years ago

Are you running sdb under Mono or .NET?

ghost commented 8 years ago

Can confirm that this happens when running under .NET. No problems running under mono. mono sdb.exe

alexrp commented 8 years ago

I guess the runtime is trying to load Mono.Posix.dll because of the call to Stdlib.SetSignalAction() in Program.Main() even though it's only a reference to an external method that doesn't necessarily have to be resolved upfront (since we only do the call conditionally). Some indirection might do the trick.

alexrp commented 8 years ago

Should be fixed now. Feel free to reopen or file other issues if you still have problems running SDB under .NET.

ghost commented 8 years ago

@alexrp Wow, thanks so much! I had almost given up hope.