From: Jay Freeman (saurik) Date: Sat, 27 Aug 2016 00:13:31 +0000 (-0700) Subject: Due to cynject, there is no reason to turn off -p. X-Git-Tag: v0.9.594~1 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/13bcb0b112eb318b0da585f713c2ea5a69d47573 Due to cynject, there is no reason to turn off -p. --- 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 ]" " [