From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7259 invoked by alias); 16 Nov 2010 17:38:32 -0000 Received: (qmail 7075 invoked by uid 22791); 16 Nov 2010 17:38:30 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BJ,TW_JC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Nov 2010 17:38:23 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAGHcJtw012444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Nov 2010 12:38:19 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oAGHcIlM014471; Tue, 16 Nov 2010 12:38:19 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id oAGHcI78028314; Tue, 16 Nov 2010 12:38:18 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 1B6A23784EE; Tue, 16 Nov 2010 10:38:18 -0700 (MST) From: Tom Tromey To: Jan Kratochvil Cc: Doug Evans , gdb-patches@sourceware.org Subject: Re: [patch] gdb-add-index tweaks References: <20100903180117.42E9D841F7@ruffy.mtv.corp.google.com> <20101116074628.GA2018@host0.dyn.jankratochvil.net> Date: Tue, 16 Nov 2010 17:38:00 -0000 In-Reply-To: (Tom Tromey's message of "Tue, 16 Nov 2010 10:27:26 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-11/txt/msg00204.txt.bz2 >>>>> "Tom" == Tom Tromey writes: Tom> I will delete it now. If anybody wants to resurrect it all, that is Tom> still fine by me. Here's the patch. Tom 2010-11-16 Tom Tromey * gdb-add-index.sh: Really remove. Index: gdb-add-index.sh =================================================================== RCS file: gdb-add-index.sh diff -N gdb-add-index.sh --- gdb-add-index.sh 30 Jul 2010 20:46:34 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,29 +0,0 @@ -#! /bin/sh - -# Add a .gdb_index section to a file. - -# Copyright (C) 2010 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 . - -file="$1" -dir="${file%/*}" - -gdb --batch-silent -ex "file $file" -ex "save gdb-index $dir" - -if test -f "${file}.gdb-index"; then - objcopy --add-section .gdb_index="${file}.gdb-index" --set-section-flags .gdb_index=readonly "$file" "$file" - rm -f "${file}.gdb-index" -fi - -exit 0