From 13bcb0b112eb318b0da585f713c2ea5a69d47573 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 26 Aug 2016 17:13:31 -0700 Subject: [PATCH] Due to cynject, there is no reason to turn off -p. --- Console.cpp | 22 +--------------------- Makefile.am | 3 --- Makefile.in | 15 +++++---------- 3 files changed, 6 insertions(+), 34 deletions(-) diff --git a/Console.cpp b/Console.cpp index 62dadcb..2f24e58 100644 --- a/Console.cpp +++ b/Console.cpp @@ -343,7 +343,6 @@ class CYSocketRemote : void InjectLibrary(pid_t, std::ostream &stream, int, const char *const []); -#ifdef CY_ATTACH class CYInjectRemote : public CYRemote { @@ -367,7 +366,6 @@ class CYInjectRemote : return CYUTF8String(strdup(json.c_str()), json.size()); } }; -#endif static std::ostream *out_; @@ -876,9 +874,7 @@ int Main(int argc, char * const argv[], char const * const envp[]) { append_history$ = (int (*)(int, const char *)) (dlsym(RTLD_DEFAULT, "append_history")); -#ifdef CY_ATTACH pid_t pid(_not(pid_t)); -#endif const char *host(NULL); const char *port(NULL); @@ -892,18 +888,14 @@ int Main(int argc, char * const argv[], char const * const envp[]) { "c" "g:" "n:" -#ifdef CY_ATTACH "p:" -#endif "r:" "s" , (const struct option[]) { {NULL, no_argument, NULL, 'c'}, {NULL, required_argument, NULL, 'g'}, {NULL, required_argument, NULL, 'n'}, -#ifdef CY_ATTACH {NULL, required_argument, NULL, 'p'}, -#endif {NULL, required_argument, NULL, 'r'}, {NULL, no_argument, NULL, 's'}, {0, 0, 0, 0}}, NULL)); @@ -916,9 +908,7 @@ int Main(int argc, char * const argv[], char const * const envp[]) { case '?': fprintf(stderr, "usage: cycript [-c]" -#ifdef CY_ATTACH " [-p ]" -#endif " [-r ]" " [