aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-03-29 00:23:09 +0100
committerPedro Alves <palves@redhat.com>2016-09-19 15:44:42 +0100
commite14ac25777019dec79606d6901e84846d8e9b83f (patch)
treec4ea48aa0a2bdc43bd1e08351137cb5992c6b27f
parent8f15b2c1d696bccd82269e072a80f2dc67ee2119 (diff)
downloadgdb-e14ac25777019dec79606d6901e84846d8e9b83f.zip
gdb-e14ac25777019dec79606d6901e84846d8e9b83f.tar.gz
gdb-e14ac25777019dec79606d6901e84846d8e9b83f.tar.bz2
Don't run forever in execl-update-breakpoint.exp
-rw-r--r--gdb/testsuite/gdb.base/execl-update-breakpoints.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/execl-update-breakpoints.c b/gdb/testsuite/gdb.base/execl-update-breakpoints.c
index 38f1cea..ed389ab 100644
--- a/gdb/testsuite/gdb.base/execl-update-breakpoints.c
+++ b/gdb/testsuite/gdb.base/execl-update-breakpoints.c
@@ -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");