From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27307 invoked by alias); 8 Apr 2003 17:52:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27299 invoked from network); 8 Apr 2003 17:52:23 -0000 Received: from unknown (HELO zenia.red-bean.com) (12.222.151.100) by sources.redhat.com with SMTP; 8 Apr 2003 17:52:23 -0000 Received: from zenia.red-bean.com (localhost.localdomain [127.0.0.1]) by zenia.red-bean.com (8.12.5/8.12.5) with ESMTP id h38HrCFq020000; Tue, 8 Apr 2003 12:53:12 -0500 Received: (from jimb@localhost) by zenia.red-bean.com (8.12.5/8.12.5/Submit) id h38HrB5S019996; Tue, 8 Apr 2003 12:53:11 -0500 To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: RFA/RFC: dump symtab and psymtab lists References: <3E927CAF.1080704@redhat.com> From: Jim Blandy Date: Tue, 08 Apr 2003 17:52:00 -0000 In-Reply-To: <3E927CAF.1080704@redhat.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00131.txt.bz2 Andrew Cagney writes: > > This patch adds two new commands, 'maint print symtabs' and 'maint > > print psymtabs', that print out the full and partial symtab lists. > > You can supply a regexp to match against the (p)symtab name to just > > list a few. > > The existing 'maint print symbols' and 'maint print psymbols' are > > exhaustive, which is useful sometimes, but they produce so much output > > that they're a pain to use when you just want to see what's up with > > the symtab and psymtab lists themselves. > > The output includes expressions you can cut-and-paste into GDB to get > > a pointer to a specific symtab, psymtab, etc., and it's parenthesized > > to make the Emacs balanced motion commands work usefully. The > > documentation includes examples. > > Jim, > > The `maint print' series of commands should all use the syntax: > > (gdb) maint print [ ] > > (things todo is check that this is consistent). Right, but that doesn't make sense for this command. It doesn't produce so much output that it needs to be directed to a file --- that's the reason the existing 'maint print' commands didn't suffice, even though they include all the info the new commands do. And the regexp is really helpful.