emaste added inline comments.
================ Comment at: lldb/source/Plugins/Process/POSIX/CrashReason.cpp:62 +#ifndef SEGV_MTEAERR +#define SEGV_MTEAERR 8 +#endif ---------------- pcc wrote: > emaste wrote: > > emaste wrote: > > > This should perhaps include an `#ifdef LINUX`(sp?) somehow, since 8 and 9 > > > are not necessarily MTEAERR / MTESERR on all POSIXy systems (although > > > that said I'm planning to reserve 8 and 9 on FreeBSD to match). > > (https://reviews.freebsd.org/D27785) > Makes sense, done. > > For now I left SEGV_BNDERR as is, although it doesn't appear that any of > FreeBSD, OpenBSD, NetBSD, illumos or XNU have defined anything besides > SEGV_MAPERR and SEGV_ACCERR so it might be good to put SEGV_BNDERR under the > #ifdef as well. What do you think about ``` #ifdef __linux__ #ifndef SEGV_MTEAERR #define SEGV_MTEAERR 8 #endif #ifdef SEGV_MTEAERR case SEGV_MTEAERR: return CrashReason::eAsyncTagCheckFault; #endif ``` We're likely to have `SEGV_MTEAERR` in FreeBSD soon Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93495/new/ https://reviews.llvm.org/D93495 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits