This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: [complaints.c] Use warning_hook
- To: Fernando Nasser <fnasser at cygnus dot com>
- Subject: Re: RFA: [complaints.c] Use warning_hook
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 20 Dec 2000 23:48:41 +1100
- Cc: gdb-patches at sources dot redhat dot com
- References: <3A36A6A8.7709A82A@cygnus.com>
Fernando Nasser wrote:
>
> The following patch prevents complaints to confuse the GUI (or any other
> stuff which is looking at the GDB output).
>
> Complaints are sent to the warning_hook if one is defined.
>
> OK to commit?
>
> ChangeLog:
>
> * complaints.c (complain): Call warning_hook if defined, instead of
> writting to gdb_stderr.
> (clear_complaints): Do not write anything to gdb_stderr if warning_hook
> is defined.
Ok.
Regarding the hooks. We (as in everyone) needs to think about the
future of gdb-events.[hc] (aka gdb-hooks.[hc] - in hindsight, gdb-events
was a dumb name :-).
Andrew