From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31336 invoked by alias); 4 Aug 2004 20:45:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31306 invoked from network); 4 Aug 2004 20:45:00 -0000 Received: from unknown (HELO e31.co.us.ibm.com) (32.97.110.129) by sourceware.org with SMTP; 4 Aug 2004 20:45:00 -0000 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e31.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id i74KixgM412416 for ; Wed, 4 Aug 2004 16:44:59 -0400 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i74Kivu7197310 for ; Wed, 4 Aug 2004 14:44:57 -0600 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id i74KiusQ056884 for ; Wed, 4 Aug 2004 15:44:56 -0500 Date: Wed, 04 Aug 2004 20:45:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb@sources.redhat.com Subject: testcase help Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-08/txt/msg00044.txt.bz2 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 + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++