this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add BREAK_AFTER_LOAD into mldr to make certain things easier in gdb

+5
+5
src/dyld/mldr.c
··· 106 106 107 107 load(filename, &entryPoint, &mh, CPU_TYPE_ANY); 108 108 109 + #if defined(__i386__) || defined(__x86_64__) 110 + if (getenv("BREAK_AFTER_LOAD") != NULL) 111 + __asm__("int3"); 112 + #endif 113 + 109 114 #ifdef __x86_64__ 110 115 # define GETSP(ptr) __asm__ volatile("movq %%rsp, %0" : "=r"(ptr) ::) 111 116 # define JUMPX(pushCount, addr) __asm__ volatile("sub %1, %%rsp; jmpq *%0" :: "m"(addr), "r"(pushCount * sizeof(void*)) :)