contrib/gdb-7/gdb/jit.c
static struct gdb_reg_value *
jit_unwind_reg_get_impl (struct gdb_unwind_callbacks *cb, int regnum)
{
  struct jit_unwind_private *priv;
  struct gdb_reg_value *value;
  int gdb_reg, size;
  struct gdbarch *frame_arch;

  priv = cb->priv_data;
  frame_arch = get_frame_arch (priv->this_frame);

  gdb_reg = gdbarch_dwarf2_reg_to_regnum (frame_arch, regnum);
  size = register_size (frame_arch, gdb_reg);
  value = xmalloc (sizeof (struct gdb_reg_value) + size - 1);
  value->defined = frame_register_read (priv->this_frame, gdb_reg,
                                        value->value);
  value->size = size;
  value->free = reg_value_free_impl;
  return value;
}
/* Get the value of register REGNUM in the previous frame.  */
Get the value of register REGNUM in the previous frame.
Get the value of register REGNUM in the previous frame .
static struct gdb_reg_value *
jit_unwind_reg_get_impl (struct gdb_unwind_callbacks *cb, int regnum)
{
  struct jit_unwind_private *priv;
  struct gdb_reg_value *value;
  int gdb_reg, size;
  struct gdbarch *frame_arch;
  priv = cb->priv_data;
  frame_arch = get_frame_arch (priv->this_frame);
  gdb_reg = gdbarch_dwarf2_reg_to_regnum (frame_arch, regnum);
  size = register_size (frame_arch, gdb_reg);
  value = xmalloc (sizeof (struct gdb_reg_value) + size - 1);
  value->defined = frame_register_read (priv->this_frame, gdb_reg,
                                        value->value);
  value->size = size;
  value->free = reg_value_free_impl;
  return value;
}
static struct gdb_reg_value * jit_unwind_reg_get_impl ( struct gdb_unwind_callbacks * cb , int regnum ) { struct jit_unwind_private * priv ; struct gdb_reg_value * value ; int gdb_reg , size ; struct gdbarch * frame_arch ; priv = cb -> priv_data ; frame_arch = get_frame_arch ( priv -> this_frame ) ; gdb_reg = gdbarch_dwarf2_reg_to_regnum ( frame_arch , regnum ) ; size = register_size ( frame_arch , gdb_reg ) ; value = xmalloc ( sizeof ( struct gdb_reg_value ) + size - 1 ) ; value -> defined = frame_register_read ( priv -> this_frame , gdb_reg , value -> value ) ; value -> size = size ; value -> free = reg_value_free_impl ; return value ; }
Get the value of register REGNUM in the previous frame.
Get the value of register REGNUM in the previous frame .