X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sim%2Fmcore%2Finterp.c;h=60931cd8801b90f69a34c7ee2cec52dbe1876c1a;hb=7b6bb8daaceb9ecf3f42dea57ae82733d6a3b2f6;hp=bf04ed9968f2e7fd064f2d81be61c60fb5c12d4d;hpb=6b4a89357a450b6d6bd517fe435bb15e17038f24;p=thirdparty%2Fbinutils-gdb.git
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c
index bf04ed9968f..60931cd8801 100644
--- a/sim/mcore/interp.c
+++ b/sim/mcore/interp.c
@@ -1,22 +1,22 @@
/* Simulator for Motorola's MCore processor
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2002, 2003, 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
This file is part of GDB, the GNU debugger.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation, Inc.,
-59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+You should have received a copy of the GNU General Public License
+along with this program. If not, see . */
#include
#include "sysdep.h"
@@ -1718,7 +1718,7 @@ int
sim_write (sd, addr, buffer, size)
SIM_DESC sd;
SIM_ADDR addr;
- unsigned char * buffer;
+ const unsigned char * buffer;
int size;
{
int i;
@@ -1981,9 +1981,11 @@ sim_load (sd, prog, abfd, from_tty)
/* figure the end of the bss section */
#if 0
printf ("bss section at 0x%08x for 0x%08x bytes\n",
- (unsigned long) s_bss->vma , (unsigned long) s_bss->_cooked_size);
+ (unsigned long) bfd_get_section_vma (handle, s_bss),
+ (unsigned long) bfd_section_size (handle, s_bss));
#endif
- heap_ptr = (unsigned long) s_bss->vma + (unsigned long) s_bss->_cooked_size;
+ heap_ptr = ((unsigned long) bfd_get_section_vma (handle, s_bss)
+ + (unsigned long) bfd_section_size (handle, s_bss));
/* Clean up after ourselves. */
bfd_close (handle);