Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "J. Johnston" <jjohnstn@redhat.com>
To: Jim Blandy <jimb@redhat.com>
Cc: Jim Ingham <jingham@apple.com>, gdb@sources.redhat.com
Subject: Re: Why does symfile.c use printf_filtered?
Date: Fri, 24 Oct 2003 17:23:00 -0000	[thread overview]
Message-ID: <3F996010.6040308@redhat.com> (raw)
In-Reply-To: <vt2r813u4t4.fsf@zenia.home>

Jim Blandy wrote:
> Jim Ingham <jingham@apple.com> 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.


  parent reply	other threads:[~2003-10-24 17:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1066860856.12586.ezmlm@sources.redhat.com>
2003-10-22 23:35 ` Jim Ingham
2003-10-23 19:34   ` Jim Blandy
2003-10-24 17:14     ` Jim Ingham
2003-10-24 17:23     ` J. Johnston [this message]
2003-10-21 21:30 J. Johnston
2003-10-22  6:16 ` Eli Zaretskii
2003-10-22 13:30   ` Daniel Jacobowitz
2003-10-22 22:14 ` Jim Blandy
2003-10-24 17:55 ` Andrew Cagney
2003-10-24 18:51   ` Daniel Jacobowitz
2003-10-24 20:50     ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F996010.6040308@redhat.com \
    --to=jjohnstn@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=jingham@apple.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox