[Mono-dev] A inline asm on aix

2016-07-12 Thread Zhanxing Ding
Hi All, I am porting mono, does anyone know how to write the inline asm on aix to replace the following inline asm. #define MONO_THREAD_VAR_OFFSET(var,offset) \ __asm ("lis %0," #var "@tprel@ha\n" \ "addi %0,%0, " #var

Re: [Mono-dev] Shutdown hangs

2016-07-12 Thread Chris Swiedler
Switching to mono 4.0.5 seems a little better, but the problem (or a similar problem) is still there, and I get segfaults and other problems with 4.0. Does anyone have any suggestions for brute-force ways to fix this problem? E.g., can I modify ves_icall_System_Environment_Exit or similar to

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

2016-07-12 Thread Robert Jordan
On 12.07.2016 12:39, Pin Cheng wrote: 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

[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