> > On Aug 26, 2015, at 2:20 PM, Zachary Turner via lldb-dev > <lldb-dev@lists.llvm.org> wrote: > > Slightly related, but do other platforms have a way to check from an inferior > if a debugger is present? > > We need to do this frequently from the test inferiors, and I see lots of > different approaches used in the test programs, none of which work correctly > on Windows. >
This is the proper way to do this under windows: BOOL WINAPI IsDebuggerPresent(void); This related function is often helpful: void WINAPI DebugBreak(void); _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev