This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFA: [complaints.c] Use warning_hook


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]