From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25540 invoked by alias); 10 Jan 2002 21:09:15 -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 25452 invoked from network); 10 Jan 2002 21:09:07 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 10 Jan 2002 21:09:07 -0000 Received: from localhost.cygnus.com (cse.sfbay.redhat.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id NAA23726; Thu, 10 Jan 2002 13:09:03 -0800 (PST) Received: (from ezannoni@localhost) by localhost.cygnus.com (8.11.2/8.11.2) id g0AKLqE01746; Thu, 10 Jan 2002 15:21:52 -0500 From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15421.63455.895750.313310@localhost.cygnus.com> Date: Thu, 10 Jan 2002 13:09:00 -0000 To: Andrew Cagney Cc: Michael Snyder , Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: [RFA] Add new cmd line parameter "--pid" for attach. In-Reply-To: <3C3B95FD.50803@cygnus.com> References: <200201050321.g053L6l16505@reddwarf.cygnus.com> <15418.21637.258565.54021@localhost.cygnus.com> <3C3B70ED.D8256B4A@redhat.com> <3C3B95FD.50803@cygnus.com> X-Mailer: VM 7.00 under Emacs 20.7.1 X-SW-Source: 2002-01/txt/msg00251.txt.bz2 Andrew Cagney writes: > > About this, I have a question, what happens if you have a corefile > >> whose name starts with a digit? I tried it and I get an error: > > > I suspect the best thing to do is use a similar trick as recommended by > some RM manuals given a file called ``-rf .'' i.e. ./1234567 > > enjoy, > Andrew "To remove a file called `-f' in the current directory, you could type either rm -- -f or rm ./-f " I assume you mean gdb ./2222core not gdb -- 2222core The first works fine. I think we should mention this case in the docs. Elena