summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>2003-02-06 18:26:20 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>2003-02-06 18:26:20 +0000
commit50f9f3c53d22bd9c00480468cf6460011eae2505 (patch)
tree9374b80229484421cc5c04982163987f9861f80e /gdb/testsuite/gdb.mi
parentd7b7c99cbcf09ba2cb71d2ecf4bf4ff5c6326207 (diff)
downloadgdb-50f9f3c53d22bd9c00480468cf6460011eae2505.tar.gz
2003-02-06 Jason Molenda (jason-cl@molenda.com)
* gdb.mi/mi-syn-frame.c (subroutine): Add a comment explaining why the code is written that way.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-syn-frame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-syn-frame.c b/gdb/testsuite/gdb.mi/mi-syn-frame.c
index a0da3c42b86..580b5342716 100644
--- a/gdb/testsuite/gdb.mi/mi-syn-frame.c
+++ b/gdb/testsuite/gdb.mi/mi-syn-frame.c
@@ -43,6 +43,10 @@ handler (int sig)
subroutine (sig);
}
+/* The first statement in subroutine () is a place for a breakpoint.
+ Without it, the breakpoint is put on the while comparison and will
+ be hit at each iteration. */
+
void
subroutine (int in)
{