[Mono-dev] A segement fault on PPC host

2015-12-28 Thread Pin Cheng
Hi there, I am trying to porting Mono 4.2.1 into aix 6.1, it was compiled in 32bits mode. At present, I faced a segment fault at : return runtime_invoke (obj, params, exc, info->compiled_method); this is line is the last one in function mono_jit_runtime_invoke. It seems 'runtime_invoke' could not

[Mono-dev] How to debug native code?

2016-01-18 Thread Pin Cheng
Hi all, I am trying to port Mono into Aix host, I have am very fundamental question: How are you guys debug native code? Because JIT compiler compiles assembly into native code then JIT invoke it, I am very curious if there errors in native code How do you find out the bug and fix it. And if you u

[Mono-dev] Could sgen works with pthread?

2016-04-05 Thread Pin Cheng
Hi All, I am porting mono into old aix host, my platform doesn't support __thread Key word. I notice https://bugzilla.novell.com/show_bug.cgi?id=660413 Described that mono doesn't support sgen with pthread. I am using Mono 4.2.1, does this release overcome the limitation? I have research the source

[Mono-dev] How to stop and debug native code of a method?

2016-07-12 Thread Pin Cheng
Hi All, I am porting mono to a platform, I wander if I want to trace a method(compiled into native code) how do You stop the program running when entering into this method? Gdb can Watch the PC register, but it is very slow, I have wait for tens of minutes. Is there any efficient way to interrupt s