contrib/gdb-7/gdb/jit.c
static void
jit_dealloc_cache (struct frame_info *this_frame, void *cache)
{
  struct jit_unwind_private *priv_data = cache;
  struct gdbarch *frame_arch;
  int i;

  gdb_assert (priv_data->registers);
  frame_arch = get_frame_arch (priv_data->this_frame);

  for (i = 0; i < gdbarch_num_regs (frame_arch); i++)
    if (priv_data->registers[i] && priv_data->registers[i]->free)
      priv_data->registers[i]->free (priv_data->registers[i]);

  xfree (priv_data->registers);
  xfree (priv_data);
}
/* gdb_reg_value has a free function, which must be called on each
   saved register value.  */
gdb_reg_value has a free function, which must be called on each
saved register value.
gdb_reg_value has a free function which must be called on each saved register value .
static void
jit_dealloc_cache (struct frame_info *this_frame, void *cache)
{
  struct jit_unwind_private *priv_data = cache;
  struct gdbarch *frame_arch;
  int i;
  gdb_assert (priv_data->registers);
  frame_arch = get_frame_arch (priv_data->this_frame);
  for (i = 0; i < gdbarch_num_regs (frame_arch); i++)
    if (priv_data->registers[i] && priv_data->registers[i]->free)
      priv_data->registers[i]->free (priv_data->registers[i]);
  xfree (priv_data->registers);
  xfree (priv_data);
}
static void jit_dealloc_cache ( struct frame_info * this_frame , void * cache ) { struct jit_unwind_private * priv_data = cache ; struct gdbarch * frame_arch ; int i ; gdb_assert ( priv_data -> registers ) ; frame_arch = get_frame_arch ( priv_data -> this_frame ) ; for ( i = 0 ; i < gdbarch_num_regs ( frame_arch ) ; i ++ ) if ( priv_data -> registers [ i ] && priv_data -> registers [ i ] -> free ) priv_data -> registers [ i ] -> free ( priv_data -> registers [ i ] ) ; xfree ( priv_data -> registers ) ; xfree ( priv_data ) ; }
gdb_reg_value has a free function, which must be called on each
saved register value.
gdb_reg_value has a free function which must be called on each saved register value .