Improve maint print symbols,psymbols,msymbols
Commit Message
Doug Evans <xdje42@gmail.com> writes:
> Hi.
>
> More old sandbox spring cleaning.
>
> At the time I needed this, I used it a lot.
> I've since also added msymbol improvements if only for consistency sake.
> It's helpful to have more control over what to print,
> and to have the output appear on the screen
> without having to go looking for it. Bleah.
>
> 2016-04-20 Doug Evans <xdje42@gmail.com>
>
> * NEWS: Document new syntax for "mt print symbols", "mt print psymbols"
> and "mt print msymbols" commands.
> * psymtab.c (DEV_TTY): Delete.
> (dump_psymtab_addrmap): Don't dump if psymtabs_addrmap is NULL.
> (maintenance_print_psymbols): Rewrite for new syntax:
> mt print psymbols [-objfile objfile] [-pc address] [outfile]
> mt print psymbols [-objfile objfile] [-source source] [outfile]
> (_initialize_psymtab): Update help text.
> * symmisc.c (maintenance_print_symbols): Rewrite for new syntax:
> mt print symbols [-pc address] [outfile]
> mt print symbols [-objfile objfile] [-source source] [outfile]
> (maintenance_print_msymbols): Rewrite for new syntax:
> mt print msymbols [-objfile objfile] [outfile]
> Only print symbols for the current progspace.
> (_initialize_symmisc): Update help text.
>
> doc/
> * gdb.texinfo (Symbols): Update docs for symbol printing maintenance
> commands.
>
> testsuite/
> * gdb.base/maint.exp: Update tests for maint print symbols, psymbols
> and msymbols.
Missed this bit of cleanup that can now be done.
I'll include it when checking in.
@@ -40,10 +40,6 @@
#include "psymtab.h"
-#ifndef DEV_TTY
-#define DEV_TTY "/dev/tty"
-#endif
-
/* Unfortunately for debugging, stderr is usually a macro. This is painful
when calling functions that take FILE *'s from the debugger.
So we make a variable which has the same value and which is accessible when