contrib/gdb-7/gdb/jit.c
static struct bfd *
bfd_open_from_target_memory (CORE_ADDR addr, ULONGEST size, char *target)
{
  const char *filename = xstrdup ("<in-memory>");
  struct target_buffer *buffer = xmalloc (sizeof (struct target_buffer));

  buffer->base = addr;
  buffer->size = size;
  return bfd_openr_iovec (filename, target,
                          mem_bfd_iovec_open,
                          buffer,
                          mem_bfd_iovec_pread,
                          mem_bfd_iovec_close,
                          mem_bfd_iovec_stat);
}
/* Open a BFD from the target's memory.  */
Open a BFD from the target's memory.
Open a BFD from the target ' s memory .
static struct bfd *
bfd_open_from_target_memory (CORE_ADDR addr, ULONGEST size, char *target)
{
  const char *filename = xstrdup ("<in-memory>");
  struct target_buffer *buffer = xmalloc (sizeof (struct target_buffer));
  buffer->base = addr;
  buffer->size = size;
  return bfd_openr_iovec (filename, target,
                          mem_bfd_iovec_open,
                          buffer,
                          mem_bfd_iovec_pread,
                          mem_bfd_iovec_close,
                          mem_bfd_iovec_stat);
}
static struct bfd * bfd_open_from_target_memory ( CORE_ADDR addr , ULONGEST size , char * target ) { const char * filename = xstrdup ( " " ) ; struct target_buffer * buffer = xmalloc ( sizeof ( struct target_buffer ) ) ; buffer -> base = addr ; buffer -> size = size ; return bfd_openr_iovec ( filename , target , mem_bfd_iovec_open , buffer , mem_bfd_iovec_pread , mem_bfd_iovec_close , mem_bfd_iovec_stat ) ; }
Open a BFD from the target's memory.
Open a BFD from the target ' s memory .