From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86318 invoked by alias); 23 Nov 2017 15:59: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 86297 invoked by uid 89); 23 Nov 2017 15:59:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KB_WAM_FROM_NAME_SINGLEWORD,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=perfect 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; Thu, 23 Nov 2017 15:59:38 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHtuX-0004Mq-Up for gdb-patches@sourceware.org; Thu, 23 Nov 2017 10:59:36 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHtuX-0004Mf-RV; Thu, 23 Nov 2017 10:59:33 -0500 Received: from [176.228.60.248] (port=1924 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eHtuX-00028A-91; Thu, 23 Nov 2017 10:59:33 -0500 Date: Thu, 23 Nov 2017 15:59:00 -0000 Message-Id: <83bmjtasuy.fsf@gnu.org> From: Eli Zaretskii To: Sergio Durigan Junior CC: palves@redhat.com, qiyaoltc@gmail.com, brobecker@adacore.com, gdb-patches@sourceware.org In-reply-to: <87o9ntddb6.fsf_-_@redhat.com> (message from Sergio Durigan Junior on Wed, 22 Nov 2017 19:54:53 -0500) Subject: Re: [PATCH v2] Add support for the --readnever command-line option (DWARF only) Reply-to: Eli Zaretskii References: <1467838463-15786-1-git-send-email-brobecker@adacore.com> <87o9ntddb6.fsf_-_@redhat.com> 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: 2017-11/txt/msg00549.txt.bz2 > From: Sergio Durigan Junior > Cc: Yao Qi , Joel Brobecker , "gdb-patches\@sourceware.org" > Date: Wed, 22 Nov 2017 19:54:53 -0500 > > - The patch appears to have been introduced as a workaround, at > least initially; > - The patch is far from perfect, as it simply shunts the load of > DWARF debugging information, without really worrying about the > other debug format. > - Who really does non-symbolic debugging anyways? > > One use of this is when a user simply wants to do the following > sequence: attach, dump core, detach. Loading the debugging information > in this case is an unnecessary cause of delay. This use case should be mentioned in the manual. And I think if we want to accept a patch that is DWARF specific, the name of the option should reflect that; --readnever sounds misleading to me. (Another possibility would be to have a "maint dwarf" command to do the same; maybe it's better.) > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index ab05a3718d..7d3d651185 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -1037,6 +1037,14 @@ Read each symbol file's entire symbol table immediately, rather than > the default, which is to read it incrementally as it is needed. > This makes startup slower, but makes future operations faster. > > +@item --readnever > +@cindex @code{--readnever} > +Do not read each symbol file's symbolic debug information. This makes > +startup faster but at the expense of not being able to perform > +symbolic debugging. > + > +This option is currently limited to debug information in DWARF format. > +For all other format, this option has no effect. ^^^^^^^^^^^^^^^^^^^^ "For the others formats" And I think we need a NEWS entry for this new feature. Thanks.