aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-syn-frame.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2003-02-06 06:27:01 +0000
committerJason Molenda <jmolenda@apple.com>2003-02-06 06:27:01 +0000
commit5d0331e5f28a2d99afccf29e9b2805cd3b13e122 (patch)
treef133bc424d289c32b63fefaee9839045f2453443 /gdb/testsuite/gdb.mi/mi-syn-frame.c
parent4a8f6654af815d1dc2e36a60d270f21fcb91d13e (diff)
downloadgdb-5d0331e5f28a2d99afccf29e9b2805cd3b13e122.zip
gdb-5d0331e5f28a2d99afccf29e9b2805cd3b13e122.tar.gz
gdb-5d0331e5f28a2d99afccf29e9b2805cd3b13e122.tar.bz2
2003-02-05 Jason Molenda (jason-cl@molenda.com)
* gdb.mi/mi-syn-frames.c (subroutine): Add an extra statement at the beginning so the breakpoint doesn't get set on the loop.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-syn-frame.c')
-rw-r--r--gdb/testsuite/gdb.mi/mi-syn-frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-syn-frame.c b/gdb/testsuite/gdb.mi/mi-syn-frame.c
index 83d2d46..a0da3c4 100644
--- a/gdb/testsuite/gdb.mi/mi-syn-frame.c
+++ b/gdb/testsuite/gdb.mi/mi-syn-frame.c
@@ -46,8 +46,9 @@ handler (int sig)
void
subroutine (int in)
{
- while (in < 100)
- in++;
+ int count = in;
+ while (count < 100)
+ count++;
}
void