gdb/
[deliverable/binutils-gdb.git] / sim / ppc / psim.c
index d814486be330206de34f0afc1966f731a859fa60..183b9f2475b21261cd10434ef4d2da7c80a9142f 100644 (file)
@@ -4,7 +4,7 @@
 
     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 of the License, or
+    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,
@@ -13,8 +13,7 @@
     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.
+    along with this program; if not, see <http://www.gnu.org/licenses/>.
  
     */
 
@@ -359,7 +358,7 @@ psim_options(device *root,
        else if (strcmp (argv[argp], "--help") == 0)
          psim_usage (0, 1);
        else if (strncmp (argv[argp], "--sysroot=",
-                         sizeof ("--sysroot=")) == 0)
+                         sizeof ("--sysroot=") - 1) == 0)
          /* Ignore this option.  */
          p = argv[argp] + strlen(argv[argp]) - 1;
        else if (strcmp (argv[argp], "--version") == 0)
@@ -592,7 +591,7 @@ cntrl_c_simulation(void *data)
   psim_halt(system,
            psim_nr_cpus(system),
            was_continuing,
-           TARGET_SIGNAL_INT);
+           GDB_SIGNAL_INT);
 }
 
 INLINE_PSIM\
This page took 0.024949 seconds and 4 git commands to generate.