projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
465622b
)
Remove debugging garbage from Mach/Inject.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Sun, 2 May 2010 09:56:42 +0000
(09:56 +0000)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Sun, 2 May 2010 09:56:42 +0000
(09:56 +0000)
Mach/Inject.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Mach/Inject.cpp
b/Mach/Inject.cpp
index 6b14c3ac1c5a76b79e88a2b0b36be7b2b73d0837..765a4ab6f37e41d23355206851d22b5694ef9316 100644
(file)
--- a/
Mach/Inject.cpp
+++ b/
Mach/Inject.cpp
@@
-126,9
+126,11
@@
void InjectLibrary(pid_t pid) {
vm_write(task, code, reinterpret_cast<vm_address_t>(trampoline->data_), trampoline->size_);
_krncall(vm_protect(task, code, trampoline->size_, false, VM_PROT_READ | VM_PROT_EXECUTE));
+ /*
printf("_ptss:%p\n", baton->__pthread_set_self);
printf("dlsym:%p\n", baton->dlsym);
printf("code:%zx\n", (size_t) code);
+ */
uint32_t frame[push];
if (sizeof(frame) != 0)