contrib/gdb-7/gdb/jit.c
static struct value *
jit_frame_prev_register (struct frame_info *this_frame, void **cache, int reg)
{
  struct jit_unwind_private *priv = *cache;
  struct gdb_reg_value *value;

  if (priv == NULL)
    return frame_unwind_got_optimized (this_frame, reg);

  gdb_assert (priv->registers);
  value = priv->registers[reg];
  if (value && value->defined)
    return frame_unwind_got_bytes (this_frame, reg, value->value);
  else
    return frame_unwind_got_optimized (this_frame, reg);
}
/* Pseudo unwinder function.  Reads the previously fetched value for
   the register from the cache.  */
Pseudo unwinder function.  Reads the previously fetched value for
the register from the cache.
Pseudo unwinder function . Reads the previously fetched value for the register from the cache .
static struct value *
jit_frame_prev_register (struct frame_info *this_frame, void **cache, int reg)
{
  struct jit_unwind_private *priv = *cache;
  struct gdb_reg_value *value;
  if (priv == NULL)
    return frame_unwind_got_optimized (this_frame, reg);
  gdb_assert (priv->registers);
  value = priv->registers[reg];
  if (value && value->defined)
    return frame_unwind_got_bytes (this_frame, reg, value->value);
  else
    return frame_unwind_got_optimized (this_frame, reg);
}
static struct value * jit_frame_prev_register ( struct frame_info * this_frame , void * * cache , int reg ) { struct jit_unwind_private * priv = * cache ; struct gdb_reg_value * value ; if ( priv == NULL ) return frame_unwind_got_optimized ( this_frame , reg ) ; gdb_assert ( priv -> registers ) ; value = priv -> registers [ reg ] ; if ( value && value -> defined ) return frame_unwind_got_bytes ( this_frame , reg , value -> value ) ; else return frame_unwind_got_optimized ( this_frame , reg ) ; }
Pseudo unwinder function.
Pseudo unwinder function .