From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9105 invoked by alias); 14 Jan 2004 15:09:42 -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 9089 invoked from network); 14 Jan 2004 15:09:41 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 14 Jan 2004 15:09:41 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id 775AF1A440D; Wed, 14 Jan 2004 10:08:06 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16389.23382.110183.261381@localhost.redhat.com> Date: Wed, 14 Jan 2004 15:09:00 -0000 To: mec.gnu@mindspring.com (Michael Elizabeth Chastain) Cc: ezannoni@redhat.com, drow@mvista.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] new test for separate debug info In-Reply-To: <20040114024656.2FD964B104@berman.michael-chastain.com> References: <20040114024656.2FD964B104@berman.michael-chastain.com> X-SW-Source: 2004-01/txt/msg00372.txt.bz2 OK, this is what I checked in. 2004-01-14 Elena Zannoni * gdb.base/sepdebug.exp: Bail out of the test if we don't know what debug info we have. Print a better message if something goes wrong while producing the separate debug info file. Index: sepdebug.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sepdebug.exp,v retrieving revision 1.1 diff -u -p -r1.1 sepdebug.exp --- sepdebug.exp 12 Jan 2004 17:20:41 -0000 1.1 +++ sepdebug.exp 14 Jan 2004 15:05:51 -0000 @@ -72,17 +72,22 @@ if { [test_debug_format "stabs"] } then # (see dejagnu/lib/framework.exp) unsupported "no separate debug info handling with stabs" return -1 +} elseif { [test_debug_format "unknown"] } then { + # gdb doesn't know what the debug format is. We are out of luck here. + unsupported "unknown debugging format" + return -1 } gdb_exit # Note: the procedure gdb_gnu_strip_debug will produce an executable called # ${binfile}, which is just like the executable ($binfile) but without # the debuginfo. Instead $binfile has a .gnudebuglink section which contains -# the name of a idebuginfo only file. This file will be stored in the +# the name of a debuginfo only file. This file will be stored in the # gdb.base/.debug subdirectory. if [gdb_gnu_strip_debug $binfile] { - unsupported "no separate debug info handling" + # check that you have a recent version of strip and objcopy installed + unsupported "cannot produce separate debug info files" return -1 }