This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Move putchar_filtered() to utils.c
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: [rfc] Move putchar_filtered() to utils.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 30 Jan 2001 18:32:06 -0800
- Cc: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- References: <3A775796.6CA11186@cygnus.com> <3A77705F.4F921019@cygnus.com>
Fernando Nasser wrote:
> You just gave the argument. We have hidden it in there so nobody would use
> it inside libgdb. I agreed with Nick that was acceptable to use it inside
> the cli due to the current WIP state of things. He used it inside cli-regs.c
I don't know that I've provided an argument for putting
putchar_filtered() in the wrong place. If a function is being added,
even as a tempoary hack, it really should be put in the correct place.
> W.r.t. the file, Nick actually created it to expedite things for me as I was
> planning to move a few cli utility functions there. As I got caught up in some
> end of project affairs, I had to interrupt my CLI work and that is why the file
> is so empty...
Yes. We never know when we're going to be forced to drop the ball.
Consequently it is best to always try to keep GDB in a consistent state.
> If you prefer, just delete it altogether. Nick can add it as a static function
> to his cli-regs.c if that is really unavoidable and I can re-create the cli-utils
> files on my next round of CLI separation.
I'll move the function for the moment. If someone does decide to
cleanup all the *_filtered() functions they are at least in the one
place.
I'll leave the cli-utils.[hc] as empty files.
Andrew