From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18018 invoked by alias); 24 Oct 2003 17:23:29 -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 18009 invoked from network); 24 Oct 2003 17:23:29 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 24 Oct 2003 17:23:29 -0000 Received: from redhat.com (toocool.toronto.redhat.com [172.16.14.72]) by touchme.toronto.redhat.com (Postfix) with ESMTP id B4D4D80040B; Fri, 24 Oct 2003 13:23:28 -0400 (EDT) Message-ID: <3F996010.6040308@redhat.com> Date: Fri, 24 Oct 2003 17:23:00 -0000 From: "J. Johnston" Organization: Red Hat Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Blandy Cc: Jim Ingham , gdb@sources.redhat.com Subject: Re: Why does symfile.c use printf_filtered? References: <1066860856.12586.ezmlm@sources.redhat.com> <77974AB1-04E8-11D8-A22C-000A958F4C44@apple.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00275.txt.bz2 Jim Blandy wrote: > Jim Ingham writes: > >>These messages only show up when you set verbose on, so they don't >>appear in the normal case. Then I think you just get one dot per >>shared library. > > > No, that's not right: > > symfile.c:symbol_file_add_with_addrs_or_offsets: > > if ((objfile->flags & OBJF_MAPPED) && (objfile->flags & OBJF_SYMS)) > ... > else > { > /* We either created a new mapped symbol table, mapped an existing > symbol table file which has not had initial symbol reading > performed, or need to read an unmapped symbol table. */ > if (from_tty || info_verbose) > { > if (pre_add_symbol_hook) > pre_add_symbol_hook (name); > else > { > printf_filtered ("Reading symbols from %s...", name); > wrap_here (""); > gdb_flush (gdb_stdout); > } > } > syms_from_objfile (objfile, addrs, offsets, num_offsets, > mainline, from_tty); > } > > So it shows up when invoked from a command, too. And I don't see any > "dot per shared library code" here --- perhaps that's a local mod. > > Perhaps the best behavior would be for GDB to print a dot per shlib, > unless 'set verbose on' is on, in which case it should print the full > filename. > > Jeff, how does that sound? Is that more trouble than you wanted to > get into, or would you be willing to put together a patch for that? > I have already posted a patch that hasn't gotten any response yet. Perhaps, you can comment on that patch with this suggestion and I can look at combining the changes or else it can be done after my other patch is approved/denied. -- Jeff J.