From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32433 invoked by alias); 22 Jun 2009 19:35:00 -0000 Received: (qmail 32425 invoked by uid 22791); 22 Jun 2009 19:34:59 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Jun 2009 19:34:48 +0000 Received: (qmail 4298 invoked from network); 22 Jun 2009 19:34:46 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 22 Jun 2009 19:34:46 -0000 From: Pedro Alves To: Tom Tromey Subject: Re: [RFA] Fix too many "no debugging symbols found" warnings. Date: Mon, 22 Jun 2009 19:35:00 -0000 User-Agent: KMail/1.9.10 Cc: Doug Evans , Eli Zaretskii , "gdb-patches" References: <20090523232414.BED2B846C2@localhost> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200906222035.48910.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2009-06/txt/msg00578.txt.bz2 On Monday 22 June 2009 18:52:40, Tom Tromey wrote: > >>>>> "Doug" =3D=3D Doug Evans writes: >=20 > Doug> What's the reason for passing from_tty=3D0 to symbol_file_add_main = from > Doug> captured_main? >=20 > For questions like this I think the only thing to do is some > archaeology. =A0I looked, though, and this seems to have been 0 all the > way back to 1.1 in the src repository. =A0(I don't think I have ready > access to the older Cygnus repository any more.) You can go further back by looking at the old-releases, found through: http://sourceware.org/gdb/download/ On gdb-2.51, I see this: if (!strcmp (arg, "-se")) { exec_file_command (argv[i], !batch); symbol_file_command (argv[i], !batch); } At revision 1.1 in CVS we have: exec_file_command (execarg, !batch); symbol_file_command (symarg, 0); So at some point in time, the from_tty argument was changed to a hardcoded 0. Why that was so, I don't know. I like gdb's output with Doug's suggestion. (BTW, looking through such old gdb's sources can be quite informative sometimes, it's like looking at a smaller prototype sketch of current gdb. I keep copies of those sources around myself, and sometimes peek them.) --=20 Pedro Alves