From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27440 invoked by alias); 11 Mar 2004 01:22:35 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27433 invoked from network); 11 Mar 2004 01:22:35 -0000 Received: from unknown (HELO hall.mail.mindspring.net) (207.69.200.60) by sources.redhat.com with SMTP; 11 Mar 2004 01:22:35 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by hall.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1B1EuB-0005zu-00 for gdb-patches@sources.redhat.com; Wed, 10 Mar 2004 20:22:35 -0500 Received: by berman.michael-chastain.com (Postfix, from userid 502) id ABDC44B104; Wed, 10 Mar 2004 20:22:36 -0500 (EST) To: gdb-patches@sources.redhat.com Subject: [rfa/testsuite] gdb1250.exp: Handle pending breakpoint in shared library Message-Id: <20040311012236.ABDC44B104@berman.michael-chastain.com> Date: Fri, 19 Mar 2004 00:09:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-03/txt/msg00260.txt.bz2 Here is another attempt to fix gdb1250.exp so that it works with the new 'pending breakpoint' feature. I would like to get this fixed so that I can take it off my list of regressions for binutils binutils-2_15-branch versus binutils 2.14. Tested on: native i686-pc-linux-gnu, gcc 2.95.3 3.3.3 HEAD, binutils 2.14 binutils-2_15-branch HEAD, dwarf-2 stabs+. I'm not sure that "run" is the right command to issue to start running the inferior. If it's not the right command, I would be happy to change it. Okay to commit? Michael C 2004-03-10 Michael Chastain * gdb.base/gdb1250.exp: Accommodate a pending breakpoint in a shared library. Index: gdb1250.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gdb1250.exp,v retrieving revision 1.1 diff -c -3 -p -r1.1 gdb1250.exp *** gdb1250.exp 15 Jul 2003 16:28:21 -0000 1.1 --- gdb1250.exp 11 Mar 2004 01:17:07 -0000 *************** *** 1,4 **** ! # Copyright 2003 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 --- 1,4 ---- ! # Copyright 2003, 2004 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 *************** gdb_start *** 42,51 **** gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} ! if ![runto abort] then { ! perror "couldn't run to breakpoint" ! continue } # See http://sources.redhat.com/gdb/bugs/1250 # --- 42,62 ---- gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} ! # Run on 'abort'. 'abort' is special because gcc knows that it is a ! # no-return function, so gcc does a special optimization in every ! # caller of 'abort'. ! ! set name "break abort" ! gdb_test_multiple "break abort" $name { ! -re "Function \"abort\" not defined\.\r\nMake breakpoint pending on future shared library load\\? \\(y or \\\[n\\\]\\) $" { ! gdb_test "y" "" $name ! } ! -re "Breakpoint $decimal at .*\r\n$gdb_prompt $" { ! pass $name ! } } + + gdb_test "run" "Breakpoint $decimal.*abort.*" "run to abort" # See http://sources.redhat.com/gdb/bugs/1250 # From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27440 invoked by alias); 11 Mar 2004 01:22:35 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27433 invoked from network); 11 Mar 2004 01:22:35 -0000 Received: from unknown (HELO hall.mail.mindspring.net) (207.69.200.60) by sources.redhat.com with SMTP; 11 Mar 2004 01:22:35 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by hall.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1B1EuB-0005zu-00 for gdb-patches@sources.redhat.com; Wed, 10 Mar 2004 20:22:35 -0500 Received: by berman.michael-chastain.com (Postfix, from userid 502) id ABDC44B104; Wed, 10 Mar 2004 20:22:36 -0500 (EST) To: gdb-patches@sources.redhat.com Subject: [rfa/testsuite] gdb1250.exp: Handle pending breakpoint in shared library Message-ID: <20040311012236.ABDC44B104@berman.michael-chastain.com> Date: Thu, 11 Mar 2004 01:22:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-03.o/txt/msg00260.txt Message-ID: <20040311012200.ckk95AL8SeANMgElab2EEE63ON83HqmIVGpt-xh-AlI@z> Here is another attempt to fix gdb1250.exp so that it works with the new 'pending breakpoint' feature. I would like to get this fixed so that I can take it off my list of regressions for binutils binutils-2_15-branch versus binutils 2.14. Tested on: native i686-pc-linux-gnu, gcc 2.95.3 3.3.3 HEAD, binutils 2.14 binutils-2_15-branch HEAD, dwarf-2 stabs+. I'm not sure that "run" is the right command to issue to start running the inferior. If it's not the right command, I would be happy to change it. Okay to commit? Michael C 2004-03-10 Michael Chastain * gdb.base/gdb1250.exp: Accommodate a pending breakpoint in a shared library. Index: gdb1250.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gdb1250.exp,v retrieving revision 1.1 diff -c -3 -p -r1.1 gdb1250.exp *** gdb1250.exp 15 Jul 2003 16:28:21 -0000 1.1 --- gdb1250.exp 11 Mar 2004 01:17:07 -0000 *************** *** 1,4 **** ! # Copyright 2003 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 --- 1,4 ---- ! # Copyright 2003, 2004 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 *************** gdb_start *** 42,51 **** gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} ! if ![runto abort] then { ! perror "couldn't run to breakpoint" ! continue } # See http://sources.redhat.com/gdb/bugs/1250 # --- 42,62 ---- gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} ! # Run on 'abort'. 'abort' is special because gcc knows that it is a ! # no-return function, so gcc does a special optimization in every ! # caller of 'abort'. ! ! set name "break abort" ! gdb_test_multiple "break abort" $name { ! -re "Function \"abort\" not defined\.\r\nMake breakpoint pending on future shared library load\\? \\(y or \\\[n\\\]\\) $" { ! gdb_test "y" "" $name ! } ! -re "Breakpoint $decimal at .*\r\n$gdb_prompt $" { ! pass $name ! } } + + gdb_test "run" "Breakpoint $decimal.*abort.*" "run to abort" # See http://sources.redhat.com/gdb/bugs/1250 #