[Mono-dev] [PATCH v3 2/7] mini: Disable soft debugger when not using sigaction

Robert Nagy robert at openbsd.org
Sun Apr 4 20:15:18 EDT 2010


Bah nevermind. Ignore my previous mail please, I was on drugs...

On (2010-04-05 02:01), Robert Nagy wrote:
> That will kill softdebug support everywhere where MONO_ARCH_USE_SIGACTION
> is not defined. That includes OpenBSD and FreeBSD.
> 
> On (2010-04-05 01:52), Andreas Färber wrote:
> > The x86 soft debugger depends on siginfo_t outside Windows. So if we're
> > neither building for Windows nor using SA_SIGINFO-style signal handlers,
> > don't enable the soft debugger. Fixes the build on Haiku.
> > 
> > Cc: Zoltan Varga <vargaz at gmail.com>
> > 
> > v2 -> v3:
> > * Enable the soft debugger for Windows as well (uses different code path).
> >   Pointed out by Zoltan Varga.
> > 
> > v1 -> v2:
> > * Instead of disabling siginfo_t code inside the soft debugger,
> >   disable the soft debugger itself.
> > 
> > This commit is licensed under the MIT X11 license.
> > ---
> >  mono/mini/ChangeLog  |    7 +++++++
> >  mono/mini/mini-x86.h |    4 ++++
> >  2 files changed, 11 insertions(+), 0 deletions(-)
> > 
> > diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog
> > index 9aced04..2d9bab6 100755
> > --- a/mono/mini/ChangeLog
> > +++ b/mono/mini/ChangeLog
> > @@ -1,3 +1,10 @@
> > +2010-04-04  Andreas Faerber  <andreas.faerber at web.de>
> > +
> > +	* mini-x86.h: Only enable soft debugger when using sigaction or on
> > +	Windows. Fixes build on Haiku (lacks siginfo_t).
> > +
> > +	Code is contributed under MIT/X11 license.
> > +
> >  2010-04-02  Andreas Faerber  <andreas.faerber at web.de>
> >  
> >  	* mini.h, mini-x86.h: Suppress sigaction for Haiku, add support for
> > diff --git a/mono/mini/mini-x86.h b/mono/mini/mini-x86.h
> > index 30c8d06..f3680d0 100644
> > --- a/mono/mini/mini-x86.h
> > +++ b/mono/mini/mini-x86.h
> > @@ -294,7 +294,11 @@ typedef struct {
> >  #define MONO_ARCH_GSHARED_SUPPORTED 1
> >  #define MONO_ARCH_HAVE_LLVM_IMT_TRAMPOLINE 1
> >  #define MONO_ARCH_LLVM_SUPPORTED 1
> > +
> > +#if defined(MONO_ARCH_USE_SIGACTION) || defined(TARGET_WIN32)
> >  #define MONO_ARCH_SOFT_DEBUG_SUPPORTED 1
> > +#endif
> > +
> >  #define MONO_ARCH_HAVE_FIND_JIT_INFO_EXT 1
> >  #define MONO_ARCH_HAVE_EXCEPTIONS_INIT 1
> >  #define MONO_ARCH_HAVE_HANDLER_BLOCK_GUARD 1
> > -- 
> > 1.7.0.4.297.g6555b1
> > 
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list


More information about the Mono-devel-list mailing list