From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6102 invoked by alias); 9 Jan 2004 08:52:19 -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 6069 invoked from network); 9 Jan 2004 08:52:18 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sources.redhat.com with SMTP; 9 Jan 2004 08:52:18 -0000 Received: from zaretski (pns03-194-187.inter.net.il [80.230.194.187]) by legolas.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id BBS48437; Fri, 9 Jan 2004 10:52:12 +0200 (IST) Date: Fri, 09 Jan 2004 08:52:00 -0000 From: "Eli Zaretskii" To: mec.gnu@mindspring.com (Michael Elizabeth Chastain) Message-Id: <2914-Fri09Jan2004104913+0200-eliz@elta.co.il> CC: gdb@sources.redhat.com, nathanw@wasabisystems.com In-reply-to: <20040109031621.412084B35A@berman.michael-chastain.com> (mec.gnu@mindspring.com) Subject: Re: "break main; run" test Reply-to: Eli Zaretskii References: <20040109031621.412084B35A@berman.michael-chastain.com> X-SW-Source: 2004-01/txt/msg00116.txt.bz2 > Date: Thu, 8 Jan 2004 22:16:21 -0500 (EST) > From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) > > > When people refer to the test of starting gdb on a program, setting a > > breakpoint on "main", and running to that point, is there a particular > > standard test program in mind? "Hello world"? The GDB binary itself? > > You are right; it is ambiguous. Seconded. Perhaps we should replace that language with something less ambiguous. > To me, it usually means "the gdb binary itself", since the gdb binary is > a large program and it's guaranteed to exist. Sometimes it means > "hello world", and sometimes it means "any random program". It should IMHO preferably be some non-trivially large program, as some subtle problems don't get expiosed unless GDB needs to deal with complex debug info structures. It certainly cannot be a program with no debug info, since then it's not guaranteed that GDB will know where to find the symbol `main'.