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