Branch: Tag:

2016-08-05

2016-08-05 08:52:58 by Arne Goedeke <el@laramies.com>

gc: use valgrind to help identify locations

If compiled with valgrind support and if run under valgrind,
describe_something() will use a valgrind client request to output
information about the location. This can be very useful for locations
that have already been freed.

1652:    debug_malloc_dump_references(a,indent+2,depth-1,flags);   #endif    } + #if defined(USE_VALGRIND) && defined(VALGRIND_MONITOR_COMMAND) +  if (PIKE_MEM_CHECKER()) { +  char buf[40]; +  snprintf(buf, 40, "v.info location %p", a); +  fprintf(stderr, "**Valgrind info:\n"); +  VALGRIND_MONITOR_COMMAND(buf); +  } + #endif    -  +     fprintf(stderr,"%*s*******************\n",indent,"");    d_flag=tmp;   }