From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27313 invoked by alias); 14 Nov 2003 14:30:02 -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 27305 invoked from network); 14 Nov 2003 14:30:01 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 14 Nov 2003 14:30:01 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id B069B1A42DB; Fri, 14 Nov 2003 09:30:00 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16308.59112.465627.523785@localhost.redhat.com> Date: Fri, 14 Nov 2003 14:30:00 -0000 To: mec.gnu@mindspring.com (Michael Elizabeth Chastain) Cc: ezannoni@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] new test for separate debug info In-Reply-To: <20031114051503.8BDDB4B3FA@berman.michael-chastain.com> References: <20031114051503.8BDDB4B3FA@berman.michael-chastain.com> X-SW-Source: 2003-11/txt/msg00291.txt.bz2 Michael Elizabeth Chastain writes: > Woah, I am confused. > > Your source code says "unsupported", but your gdb.sum file says > "unresolved", and your gdb.log file says "ERROR". > > Is your sandbox a little messed up, or is it me?! > What happens is that gdb_load errors out and calls perror, then returns 1. All I have done is wrap gdb_load in a check for a 1 return value. The alternative is to alter the gdb_load (or whatever gets caled from it) to recognize that error and do something specific, but I thought that was too ad hoc a behavior for a generic procedure. elena > Michael C > > === > > ok, How about this behavior? > > Running /to/scratch/ezannoni/pristine/src/gdb/testsuite/gdb.base/sepdebug.exp ... > ERROR: couldn't load /to/scratch/ezannoni/pristine/tomago/gdb/testsuite/gdb.base/sepdebug.dbglnk into /to/scratch/ezannoni/pristine/tomago/gdb/testsuite/../../gdb/gdb. > > === gdb Summary === > > # of unresolved testcases 1 > /to/scratch/ezannoni/pristine/tomago/gdb/testsuite/../../gdb/gdb version 2003-11-07-cvs -nx > > > I added a wrapper around the gdb_load call: > > if [gdb_load ${binfile}] { > unsupported "Gdb cannot process a separate debug info file" > return -1 > } >