Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yellowback/5501022 to your computer and use it in GitHub Desktop.
Save yellowback/5501022 to your computer and use it in GitHub Desktop.
Index: debug/debugger_posix.cc
===================================================================
--- debug/debugger_posix.cc (revision 161115)
+++ debug/debugger_posix.cc (working copy)
@@ -125,7 +125,7 @@
is_set = true;
#if defined(OS_FREEBSD)
being_debugged = (info.ki_flag & P_TRACED) != 0;
-#elif defined(OS_BSD)
+#elif defined(OS_BSD) && !defined(OS_NETBSD)
being_debugged = (info.p_flag & P_TRACED) != 0;
#else
being_debugged = (info.kp_proc.p_flag & P_TRACED) != 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment