contrib/gdb-7/gdb/jit.c
static void
jit_register_code (struct gdbarch *gdbarch,
                   CORE_ADDR entry_addr, struct jit_code_entry *code_entry)
{
  int i, success;
  const struct bfd_arch_info *b;
  struct jit_inferior_data *inf_data = get_jit_inferior_data ();

  if (jit_debug)
    fprintf_unfiltered (gdb_stdlog,
                        "jit_register_code, symfile_addr = %s, "
                        "symfile_size = %s\n",
                        paddress (gdbarch, code_entry->symfile_addr),
                        pulongest (code_entry->symfile_size));

  success = jit_reader_try_read_symtab (code_entry, entry_addr);

  if (!success)
    jit_bfd_try_read_symtab (code_entry, entry_addr, gdbarch);
}
/* This function registers code associated with a JIT code entry.  It uses the
   pointer and size pair in the entry to read the symbol file from the remote
   and then calls symbol_file_add_from_local_memory to add it as though it were
   a symbol file added by the user.  */
This function registers code associated with a JIT code entry.  It uses the
pointer and size pair in the entry to read the symbol file from the remote
and then calls symbol_file_add_from_local_memory to add it as though it were
a symbol file added by the user.
This function registers code associated with a JIT code entry . It uses the pointer and size pair in the entry to read the symbol file from the remote and then calls symbol_file_add_from_local_memory to add it as though it were a symbol file added by the user .
static void
jit_register_code (struct gdbarch *gdbarch,
                   CORE_ADDR entry_addr, struct jit_code_entry *code_entry)
{
  int i, success;
  const struct bfd_arch_info *b;
  struct jit_inferior_data *inf_data = get_jit_inferior_data ();
  if (jit_debug)
    fprintf_unfiltered (gdb_stdlog,
                        "jit_register_code, symfile_addr = %s, "
                        "symfile_size = %s\n",
                        paddress (gdbarch, code_entry->symfile_addr),
                        pulongest (code_entry->symfile_size));
  success = jit_reader_try_read_symtab (code_entry, entry_addr);
  if (!success)
    jit_bfd_try_read_symtab (code_entry, entry_addr, gdbarch);
}
static void jit_register_code ( struct gdbarch * gdbarch , CORE_ADDR entry_addr , struct jit_code_entry * code_entry ) { int i , success ; const struct bfd_arch_info * b ; struct jit_inferior_data * inf_data = get_jit_inferior_data ( ) ; if ( jit_debug ) fprintf_unfiltered ( gdb_stdlog , " " " \n " , paddress ( gdbarch , code_entry -> symfile_addr ) , pulongest ( code_entry -> symfile_size ) ) ; success = jit_reader_try_read_symtab ( code_entry , entry_addr ) ; if ( ! success ) jit_bfd_try_read_symtab ( code_entry , entry_addr , gdbarch ) ; }
This function registers code associated with a JIT code entry.
This function registers code associated with a JIT code entry .