From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12034 invoked by alias); 13 Nov 2008 21:41:00 -0000 Received: (qmail 12018 invoked by uid 22791); 13 Nov 2008 21:40:59 -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 21:40:23 +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 mADLeLLU022659; Thu, 13 Nov 2008 16:40:21 -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 mADLeK5b023241; Thu, 13 Nov 2008 16:40:20 -0500 Received: from opsy.redhat.com (vpn-13-180.rdu.redhat.com [10.11.13.180]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mADLeJEI024422; Thu, 13 Nov 2008 16:40:19 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 44EB63786F1; Thu, 13 Nov 2008 14:40:13 -0700 (MST) To: Michael Snyder Cc: "gdb-patches\@sourceware.org" Subject: Re: RFA: attach to a PID using a different exec References: <491C9D75.7010701@vmware.com> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Fri, 14 Nov 2008 01:53:00 -0000 In-Reply-To: <491C9D75.7010701@vmware.com> (Michael Snyder's message of "Thu\, 13 Nov 2008 13\:34\:45 -0800") 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/msg00304.txt.bz2 >>>>> "Michael" == Michael Snyder writes: Michael> No way should we do this without asking. Michael> It's just as possible that the first file was the one Michael> the user wanted, and the one attached to was a mistake. It does ask, at least if the current exec has debug symbols: (gdb) attach 16970 Attaching to program: /home/tromey/gnu/git-gdb/build/gdb/gdb, process 16970 Load new symbol table from "/home/tromey/gnu/archer/build/gdb/gdb"? (y or n) I suppose it could ask something more specific, though. Tom