Skip to content
Snippets Groups Projects
Commit 382332a8 authored by an7s's avatar an7s
Browse files

debug stmts on fd 2

parent 5366255e
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ void fptr_shadow_define_64(void *p_retAddress, void *p_instrumented, int p_shado ...@@ -119,7 +119,7 @@ void fptr_shadow_define_64(void *p_retAddress, void *p_instrumented, int p_shado
my_strcpy(&msg[strlen(msg)], " value: "); my_strcpy(&msg[strlen(msg)], " value: ");
itox(p_shadowValue, &msg[strlen(msg)]); itox(p_shadowValue, &msg[strlen(msg)]);
my_strcpy(&msg[strlen(msg)], " \n"); my_strcpy(&msg[strlen(msg)], " \n");
write(1, msg, strlen(msg)); write(2, msg, strlen(msg));
#endif #endif
#endif #endif
...@@ -149,7 +149,7 @@ void fptr_shadow_check_64(void *p_retAddress, void *p_instrumented, int p_shadow ...@@ -149,7 +149,7 @@ void fptr_shadow_check_64(void *p_retAddress, void *p_instrumented, int p_shadow
my_strcpy(&msg[strlen(msg)], " shadowValue: "); my_strcpy(&msg[strlen(msg)], " shadowValue: ");
itox(*p_shadow, &msg[strlen(msg)]); itox(*p_shadow, &msg[strlen(msg)]);
my_strcpy(&msg[strlen(msg)], " \n"); my_strcpy(&msg[strlen(msg)], " \n");
write(1, msg, strlen(msg)); write(2, msg, strlen(msg));
#endif #endif
#endif #endif
...@@ -167,7 +167,7 @@ void fptr_shadow_check_64(void *p_retAddress, void *p_instrumented, int p_shadow ...@@ -167,7 +167,7 @@ void fptr_shadow_check_64(void *p_retAddress, void *p_instrumented, int p_shadow
my_strcpy(msg, "Warning: overwrite of function pointer detected -- restoring saved value: 0x"); my_strcpy(msg, "Warning: overwrite of function pointer detected -- restoring saved value: 0x");
itox(*p_shadow, &msg[strlen(msg)]); itox(*p_shadow, &msg[strlen(msg)]);
my_strcpy(&msg[strlen(msg)], " \n"); my_strcpy(&msg[strlen(msg)], " \n");
write(1, msg, strlen(msg)); write(2, msg, strlen(msg));
#endif #endif
} }
else else
...@@ -181,7 +181,7 @@ void fptr_shadow_check_64(void *p_retAddress, void *p_instrumented, int p_shadow ...@@ -181,7 +181,7 @@ void fptr_shadow_check_64(void *p_retAddress, void *p_instrumented, int p_shadow
my_strcpy(&msg[strlen(msg)], " shadowValue: "); my_strcpy(&msg[strlen(msg)], " shadowValue: ");
itox(*p_shadow, &msg[strlen(msg)]); itox(*p_shadow, &msg[strlen(msg)]);
my_strcpy(&msg[strlen(msg)], " \n"); my_strcpy(&msg[strlen(msg)], " \n");
write(1, msg, strlen(msg)); write(2, msg, strlen(msg));
#endif #endif
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment