From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20007 invoked by alias); 13 Nov 2008 19:41:45 -0000 Received: (qmail 19949 invoked by uid 22791); 13 Nov 2008 19:41:45 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Nov 2008 19:41:08 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mADJf78p002260 for ; Thu, 13 Nov 2008 14:41:07 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mADJf5Ke011700; Thu, 13 Nov 2008 14:41:05 -0500 Received: from opsy.redhat.com (vpn-13-92.rdu.redhat.com [10.11.13.92]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mADJf4A9008477; Thu, 13 Nov 2008 14:41:05 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 5D8FF3786E3; Thu, 13 Nov 2008 12:41:04 -0700 (MST) To: gdb-patches@sourceware.org Subject: Re: RFA: attach to a PID using a different exec References: <20081113192652.GA26537@caradoc.them.org> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Thu, 13 Nov 2008 22:54:00 -0000 In-Reply-To: <20081113192652.GA26537@caradoc.them.org> (Daniel Jacobowitz's message of "Thu\, 13 Nov 2008 14\:26\:52 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.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: 2008-11/txt/msg00295.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: >> This patch changes gdb to look at the target's notion of the exec >> file, and then switch to it if it differs from the current exec. Daniel> This seems like a bad idea to me. The canonical example is: Daniel> /usr/bin/prog.stripped & Daniel> gdb /home/drow/prog.debug $(pidof prog.stripped) Daniel> I don't want GDB to prompt my to switch to the stripped program... Well, you can answer "no". So while it is inconvenient, it seems minor. On the other hand, the current situation can leave one with a nonsensical setup. This bites me a lot more than I should probably admit. Tom