Version: 0.3.11
* Clean up lintian bugs
* Fixed small bug reading start of arguments in config file
* Keep a stack of nested calls (Morten Eriksen, 1999-07-04)
* Add "--indent" option (Morten Eriksen, 1999-07-04)
* cleans up connection between a breakpoint address and
a call instance (Morten Eriksen, 1999-07-04)
* New Standards-Version (3.5.5)
diff --git a/proc.c b/proc.c
index 6c0017d..48a942f 100644
--- a/proc.c
+++ b/proc.c
@@ -15,6 +15,7 @@
struct process * open_program(char * filename)
{
struct process * proc;
+ struct library_symbol * sym;
proc = malloc(sizeof(struct process));
if (!proc) {
perror("malloc");
@@ -23,8 +24,7 @@
proc->filename = filename;
proc->pid = 0;
proc->breakpoints_enabled = -1;
- proc->current_syscall = -1;
- proc->current_symbol = NULL;
+ proc->callstack_depth = 0;
proc->breakpoint_being_enabled = NULL;
proc->next = NULL;
if (opt_L && filename) {
@@ -51,6 +51,11 @@
} else {
proc->list_of_symbols = NULL;
}
+ sym = proc->list_of_symbols;
+ while (sym) {
+ insert_breakpoint(proc, sym->enter_addr); /* proc->pid==0 delays enabling. */
+ sym = sym->next;
+ }
proc->next = list_of_processes;
list_of_processes = proc;