From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30139 invoked by alias); 8 Apr 2003 07:39:36 -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 30132 invoked from network); 8 Apr 2003 07:39:33 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 8 Apr 2003 07:39:33 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 739A22B23; Tue, 8 Apr 2003 03:39:27 -0400 (EDT) Message-ID: <3E927CAF.1080704@redhat.com> Date: Tue, 08 Apr 2003 07:39:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA/RFC: dump symtab and psymtab lists References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00128.txt.bz2 > 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). Andrew > gdb/ChangeLog: > 2003-04-07 Jim Blandy > > * symmisc.c (maintenance_print_symtabs, > maintenance_print_psymtabs): New functions. > * maint.c (_initialize_maint_cmds): Add commands for the above. > * symtab.h (maintenance_print_symtabs, > maintenance_print_psymtabs): New declarations. > * Makefile.in (symmisc.o): Update dependencies. > > gdb/doc/ChangeLog: > 2003-04-07 Jim Blandy > > * gdb.texinfo (Symbols): Document 'maint print symtabs' and 'maint > print psymtabs'. >