From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19507 invoked by alias); 29 Oct 2007 22:54:59 -0000 Received: (qmail 19494 invoked by uid 22791); 29 Oct 2007 22:54:57 -0000 X-Spam-Check-By: sourceware.org Received: from fk-out-0910.google.com (HELO fk-out-0910.google.com) (209.85.128.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 29 Oct 2007 22:54:52 +0000 Received: by fk-out-0910.google.com with SMTP id 26so1691355fkx for ; Mon, 29 Oct 2007 15:54:49 -0700 (PDT) Received: by 10.82.178.11 with SMTP id a11mr12208893buf.1193698488393; Mon, 29 Oct 2007 15:54:48 -0700 (PDT) Received: from ?78.130.29.130? ( [78.130.29.130]) by mx.google.com with ESMTPS id k5sm2581451nfh.2007.10.29.15.54.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Oct 2007 15:54:46 -0700 (PDT) Message-ID: <472660D1.2040008@portugalmail.pt> Date: Mon, 29 Oct 2007 22:55:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: enable seperate debug info testing with stabs Content-Type: multipart/mixed; boundary="------------090702010905020303000002" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00781.txt.bz2 This is a multi-part message in MIME format. --------------090702010905020303000002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 183 Hi, The problems described in the comment I'm removing seem to be solved already. I can run the tests successfully on Cygwin, where stabs is still the default. Cheers, Pedro Alves --------------090702010905020303000002 Content-Type: text/x-diff; name="sepdebug_stabs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sepdebug_stabs.diff" Content-length: 2310 2007-10-29 Pedro Alves * lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test. --- gdb/testsuite/lib/gdb.exp | 34 ---------------------------------- 1 file changed, 34 deletions(-) Index: src/gdb/testsuite/lib/gdb.exp =================================================================== --- src.orig/gdb/testsuite/lib/gdb.exp 2007-10-29 20:15:00.000000000 +0000 +++ src/gdb/testsuite/lib/gdb.exp 2007-10-29 20:23:32.000000000 +0000 @@ -2520,40 +2520,6 @@ proc build_id_debug_filename_get { exec proc gdb_gnu_strip_debug { dest args } { - # First, make sure that we can do this. This is nasty. We need to - # check for the stabs debug format. To do this we must run gdb on - # the unstripped executable, list 'main' (as to have a default - # source file), use get_debug_format (which does 'info source') - # and then see if the debug info is stabs. If so, we bail out. We - # cannot do this any other way because get_debug_format finds out - # the debug format using gdb itself, and in case of stabs we get - # an error loading the program if it is already stripped. An - # alternative would be to find out the debug info from the flags - # passed to dejagnu when the test is run. - - gdb_exit - gdb_start - gdb_load ${dest} - gdb_test "list main" "" "" - get_debug_format - if { [test_debug_format "stabs"] } then { - # The separate debug info feature doesn't work well in - # binutils with stabs. It produces a corrupted debug info - # only file, and gdb chokes on it. It is almost impossible to - # capture the failing message out of gdb, because it happens - # inside gdb_load. At that point any error message is - # intercepted by dejagnu itself, and, because of the error - # threshold, any faulty test result is changed into an - # UNRESOLVED. (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 - set debug_file [separate_debug_filename $dest] set strip_to_file_program [transform strip] set objcopy_program [transform objcopy] --------------090702010905020303000002--