From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21721 invoked by alias); 5 Mar 2002 19:41:06 -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 21585 invoked from network); 5 Mar 2002 19:41:04 -0000 Received: from unknown (HELO duracef.shout.net) (204.253.184.12) by sources.redhat.com with SMTP; 5 Mar 2002 19:41:04 -0000 Received: (from mec@localhost) by duracef.shout.net (8.11.6/8.11.6) id g25Jf3H29561 for gdb-patches@sources.redhat.com; Tue, 5 Mar 2002 13:41:03 -0600 Date: Tue, 05 Mar 2002 11:41:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200203051941.g25Jf3H29561@duracef.shout.net> To: gdb-patches@sources.redhat.com Subject: [PATCH] mi-var-cmd.exp, mi0-var-cmd.exp: accommodate gcc v3 X-SW-Source: 2002-03/txt/msg00056.txt.bz2 Here is a small patch about v3 function signatures in gdb.mi/mi-var-cmd.exp and gdb.mi/mi0-var-cmd.exp. Here's what gdb.log looks like right now: # gcc 3.0.4, -gstabs+ -var-create func * func^M ^done,name="func",numchild="0",type="void (*)()"^M (gdb) ^M PASS: gdb.mi/mi-var-cmd.exp: create local variable func # gcc 3.0.4, -gdwarf-2 -var-create func * func^M ^done,name="func",numchild="0",type="void (*)(void)"^M (gdb) ^M FAIL: gdb.mi/mi-var-cmd.exp: create local variable func I just make the tests accept both forms. I tested this with my usual testbed: target: native host: i686-pc-linux-gnu%rh-7.2 gdb: HEAD%20020302 gcc: 2.95.3, vendor, 3.0.4, gcc-3_1-branch%20020302, HEAD%20020302 glibc: vendor goption: -gdwarf-2, -gstabs+ I'm keen to fix this because it shows up as a regression versus gdb 5.1.1. I believe this is an obvious fix, and I'm going to go ahead and apply it to mainline. In a few days I will also apply it to the 5.2 branch. Michael C === 2002-03-04 Michael Chastain * gdb.mi/mi-var-cmd.exp: In test "create local variable func", accommodate gcc v3 function signature. * gdb.mi/mi0-var-cmd-exp: Ditto. % cd /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.mi % cvs -q diff -c Index: mi-var-cmd.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-var-cmd.exp,v retrieving revision 1.8 diff -c -r1.8 mi-var-cmd.exp *** mi-var-cmd.exp 2001/11/11 20:11:03 1.8 --- mi-var-cmd.exp 2002/03/05 18:39:18 *************** *** 1,4 **** ! # Copyright (C) 1999 2000 Cygnus Solutions # # 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 (C) 1999, 2000, 2002 Cygnus Solutions # # 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 *************** *** 136,142 **** "create local variable lpsimple" mi_gdb_test "-var-create func * func" \ ! "\\^done,name=\"func\",numchild=\"0\",type=\"void \\(\\*\\)\\(\\)\"" \ "create local variable func" # Test: c_variable-1.5 --- 136,142 ---- "create local variable lpsimple" mi_gdb_test "-var-create func * func" \ ! "\\^done,name=\"func\",numchild=\"0\",type=\"void \\(\\*\\)\\((void|)\\)\"" \ "create local variable func" # Test: c_variable-1.5 Index: mi0-var-cmd.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi0-var-cmd.exp,v retrieving revision 1.6 diff -c -r1.6 mi0-var-cmd.exp *** mi0-var-cmd.exp 2001/11/11 20:11:03 1.6 --- mi0-var-cmd.exp 2002/03/05 18:39:19 *************** *** 1,4 **** ! # Copyright (C) 1999 2000 Cygnus Solutions # # 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 (C) 1999, 2000, 2002 Cygnus Solutions # # 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 *************** *** 136,142 **** "create local variable lpsimple" mi_gdb_test "-var-create func * func" \ ! "\\^done,name=\"func\",numchild=\"0\",type=\"void \\(\\*\\)\\(\\)\"" \ "create local variable func" # Test: c_variable-1.5 --- 136,142 ---- "create local variable lpsimple" mi_gdb_test "-var-create func * func" \ ! "\\^done,name=\"func\",numchild=\"0\",type=\"void \\(\\*\\)\\((void|)\\)\"" \ "create local variable func" # Test: c_variable-1.5