]> git.saurik.com Git - apple/system_cmds.git/blobdiff - kdprof/DisableAction.cpp
system_cmds-643.30.1.tar.gz
[apple/system_cmds.git] / kdprof / DisableAction.cpp
diff --git a/kdprof/DisableAction.cpp b/kdprof/DisableAction.cpp
new file mode 100644 (file)
index 0000000..d54511e
--- /dev/null
@@ -0,0 +1,15 @@
+//
+//  DisableAction.cpp
+//  kdprof
+//
+//  Created by James McIlree on 4/17/13.
+//  Copyright (c) 2013 Apple. All rights reserved.
+//
+
+#include "global.h"
+
+void DisableAction::execute(Globals& globals) {
+       if (!KDBG::set_enabled(false)) {
+               usage("Unable to disable tracing");
+       }
+}