contrib/gdb-7/gdb/linespec.c
static struct symtabs_and_lines
decode_indirect (struct linespec_state *self, char **argptr)
{
  struct symtabs_and_lines values;
  CORE_ADDR pc;
  char *initial = *argptr;
  
  if (current_program_space->executing_startup)
    /* The error message doesn't really matter, because this case
       should only hit during breakpoint reset.  */
    throw_error (NOT_FOUND_ERROR, _("cannot evaluate expressions while "
				    "program space is in startup"));

  (*argptr)++;
  pc = value_as_address (parse_to_comma_and_eval (argptr));

  values.sals = (struct symtab_and_line *)
    xmalloc (sizeof (struct symtab_and_line));

  values.nelts = 1;
  values.sals[0] = find_pc_line (pc, 0);
  values.sals[0].pc = pc;
  values.sals[0].section = find_pc_overlay (pc);
  values.sals[0].explicit_pc = 1;

  if (self->canonical)
    self->canonical->addr_string = savestring (initial, *argptr - initial);

  return values;
}
/* Decode arg of the form *PC.  */
Decode arg of the form *PC.
Decode arg of the form * PC .
static struct symtabs_and_lines
decode_indirect (struct linespec_state *self, char **argptr)
{
  struct symtabs_and_lines values;
  CORE_ADDR pc;
  char *initial = *argptr;
  if (current_program_space->executing_startup)
    throw_error (NOT_FOUND_ERROR, _("cannot evaluate expressions while "
				    "program space is in startup"));
  (*argptr)++;
  pc = value_as_address (parse_to_comma_and_eval (argptr));
  values.sals = (struct symtab_and_line *)
    xmalloc (sizeof (struct symtab_and_line));
  values.nelts = 1;
  values.sals[0] = find_pc_line (pc, 0);
  values.sals[0].pc = pc;
  values.sals[0].section = find_pc_overlay (pc);
  values.sals[0].explicit_pc = 1;
  if (self->canonical)
    self->canonical->addr_string = savestring (initial, *argptr - initial);
  return values;
}
static struct symtabs_and_lines decode_indirect ( struct linespec_state * self , char * * argptr ) { struct symtabs_and_lines values ; CORE_ADDR pc ; char * initial = * argptr ; if ( current_program_space -> executing_startup ) throw_error ( NOT_FOUND_ERROR , _ ( " " " " ) ) ; ( * argptr ) ++ ; pc = value_as_address ( parse_to_comma_and_eval ( argptr ) ) ; values . sals = ( struct symtab_and_line * ) xmalloc ( sizeof ( struct symtab_and_line ) ) ; values . nelts = 1 ; values . sals [ 0 ] = find_pc_line ( pc , 0 ) ; values . sals [ 0 ] . pc = pc ; values . sals [ 0 ] . section = find_pc_overlay ( pc ) ; values . sals [ 0 ] . explicit_pc = 1 ; if ( self -> canonical ) self -> canonical -> addr_string = savestring ( initial , * argptr - initial ) ; return values ; }
Decode arg of the form *PC.
Decode arg of the form * PC .
/* The error message doesn't really matter, because this case
       should only hit during breakpoint reset.  */