From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27112 invoked by alias); 2 Apr 2003 15:48:16 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27104 invoked from network); 2 Apr 2003 15:48:15 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 2 Apr 2003 15:48:15 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9B2CE2B23; Wed, 2 Apr 2003 10:48:14 -0500 (EST) Message-ID: <3E8B063E.6090003@redhat.com> Date: Wed, 02 Apr 2003 15:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ben Elliston Cc: Eli Zaretskii , gdb@sources.redhat.com Subject: Re: makeinfo with gdb.texinfo References: <20030331172211.GB10233@white> <20030331174222.GA30182@nevyn.them.org> <20030331175248.GC10233@white> <16008.34076.442297.792987@casey.transmeta.com> <8011-Wed02Apr2003061800+0300-eliz@elta.co.il> <3E8ACD85.7060900@wasabisystems.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00023.txt.bz2 > One could argue that there is a fundamental difference between a shell and other programs: the shell executes programs; most others treat their arguments as input files. In the context of a shell, it makes sense to apply a search path to prevent users from accidentally executing the wrong program. You will note that it is not necessary to run `gdb ./a.out' to debug a program of that name in the current working directory. In the case of Info, the behaviour you describe creates, in practice, more problems than it solves. Um, it is acknwledged that GDB's behavior is confusing. Something as simple as: $ program Segmentation fault $ gdb program can lead to GDB debugging the wrong program. Hmm, security hole. Andrew