From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24168 invoked by alias); 28 Apr 2006 17:40:41 -0000 Received: (qmail 24158 invoked by uid 22791); 28 Apr 2006 17:40:40 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Apr 2006 17:40:38 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id DDF1848CC0F for ; Fri, 28 Apr 2006 13:40:36 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06891-01-7 for ; Fri, 28 Apr 2006 13:40:36 -0400 (EDT) Received: from takamaka.act-europe.fr (s142-179-108-108.bc.hsia.telus.net [142.179.108.108]) by nile.gnat.com (Postfix) with ESMTP id 51F0D48CC00 for ; Fri, 28 Apr 2006 13:40:36 -0400 (EDT) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id C00FF47E7F; Fri, 28 Apr 2006 10:40:35 -0700 (PDT) Date: Fri, 28 Apr 2006 17:40:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA/testsuite] check bt problem after 2 steps is gone Message-ID: <20060428174035.GF930@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline User-Agent: Mutt/1.4i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00368.txt.bz2 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 488 Hello, This is a new testcase that checks that the issue reported in: http://sources.redhat.com/ml/gdb-patches/2006-04/msg00367.html will not regress again. 2006-04-28 Joel Brobecker * gdb.base/step-bt.c: New file. * gdb.base/step-bt.exp: New testcase. Tested on i686-pc-cygwin. on XFAIL on the last test with the current sources, all PASSes once the patch in the message mentioned above is applied. OK to apply? Thanks, -- Joel --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="step-bt.c" Content-length: 1032 /* This testcase is part of GDB, the GNU debugger. Copyright 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Please email any bugs, comments, and/or additions to this file to: bug-gdb@prep.ai.mit.edu */ #include void hello (void) { printf ("Hello world.\n"); } int main (void) { hello (); return 0; } --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="step-bt.exp" Content-length: 1913 # Copyright 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # The intent of this testcase it to verify that various aliases and # shortcuts of the "delete" command never stop working. if $tracelevel then { strace $tracelevel } set prms_id 0 set bug_id 0 set testfile step-bt set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { untested "Couldn't compile test program" return -1 } # Get things started. gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} gdb_test "break *hello" \ "Breakpoint.*at.* file .*$srcfile, line .*" \ "breakpoint at first instruction of hello()" gdb_run_cmd gdb_expect { -re ".*Breakpoint.* hello .* at .*$srcfile:.*$gdb_prompt $" { pass "run to hello()" } -re ".*$gdb_prompt $" { fail "run to hello()" return -1 } timeout { fail "run to hello() (timeout)" return -1 } } gdb_test "stepi 2" \ "" \ "step 2 instructions" gdb_test "bt" \ "#0 +0x\[0-9a-z\]+ in hello .*#1 +0x\[0-9a-z\]* in main.*" \ "backtrace after two instruction steps" --a8Wt8u1KmwUX3Y2C--