From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22163 invoked by alias); 26 Dec 2018 17:24:40 -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 22091 invoked by uid 89); 26 Dec 2018 17:24:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=pm, Hx-languages-length:812, sk:binutil X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Dec 2018 17:24:30 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id wBQHOCrU029834 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Dec 2018 12:24:17 -0500 Received: from [10.0.0.11] (unknown [192.222.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 2FC511E059; Wed, 26 Dec 2018 12:24:12 -0500 (EST) Subject: Re: [PATCH] Add "set debug minsyms" command To: Eli Zaretskii Cc: tom@tromey.com, jhb@freebsd.org, gdb-patches@sourceware.org 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> <83tvj06wa8.fsf@gnu.org> From: Simon Marchi Message-ID: <5502e4a5-5df6-d240-fc30-536e54d330f2@polymtl.ca> Date: Wed, 26 Dec 2018 17:24:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <83tvj06wa8.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00337.txt.bz2 On 2018-12-26 12:19 p.m., Eli Zaretskii wrote: > 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? I use "set debug symtab-create 2" and see lines like: Recording minsym: mst_text 0x403578 0 EnterCriticalSection The code that prints this is in minsyms.c line 1143, function minimal_symbol_reader::record_full [1]. It should be common to all binary formats. Maybe you are based on an older commit? This was added last week. Simon [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/minsyms.c;h=e0f3122a974f5547f732ffd952ee0b56ae8189fb;hb=HEAD#l1142