From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Stephane Carrez Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA]: Fix utils.c and printcmd.c for tui Date: Thu, 19 Jul 2001 09:22:00 -0000 Message-id: <3B570924.6030007@cygnus.com> References: <3B5608F0.5F04A0D8@worldnet.fr> X-SW-Source: 2001-07/msg00473.html > 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