This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: Fix utils.c and printcmd.c for tui
- To: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- Subject: Re: [RFA]: Fix utils.c and printcmd.c for tui
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 19 Jul 2001 12:21:56 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <3B5608F0.5F04A0D8@worldnet.fr>
> The following patch simplifies the tui portions in utils.c and printcmd.c
> by calling simple tui functions rather than having some tui specific code.
> I've not found a better solution (yet) to solve these tui dependencies in
> gdb common code.
FYI, while the patches are in David's area, I think there is a strong
argument for them being ``obvious''.
As for a better way?
For disassembly and registers, say there was a function like:
libgdb_disassemble_...(ui-out, ....)
that you could call. It would just return the asembly output you need.
Similar for registers.
Regarding the pager, yes, um er. One theory is that pageable output
goes to gdb_stdout while non-pageable output is sent to gdb_stderr and
gdb_stdtarg.
Andrew