gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / coremaker.c
index 22c14427adc7e1fec1c757d28f3025c32b964559..3cc97e1e8e5931dfdfd49cf718a780b4693dfafd 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 1992-2014 Free Software Foundation, Inc.
+/* Copyright 1992-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -77,7 +77,7 @@ mmapdata ()
   /* Now map the file into our address space as buf2 */
 
   buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
-  if (buf2 == (char *) -1)
+  if (buf2 == (char *) MAP_FAILED)
     {
       perror ("mmap failed");
       return;
This page took 0.028209 seconds and 4 git commands to generate.