aboutsummaryrefslogtreecommitdiff
path: root/ltrace.c
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@thehackers.org>1997-06-25 00:02:58 +0200
committerJuan Cespedes <cespedes@thehackers.org>1997-06-25 00:02:58 +0200
commit24c8253c7bdb2f069f0320f1a6109402720f6d44 (patch)
tree275a5f2c85f4bacef6161b6350534cb3b07db1ca /ltrace.c
parentd3ac65fdee629adf2a429cd9987022f0bd141dfa (diff)
downloadltrace-24c8253c7bdb2f069f0320f1a6109402720f6d44.tar.gz
Version 0.0.1997.06.25
I think I've found the optimal format for config files: C prototypes! For example: void * malloc(unsigned int size);
Diffstat (limited to 'ltrace.c')
-rw-r--r--ltrace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltrace.c b/ltrace.c
index 5bfe3c8..432b5eb 100644
--- a/ltrace.c
+++ b/ltrace.c
@@ -13,6 +13,8 @@
#include <string.h>
#include <signal.h>
+void print_function(const char *, int);
+
int pid;
static int debug = 0;
@@ -21,6 +23,8 @@ struct library_symbol {
char * name;
unsigned long addr;
unsigned char value;
+ unsigned long return_addr;
+ unsigned char return_value;
struct library_symbol * next;
};