[lldb-dev] How does attach work on non-Windows?

Duane Ellis via lldb-dev lldb-dev at lists.llvm.org
Wed Aug 26 20:53:47 PDT 2015

> On Aug 26, 2015, at 2:20 PM, Zachary Turner via lldb-dev <lldb-dev at 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);

More information about the lldb-dev mailing list