From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11480 invoked by alias); 30 May 2005 19:54:05 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11469 invoked by uid 22791); 30 May 2005 19:54:02 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 30 May 2005 19:54:02 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DcqKk-000889-Je; Mon, 30 May 2005 15:53:59 -0400 Date: Mon, 30 May 2005 19:55:00 -0000 From: Daniel Jacobowitz To: "Nathan J. Williams" Cc: gdb-patches@sourceware.org Subject: Re: RFC: Check permissions of .gdbinit files Message-ID: <20050530195356.GA31201@nevyn.them.org> Mail-Followup-To: "Nathan J. Williams" , gdb-patches@sourceware.org References: <20050530185201.GA29332@nevyn.them.org> <20050530194115.GA30980@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00644.txt.bz2 On Mon, May 30, 2005 at 03:46:17PM -0400, Nathan J. Williams wrote: > Daniel Jacobowitz writes: > > > > I think the "owned by a different user" change is problematic. I've > > > used build systems that autogenerated .gdbinit files in the build > > > tree, and it would be entirely sensible for one developer to go and > > > debug another developer's build. > > > > Well that's the whole point. You'll get a warning; would you be > > happier if the warning explicitly suggested "source .gdbinit"? > > I guess. I think I don't agree that this is a problem that needs > solving, fundamentally. I'm not completely sure that I disagree. But it's worth talking about at least. Here's the problem case: Foo is broken! What do you want me to do about it? Well, there's a core dump in /blah. OK # cd /blah # gdb /bin/foo core GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux". Hi! You have been owned. (gdb) I wouldn't expect GDB to execute code in that case, but it does. -- Daniel Jacobowitz CodeSourcery, LLC