This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA/RFC: dump symtab and psymtab lists


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 <component> [ <output-file> ]

(things todo is check that this is consistent).

Andrew


gdb/ChangeLog:
2003-04-07  Jim Blandy  <jimb at redhat dot com>

	* 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  <jimb at redhat dot com>

	* gdb.texinfo (Symbols): Document 'maint print symtabs' and 'maint
	print psymtabs'.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]