diff options
author | Pedro Alves <palves@redhat.com> | 2014-03-19 15:22:44 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-03-19 15:48:47 +0000 |
commit | e2f6c966284e2f204779e9c7becf260bd4fe5117 (patch) | |
tree | 2f4da0de2c2fc6bdb2a7803fe0492bab01b73dbc /gdb/testsuite/gdb.base/async.c | |
parent | c30568d4d17d1a1efa62d2f36651fd0228b0b8e5 (diff) | |
download | gdb-e2f6c966284e2f204779e9c7becf260bd4fe5117.zip gdb-e2f6c966284e2f204779e9c7becf260bd4fe5117.tar.gz gdb-e2f6c966284e2f204779e9c7becf260bd4fe5117.tar.bz2 |
gdb.base/async.exp: Don't hardcode line numbers.
gdb/testsuite/
2014-03-19 Pedro Alves <palves@redhat.com>
* gdb.base/async.c (main): Add "jump here" and "until here" line
marker comments.
* gdb.base/async.exp (jump_here): New global.
(jump& test): Use it.
(until_here): New global.
(until& test): Use it.
Diffstat (limited to 'gdb/testsuite/gdb.base/async.c')
-rw-r--r-- | gdb/testsuite/gdb.base/async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/async.c b/gdb/testsuite/gdb.base/async.c index 0d9c875..fb53082 100644 --- a/gdb/testsuite/gdb.base/async.c +++ b/gdb/testsuite/gdb.base/async.c @@ -30,9 +30,9 @@ main () z = 9; y = foo (); z = y; - y = y + 2; + y = y + 2; /* jump here */ y = baz (); - return 0; + return 0; /* until here */ } |