]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Don't run forever in execl-update-breakpoint.exp
authorPedro Alves <palves@redhat.com>
Mon, 28 Mar 2016 23:23:09 +0000 (00:23 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 19 Sep 2016 14:44:42 +0000 (15:44 +0100)
gdb/testsuite/gdb.base/execl-update-breakpoints.c

index 38f1cea6ea04ca22072a6c91c17a27735bd7766b..ed389aba45cebb30cbfad6d560d1da9f3beda2ce 100644 (file)
@@ -36,6 +36,8 @@ main (int argc, char **argv)
   memcpy (bin, argv[0], len + 1);
   if (bin[len - 1] == '1')
     bin[len - 1] = '2';
+  else
+    exit (1);
 
   execl (bin, bin, (char *) NULL);
   perror ("execl failed");