OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [bfd/] [bfdwin.c] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
/* Support for memory-mapped windows into a BFD.
/* Support for memory-mapped windows into a BFD.
   Copyright 1995, 1996, 2001, 2002, 2003, 2005, 2007, 2008
   Copyright 1995, 1996, 2001, 2002, 2003, 2005, 2007, 2008, 2009
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
   Written by Cygnus Support.
   Written by Cygnus Support.
 
 
   This file is part of BFD, the Binary File Descriptor library.
   This file is part of BFD, the Binary File Descriptor library.
 
 
Line 23... Line 23...
#include "sysdep.h"
#include "sysdep.h"
 
 
#include "bfd.h"
#include "bfd.h"
#include "libbfd.h"
#include "libbfd.h"
 
 
/* Currently, if USE_MMAP is undefined, none if the window stuff is
/* Currently, if USE_MMAP is undefined, none of the window stuff is
   used.  Okay, so it's mis-named.  At least the command-line option
   used.  Enabled by --with-mmap.  */
   "--without-mmap" is more obvious than "--without-windows" or some
 
   such.  */
 
 
 
#ifdef USE_MMAP
#ifdef USE_MMAP
 
 
#undef HAVE_MPROTECT /* code's not tested yet */
#undef HAVE_MPROTECT /* code's not tested yet */
 
 
Line 78... Line 76...
  if (i == 0)
  if (i == 0)
    return;
    return;
  i->refcount--;
  i->refcount--;
  if (debug_windows)
  if (debug_windows)
    fprintf (stderr, "freeing window @%p<%p,%lx,%p>\n",
    fprintf (stderr, "freeing window @%p<%p,%lx,%p>\n",
             windowp, windowp->data, windowp->size, windowp->i);
             windowp, windowp->data, (unsigned long) windowp->size, windowp->i);
  if (i->refcount != 0)
  if (i->refcount != 0)
    return;
    return;
 
 
  if (i->mapped)
  if (i->mapped)
    {
    {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.