This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] implement putchar_filtered()
- To: Nick Duffek <nsd at redhat dot com>
- Subject: Re: [RFA] implement putchar_filtered()
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Wed, 03 Jan 2001 16:42:16 -0500
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <3A539828.8DFEDBEE@cygnus.com> <200101032142.f03LgEV02952@rtl.cygnus.com>
Nick Duffek wrote:
>
> On 3-Jan-2001, Fernando Nasser wrote:
>
> >We should not be using the functions that default to gdb_stdout anymore.
> >This makes it impossible to have gdb as a library, to have script
> >languages front ends etc.
>
> I see your point.
>
> But what about in CLI-specific code, i.e. gdb/cli/cli-*.c?
>
> (I implemented putchar_filtered() for use in cli/cli-regs.c, which is part
> of the register definition patch I just posted.)
>
I see your point too.
I have an idea: let's add it to the cli. If it is on a cli header only cli
code will be able to use it.
Feel free to start a cli/cli-utils.[ch] and add the include on your file.
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9