From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13752 invoked by alias); 26 Dec 2018 17:19:29 -0000 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 Received: (qmail 13683 invoked by uid 89); 26 Dec 2018 17:19:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:4.82, platforms, U*gdb-patches, gdbpatchessourcewareorg X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Dec 2018 17:19:26 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcCpy-0006y0-31 for gdb-patches@sourceware.org; Wed, 26 Dec 2018 12:19:22 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcCpw-0006wv-4V; Wed, 26 Dec 2018 12:19:16 -0500 Received: from [176.228.60.248] (port=3423 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gcCpu-0006v7-A4; Wed, 26 Dec 2018 12:19:14 -0500 Date: Wed, 26 Dec 2018 17:19:00 -0000 Message-Id: <83tvj06wa8.fsf@gnu.org> From: Eli Zaretskii To: Simon Marchi CC: tom@tromey.com, jhb@freebsd.org, gdb-patches@sourceware.org In-reply-to: <9e2735708c805257c37485fbc2f451a8@polymtl.ca> (message from Simon Marchi on Wed, 26 Dec 2018 11:43:18 -0500) Subject: Re: [PATCH] Add "set debug minsyms" command References: <20181221214706.26981-1-simon.marchi@ericsson.com> <18230036-5562-b705-a9b5-b9e435d63c32@FreeBSD.org> <798386c1-43f5-862e-1ee4-6e439ccf3133@FreeBSD.org> <3cdee7b5cded932a4e49c4e612ff6fcf@polymtl.ca> <83ftuqaukt.fsf@gnu.org> <7bb19b711cccb214d678e65b9383c4e5@polymtl.ca> <878t0er6l6.fsf@tromey.com> <9e2735708c805257c37485fbc2f451a8@polymtl.ca> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00336.txt.bz2 > Date: Wed, 26 Dec 2018 11:43:18 -0500 > From: Simon Marchi > Cc: Eli Zaretskii , 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?