Branch: Tag:

1999-10-18

1999-10-18 19:15:44 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

better dmalloc tracking of destructed objects (I hope)

Rev: src/dmalloc.h:1.16
Rev: src/object.c:1.84
Rev: src/pike_memory.c:1.44
Rev: src/program.c:1.159

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.158 1999/10/09 23:29:02 hubbe Exp $"); + RCSID("$Id: program.c,v 1.159 1999/10/18 19:15:44 hubbe Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
662: Inside #if defined(PIKE_DEBUG)
   struct pike_string *s=make_shared_string(file);    store_linenumber(line,s);    free_string(s); +  debug_malloc_name(new_program, file, line);    }   #endif   }
2627:       low_start_new_program(0,0,0);    if(lex.current_file) -  store_linenumber(last_pc, lex.current_file); +  { +  store_linenumber(lex.current_line, lex.current_file); +  debug_malloc_name(new_program, lex.current_file->str, lex.current_line); +  }    compilation_depth=0;      /* start_line_numbering(); */