From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14783 invoked by alias); 24 Oct 2003 17:14:58 -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 14774 invoked from network); 24 Oct 2003 17:14:57 -0000 Received: from unknown (HELO mail-out3.apple.com) (17.254.13.22) by sources.redhat.com with SMTP; 24 Oct 2003 17:14:57 -0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.10/8.12.9) with ESMTP id h9OHEu6h012323 for ; Fri, 24 Oct 2003 10:14:56 -0700 (PDT) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Fri, 24 Oct 2003 10:14:24 -0700 Received: from [17.201.22.245] (inghji6.apple.com [17.201.22.245]) by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h9OHERww002691; Fri, 24 Oct 2003 10:14:28 -0700 (PDT) In-Reply-To: References: <1066860856.12586.ezmlm@sources.redhat.com> <77974AB1-04E8-11D8-A22C-000A958F4C44@apple.com> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: gdb@sources.redhat.com, Jeff Johnston From: Jim Ingham Subject: Re: Why does symfile.c use printf_filtered? Date: Fri, 24 Oct 2003 17:14:00 -0000 To: Jim Blandy X-SW-Source: 2003-10/txt/msg00274.txt.bz2 Oops, you are right, we print the "."'s down in the macosx shared library layer. This is very useful... Jim On Oct 23, 2003, at 12:33 PM, 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? > -- Jim Ingham jingham@apple.com Developer Tools Apple Computer