public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* testcase help
@ 2004-08-04 20:45 Manoj Iyer
  2004-08-04 22:44 ` Michael Chastain
  0 siblings, 1 reply; 5+ messages in thread
From: Manoj Iyer @ 2004-08-04 20:45 UTC (permalink / raw)
  To: gdb


I am writing a testcase for gdb in which I want to make GDB continue to
the next breakpoint, so I used gdb_continue "FUNC" to get to the
next breakpoint.

Here is the problem that I have ...

============ testcase code ================
gdb_continue "tf"
gdb_expect {
    -re "Breakpoint .* at .*\r\n$gdb_prompt $" {
        pass "continue to tf";
    }
    -re ".*$gdb_prompt $" {
        fail "continue to tf";
        gdb_suppress_tests;
    }
    timeout {
        fail "continue to tf (timeout)";
        gdb_suppress_tests;
    }
}

=========== Out put ==============
continue
30          for (n = 0; n < N; ++n)
(gdb) FAIL: gdb.threads/thread_break.exp: continue to tf
continue
Continuing.
[New Thread 32769 (LWP 29005)]
[New Thread 16386 (LWP 29006)]
[Switching to Thread 16386 (LWP 29006)]

Breakpoint 2, tf (arg=0x0) at gdb.threads/tbug.c:14
14          int n = (int) (long int) arg;
(gdb) PASS: gdb.threads/thread_break.exp: continue to tf

but a gdb_expect with correct parameters catches this continue as success.
I cannot get it to continue correctly with send_gdb "continue" that is why
I used gdb_continue.

What am I doing wrong?

Thanks
----- ----
Manoj Iyer
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cognito ergo sum                                                          +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-06  6:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-04 20:45 testcase help Manoj Iyer
2004-08-04 22:44 ` Michael Chastain
2004-08-05 15:35   ` Manoj Iyer
2004-08-05 23:26     ` thread testcase compile issue (question) Manoj Iyer
2004-08-06  6:09       ` Michael Chastain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).