contrib/gdb-7/gdb/jit.c
static int
jit_breakpoint_re_set_internal (struct gdbarch *gdbarch,
				struct jit_inferior_data *inf_data)
{
  if (inf_data->breakpoint_addr == 0)
    {
      struct minimal_symbol *reg_symbol;

      /* Lookup the registration symbol.  If it is missing, then we assume
	 we are not attached to a JIT.  */
      reg_symbol = lookup_minimal_symbol (jit_break_name, NULL, NULL);
      if (reg_symbol == NULL)
	return 1;
      inf_data->breakpoint_addr = SYMBOL_VALUE_ADDRESS (reg_symbol);
      if (inf_data->breakpoint_addr == 0)
	return 2;

      /* If we have not read the jit descriptor yet (e.g. because the JITer
	 itself is in a shared library which just got loaded), do so now.  */
      if (inf_data->descriptor_addr == 0)
	jit_inferior_init (gdbarch);
    }
  else
    return 0;

  if (jit_debug)
    fprintf_unfiltered (gdb_stdlog,
			"jit_breakpoint_re_set_internal, "
			"breakpoint_addr = %s\n",
			paddress (gdbarch, inf_data->breakpoint_addr));

  /* Put a breakpoint in the registration symbol.  */
  create_jit_event_breakpoint (gdbarch, inf_data->breakpoint_addr);

  return 0;
}
/* (Re-)Initialize the jit breakpoint if necessary.
   Return 0 on success.  */
(Re-)Initialize the jit breakpoint if necessary.
Return 0 on success.
( Re - ) Initialize the jit breakpoint if necessary . Return 0 on success .
static int
jit_breakpoint_re_set_internal (struct gdbarch *gdbarch,
				struct jit_inferior_data *inf_data)
{
  if (inf_data->breakpoint_addr == 0)
    {
      struct minimal_symbol *reg_symbol;
      reg_symbol = lookup_minimal_symbol (jit_break_name, NULL, NULL);
      if (reg_symbol == NULL)
	return 1;
      inf_data->breakpoint_addr = SYMBOL_VALUE_ADDRESS (reg_symbol);
      if (inf_data->breakpoint_addr == 0)
	return 2;
      if (inf_data->descriptor_addr == 0)
	jit_inferior_init (gdbarch);
    }
  else
    return 0;
  if (jit_debug)
    fprintf_unfiltered (gdb_stdlog,
			"jit_breakpoint_re_set_internal, "
			"breakpoint_addr = %s\n",
			paddress (gdbarch, inf_data->breakpoint_addr));
  create_jit_event_breakpoint (gdbarch, inf_data->breakpoint_addr);
  return 0;
}
static int jit_breakpoint_re_set_internal ( struct gdbarch * gdbarch , struct jit_inferior_data * inf_data ) { if ( inf_data -> breakpoint_addr == 0 ) { struct minimal_symbol * reg_symbol ; reg_symbol = lookup_minimal_symbol ( jit_break_name , NULL , NULL ) ; if ( reg_symbol == NULL ) return 1 ; inf_data -> breakpoint_addr = SYMBOL_VALUE_ADDRESS ( reg_symbol ) ; if ( inf_data -> breakpoint_addr == 0 ) return 2 ; if ( inf_data -> descriptor_addr == 0 ) jit_inferior_init ( gdbarch ) ; } else return 0 ; if ( jit_debug ) fprintf_unfiltered ( gdb_stdlog , " " " \n " , paddress ( gdbarch , inf_data -> breakpoint_addr ) ) ; create_jit_event_breakpoint ( gdbarch , inf_data -> breakpoint_addr ) ; return 0 ; }
(Re-)Initialize the jit breakpoint if necessary.
( Re - ) Initialize the jit breakpoint if necessary .
/* Lookup the registration symbol.  If it is missing, then we assume
	 we are not attached to a JIT.  */ /* If we have not read the jit descriptor yet (e.g. because the JITer
	 itself is in a shared library which just got loaded), do so now.  */ /* Put a breakpoint in the registration symbol.  */