From patchwork Thu May 15 18:05:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 950 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 9B7D536006F for ; Thu, 15 May 2014 11:05:16 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id 62B2663B6A1BA; Thu, 15 May 2014 11:05:16 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 3D85F63B55C0E for ; Thu, 15 May 2014 11:05:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=OiIPd70ShyZz+nlF5si3shuoz4cSU oQLtq9zl4txoNWw9+quQ7CcwVXd2ITPQTglAQtVXQfOn5HLnoLuj6tzyJfgEBQTd duYIFedzVJj6P+Y+zw/QQDHZDqXbsuNnkWbtCfx9NnB7AqHcLy+lT2qAErx02E5r /IGjKFB8jKIh/A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=khnnuFyUFS3D9638uQR7I1fLkmo=; b=hYi lklZv6J3BDrLosFP63yv2QlFbF5vEyPmqf5n2snsqRiKZpKlKrKl13sW4CAff0MU i13Nj3qoJFcOHU6ASz+p2RlJxIsU5aFPe72PlSj3/nbk9h2KPAv8apLvq62a0KM2 ZocjjYxS8c1q7oloV62O+6nD3elCz0WT/pW52UNw= Received: (qmail 19307 invoked by alias); 15 May 2014 18:05:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 19292 invoked by uid 89); 15 May 2014 18:05:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f201.google.com Received: from mail-vc0-f201.google.com (HELO mail-vc0-f201.google.com) (209.85.220.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 15 May 2014 18:05:11 +0000 Received: by mail-vc0-f201.google.com with SMTP id ij19so646921vcb.0 for ; Thu, 15 May 2014 11:05:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=Ybrzg2sx9W0PEFmWr1CQTtiB9V7el8Lj1QQobOFU0Es=; b=PXMiBCPNk5ooxcRb1AIbcQH/UvwWFkd+kVGx3gjsnsJAlKmAEey7bYxlgIrZTO0QSG zlDCabGpPEE3Uw5fE/SsxM++6QQs9pVk0nBOtUxxKEhmnyV9GdeXl2QtOigMUD4hqgxV JCQb0wBq1z1rMHk4KDRyd5/H/3Ci2Xu43areja15MBl9GKY11SZvQWMv+To2jRxWW4L+ dDxb7XUkl1WPbFtFwzvxiEBkJrTa7JlWvP6nV5zxeQzt6HAbLTahlyPZRUdDsPCXxmrd 8WDoeDVYVG3LRoKCxxaUxVHm7jxRI3fqCInbkEv99J2idk05F182KMLMNcBvMDDI4OiV 2gJw== X-Gm-Message-State: ALoCoQm1ykkTcisp8g4LDwoAdqKuOnbrP9ifVC8XP7V+8S1aUnCNsXagFRZBH1UwkQYUvtt/I1uJX5P8j/ndEZcdKm3uMr/IbR/J7DF3EHaPjVc4suGaBsH+KZ9uUlb0zt91y0/7W86C X-Received: by 10.236.93.38 with SMTP id k26mr4988218yhf.20.1400177109144; Thu, 15 May 2014 11:05:09 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id a44si276917yhb.6.2014.05.15.11.05.09 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 May 2014 11:05:09 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id B894F31C1CD for ; Thu, 15 May 2014 11:05:08 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH] New board file: fission-no-index.exp Date: Thu, 15 May 2014 11:05:08 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in Hi. This is a new board file for running the testsuite with fission but without .gdb_index. Fission isn't generally used without .gdb_index. I could make gdb refuse to debug fission-compiled programs that don't have .gdb_index, but it's useful for testing, and I couldn't think of a good enough reason to prohibit it (it's not that much extra code to support it - OTOH it is another variation to test). 2014-05-15 Doug Evans * boards/fission-no-index.exp: New file. diff --git a/gdb/testsuite/boards/fission-no-index.exp b/gdb/testsuite/boards/fission-no-index.exp new file mode 100644 index 0000000..869b444 --- /dev/null +++ b/gdb/testsuite/boards/fission-no-index.exp @@ -0,0 +1,36 @@ +# Copyright 2012-2014 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 +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This file is a dejagnu "board file" and is used to run the testsuite +# with Fission support. http://gcc.gnu.org/wiki/DebugFission +# +# Example usage: +# bash$ make check RUNTESTFLAGS='--target_board=fission-no-index' + +# This is copied from baseboards/unix.exp. +# At the moment this only supports things that unix.exp supports. +load_generic_config "unix" +process_multilib_options "" +set_board_info compiler "[find_gcc]" + +# This requires a relatively recent version of gcc (>4.7) and gold +# for the linker. +set_board_info debug_flags "-gdwarf-4 -gsplit-dwarf -fdebug-types-section" + +# This is needed otherwise dejagnu tries to rsh to host "fission-no-index". +# Blech. +# Double blech: set_board_info only sets the value if not already set. +unset_board_info isremote +set_board_info isremote 0