26 int middle = (head + tail) / 2;
52 #ifdef ADDRESSTABLEDEBUG
53 printf(
"Inserted position: %d, address: 0x%lx.\n",
position, address);
62 #ifdef ADDRESSTABLEDEBUG
63 printf(
"Inserted position: %d, address: 0x%lx.\n",
position, address);
87 char convertcmd[1024];
88 printf(
"Lines that produce segmentation faults:\n");
101 pid_t myselfpid = getpid();
102 char gdbcommands[1024];
104 sprintf(gdbcommands,
"./gdbcommands.%d", myselfpid);
106 FILE *fp = fopen(gdbcommands,
"w+");
110 fprintf(fp,
"commands\n");
111 fprintf(fp,
"bt 10\n");
112 fprintf(fp,
"cont\n");
113 fprintf(fp,
"end\n");
115 fprintf(fp,
"cont\n");
119 #ifdef ADDRESSTABLEDEBUG
120 int main(
int argc,
char *argv[])
void outputAddresses(char *cmd)
struct AddressTable Detected
int main(int argc, char **argv)
int insertAddress(unsigned long address)
void generategdbscripts()
int bSearchAddress(unsigned long address, int head, int tail)
system("rm -rf dna.root")
int findAddress(unsigned long address)
printf("%d Experimental points found\n", nlines)
void * realloc(void *__ptr, size_t __size)
unsigned long * addresses
void * malloc(size_t __size)