Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: tom@tromey.com, jhb@freebsd.org, gdb-patches@sourceware.org
Subject: Re: [PATCH] Add "set debug minsyms" command
Date: Wed, 26 Dec 2018 17:19:00 -0000	[thread overview]
Message-ID: <83tvj06wa8.fsf@gnu.org> (raw)
In-Reply-To: <9e2735708c805257c37485fbc2f451a8@polymtl.ca> (message from Simon	Marchi on Wed, 26 Dec 2018 11:43:18 -0500)

> Date: Wed, 26 Dec 2018 11:43:18 -0500
> From: Simon Marchi <simon.marchi@polymtl.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>, jhb@freebsd.org, gdb-patches@sourceware.org
> 
> > The manual documents the values for "set debug symtab-create".  I think
> > a patch is indeed needed since you added a new value.
> 
> Actually that value is already used and documented:
> 
> Turns on or off display of debugging messages related to symbol table 
> creation. The default is 0 (off). A value of 1 provides basic 
> information. A value greater than 1 provides more verbose information.
> 
> > Also I was wondering why not just use "maint print msymbols".
> 
> Because I didn't know about it :).  Do you think the new debugging 
> output is redundant and should be removed?  It's the same data (minimal 
> symbols), but in a different order.  With "set debug symtab-create", 
> they are shown in the order they are provided by the symbol reader (same 
> order as in the file usually), whereas "maint print msymbols" shows them 
> as saved in GDB's memory, sorted by address.  I think that the "set 
> debug symtab-create" may be useful when debugging the symbol reader, 
> whereas "maint print msymbols" may be useful when debugging lookups.

Btw, when I "set debug symtab-create 1" (or even a very large value),
I see no symbols, just the files from which those symbols are loaded.
Where's the code that shows the symbols?  Could it be that this
happens only on ELF platforms?


  reply	other threads:[~2018-12-26 17:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20181221214706.26981-1-simon.marchi@ericsson.com>
2018-12-21 21:59 ` John Baldwin
2018-12-21 23:07   ` Simon Marchi
     [not found]     ` <798386c1-43f5-862e-1ee4-6e439ccf3133@FreeBSD.org>
2018-12-22  2:20       ` Simon Marchi
2018-12-22  7:29         ` Eli Zaretskii
2018-12-22 15:17           ` Simon Marchi
2018-12-24 20:51             ` Tom Tromey
2018-12-26 16:43               ` Simon Marchi
2018-12-26 17:19                 ` Eli Zaretskii [this message]
2018-12-26 17:24                   ` Simon Marchi
2018-12-26 18:48                     ` Eli Zaretskii
2018-12-29 18:55                 ` Tom Tromey

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=83tvj06wa8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jhb@freebsd.org \
    --cc=simon.marchi@polymtl.ca \
    --cc=tom@tromey.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