contrib/gdb-7/gdb/jit.c
static int
mem_bfd_iovec_stat (struct bfd *abfd, void *stream, struct stat *sb)
{
  struct target_buffer *buffer = (struct target_buffer*) stream;

  sb->st_size = buffer->size;
  return 0;
}
/* For statting the file, we only support the st_size attribute.  */
For statting the file, we only support the st_size attribute.
For statting the file we only support the st_size attribute .
static int
mem_bfd_iovec_stat (struct bfd *abfd, void *stream, struct stat *sb)
{
  struct target_buffer *buffer = (struct target_buffer*) stream;
  sb->st_size = buffer->size;
  return 0;
}
static int mem_bfd_iovec_stat ( struct bfd * abfd , void * stream , struct stat * sb ) { struct target_buffer * buffer = ( struct target_buffer * ) stream ; sb -> st_size = buffer -> size ; return 0 ; }
For statting the file, we only support the st_size attribute.
For statting the file we only support the st_size attribute .