From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25703 invoked by alias); 21 Nov 2008 12:58:42 -0000 Received: (qmail 25572 invoked by uid 22791); 21 Nov 2008 12:58:40 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-vbr17.xs4all.nl (HELO smtp-vbr17.xs4all.nl) (194.109.24.37) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Nov 2008 12:58:00 +0000 Received: from webmail.xs4all.nl (dovemail8.xs4all.nl [194.109.26.10]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id mALCvN08024432; Fri, 21 Nov 2008 13:57:23 +0100 (CET) (envelope-from mark.kettenis@xs4all.nl) Received: from 86.86.3.213 (SquirrelMail authenticated user sibelius) by webmail.xs4all.nl with HTTP; Fri, 21 Nov 2008 13:57:24 +0100 (CET) Message-ID: <5186.86.86.3.213.1227272244.squirrel@webmail.xs4all.nl> Date: Fri, 21 Nov 2008 19:24:00 -0000 Subject: Re: too many "no debugging symbols found" messages from shared libs From: "Mark Kettenis" To: "Doug Evans" Cc: "Eli Zaretskii" , brobecker@adacore.com, gdb-patches@sourceware.org User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2008-11/txt/msg00581.txt.bz2 > On Mon, Nov 10, 2008 at 8:19 PM, Daniel Jacobowitz wrote: > > On Tue, Nov 11, 2008 at 06:10:46AM +0200, Eli Zaretskii wrote: > >> I thought the original patch came with a suggestion to add an option, > >> in case user wanted to see these messages. > > > > OK, I understand now. I'd be fine with the shared library messages > > disabled or made consistent under 'set verbose'. I don't think adding > > a new option would be great. > > How about this? > > I changed the calls to have_{partial,full}_symbols to two new > functions objfile_has_{partial,full}_symbols. I think it's TRTTD > here. > This patch also adds a test for info_verbose so the messages are > printed for shared libs if verbosity turned on. Sorry I'm a bit late in this discussion, but I do really like the messages about missing symbol info for shared libraries. To me they provide an important hint that my debugging session is likely to run into problems at some point. My perspective may be a bit different since I use an operating system that ships all of its core libraries with full debug info. But we really shouldn't consider proprietary operating systems as the norm here, and we should encourage other Open Source systems to ship their libraries with debug info. > 2008-11-20 Doug Evans > > * objfiles.h (objfile_has_partial_symbols): Declare. > (objfile_has_full_symbols): Declare. > * objfiles.c (objfile_has_partial_symbols): New function. > (objfile_has_full_symbols): New function. > * symfile.c (symbol_file_add_with_addrs_or_offsets): Only print > "no debugging symbols found" for main program, unless the user > turns on verbosity. >